/* ============================================================
   Solaris Demo — Light Professional Theme
   Font: DM Sans (body) + DM Serif Display (headings)
   Color: Slate/Zinc neutrals + Indigo accent
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=DM+Serif+Display:ital@0;1&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg:           #f8f8f6;
    --surface:      #ffffff;
    --surface2:     #f4f4f2;
    --surface3:     #eeede9;
    --border:       #e4e3de;
    --border-strong:#c8c7c0;
    --text:         #1a1916;
    --text-secondary:#5c5b56;
    --text-muted:   #9b9a94;
    --accent:       #4f46e5;
    --accent-light: #eef2ff;
    --accent-hover: #4338ca;
    --success:      #059669;
    --success-light:#ecfdf5;
    --warning:      #d97706;
    --warning-light:#fffbeb;
    --danger:       #dc2626;
    --danger-light: #fef2f2;
    --ig-sent:      #4f46e5;
    --ig-recv:      #f4f4f2;
    --radius:       14px;
    --radius-sm:    8px;
    --radius-xs:    6px;
    --shadow-sm:    0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow:       0 4px 12px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.04);
    --shadow-lg:    0 12px 32px rgba(0,0,0,0.08), 0 4px 8px rgba(0,0,0,0.04);
}

html, body {
    height: 100%;
    background: var(--bg);
    color: var(--text);
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ============================================================
   Navbar
   ============================================================ */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 36px;
    height: 58px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.navbar-brand {
    font-family: 'DM Serif Display', serif;
    font-size: 22px;
    font-weight: 400;
    color: var(--text);
    letter-spacing: -0.3px;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.navbar-links a {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.15s;
}
.navbar-links a:hover { color: var(--text); text-decoration: none; }

.btn-nav {
    background: var(--accent) !important;
    color: #fff !important;
    padding: 7px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.15s, transform 0.1s;
    letter-spacing: 0.1px;
}
.btn-nav:hover {
    background: var(--accent-hover) !important;
    transform: translateY(-1px);
    text-decoration: none !important;
}

/* ============================================================
   Setup Page
   ============================================================ */
.setup-page {
    min-height: calc(100vh - 58px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 52px 16px 64px;
    background: var(--bg);
}

.setup-container {
    width: 100%;
    max-width: 540px;
}

.setup-header {
    margin-bottom: 36px;
    text-align: center;
}

.demo-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent-light);
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 16px;
    border: 1px solid rgba(79,70,229,0.2);
}

.demo-badge::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.85); }
}

.setup-header h1 {
    font-family: 'DM Serif Display', serif;
    font-size: 34px;
    font-weight: 400;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    color: var(--text);
    line-height: 1.2;
}

.setup-header p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
    max-width: 420px;
    margin: 0 auto;
}

/* Alert */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.alert-error {
    background: var(--danger-light);
    border: 1px solid rgba(220,38,38,0.2);
    color: var(--danger);
}

/* Form */
.setup-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    box-shadow: var(--shadow);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
    position: relative;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.1px;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.required { color: var(--accent); }

.optional {
    font-weight: 400;
    font-size: 12px;
    color: var(--text-muted);
    font-style: italic;
}

.form-group input,
.form-group textarea,
.form-group select {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-size: 14.5px;
    padding: 10px 14px;
    transition: border-color 0.15s, box-shadow 0.15s;
    outline: none;
    width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239b9a94' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}

.form-group select option { background: var(--surface); color: var(--text); }
.form-group textarea { resize: vertical; min-height: 108px; font-family: inherit; }

.char-count {
    font-size: 11px;
    color: var(--text-muted);
    text-align: right;
    margin-top: -2px;
}

.btn-primary {
    width: 100%;
    padding: 13px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
    letter-spacing: 0.1px;
}
.btn-primary:hover:not(:disabled) {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79,70,229,0.3);
}
.btn-primary:active:not(:disabled) { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.55; cursor: not-allowed; }

/* Spinner */
.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.setup-note {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 16px;
    line-height: 1.6;
}

/* ── Website row ──────────────────────────────────────────── */
.website-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.website-input { flex: 1; }

.btn-add-pages {
    background: var(--accent-light);
    border: 1.5px solid rgba(79,70,229,0.3);
    color: var(--accent);
    border-radius: var(--radius-sm);
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 600;
    padding: 0 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, border-color 0.15s;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}
.btn-add-pages:hover {
    background: rgba(79,70,229,0.12);
    border-color: rgba(79,70,229,0.5);
}

/* Extra pages panel */
.extra-pages {
    margin-top: 10px;
    background: var(--surface2);
    border: 1.5px dashed var(--border-strong);
    border-radius: var(--radius-sm);
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    animation: slideDown 0.2s ease forwards;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.extra-pages__hint {
    font-size: 12.5px;
    color: var(--text-secondary);
    line-height: 1.55;
    margin: 0;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.extra-pages__fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.extra-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.extra-label {
    font-size: 12.5px !important;
    font-weight: 600 !important;
    color: var(--text) !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
}

.extra-input {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-xs);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-size: 13.5px;
    padding: 9px 12px;
    outline: none;
    width: 100%;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.extra-input::placeholder { color: var(--text-muted); }
.extra-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
}

.btn-hide-pages {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    cursor: pointer;
    text-align: left;
    padding: 0;
    transition: color 0.15s;
    display: flex;
    align-items: center;
    gap: 4px;
}
.btn-hide-pages:hover { color: var(--text-secondary); }

/* Optional badge pill inside form */
.optional-pill {
    font-size: 10px;
    font-weight: 600;
    font-style: normal;
    color: var(--text-muted);
    background: var(--surface3);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1px 7px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

/* ============================================================
   Chat Page
   ============================================================ */
.chat-page {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 28px;
    padding: 32px 16px;
    min-height: calc(100vh - 58px);
    background: var(--bg);
}

/* Phone mockup */
.phone-mockup {
    width: 385px;
    flex-shrink: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 640px;
    box-shadow: var(--shadow-lg);
}

/* IG Header */
.ig-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.ig-back {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: background 0.15s;
    line-height: 1;
}
.ig-back:hover { background: var(--surface2); }

.ig-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(79,70,229,0.3);
}

.ig-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.ig-profile-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.ig-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.ig-status {
    font-size: 11.5px;
    color: var(--success);
    display: flex;
    align-items: center;
    gap: 4px;
}
.ig-status::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success);
}

/* Messages */
.ig-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    scroll-behavior: smooth;
    background: var(--bg);
}

.ig-messages::-webkit-scrollbar { width: 3px; }
.ig-messages::-webkit-scrollbar-track { background: transparent; }
.ig-messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.ig-msg {
    display: flex;
    max-width: 82%;
}
.ig-msg--user {
    align-self: flex-end;
    flex-direction: row;
    align-items: flex-end;
    gap: 4px;
}
.ig-msg--assistant { align-self: flex-start; }

.ig-bubble {
    padding: 9px 13px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

.ig-msg--user .ig-bubble {
    background: var(--ig-sent);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.ig-msg--assistant .ig-bubble {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-bottom-left-radius: 4px;
    box-shadow: var(--shadow-sm);
}

/* Typing indicator */
.ig-typing {
    padding: 8px 14px 2px;
    background: var(--bg);
    flex-shrink: 0;
}

.typing-bubble {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    border-bottom-left-radius: 4px;
    padding: 10px 14px;
    box-shadow: var(--shadow-sm);
}

.typing-bubble span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--text-muted);
    display: block;
    animation: typingBounce 1.2s ease-in-out infinite;
}
.typing-bubble span:nth-child(1) { animation-delay: 0s; }
.typing-bubble span:nth-child(2) { animation-delay: 0.2s; }
.typing-bubble span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-5px); opacity: 1; }
}

/* Input area */
.ig-input-area {
    padding: 10px 12px;
    background: var(--surface);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.ig-input {
    flex: 1;
    background: var(--surface2);
    border: 1.5px solid var(--border);
    border-radius: 22px;
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    padding: 9px 16px;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.ig-input::placeholder { color: var(--text-muted); }
.ig-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
    background: var(--surface);
}

.ig-send {
    background: var(--accent);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s, opacity 0.15s;
    flex-shrink: 0;
}
.ig-send:hover:not(:disabled) {
    background: var(--accent-hover);
    transform: scale(1.05);
}
.ig-send:disabled { opacity: 0.4; cursor: not-allowed; }
.ig-send svg {
    width: 16px;
    height: 16px;
    color: #fff;
    stroke: #fff;
    margin-left: 1px;
}

/* Limit banner */
.limit-banner {
    padding: 10px 16px;
    background: var(--accent-light);
    border-top: 1px solid rgba(79,70,229,0.2);
    font-size: 13px;
    text-align: center;
    color: var(--accent);
    flex-shrink: 0;
}
.limit-banner a { color: var(--accent); font-weight: 700; }

/* ============================================================
   Chat Sidebar
   ============================================================ */
.chat-sidebar {
    width: 276px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-top: 4px;
}

.sidebar-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.sidebar-card h3 {
    font-size: 13.5px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
    letter-spacing: 0.1px;
}

.sidebar-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.55;
}

.msg-counter {
    margin-top: 14px;
    font-size: 12px;
    color: var(--text-muted);
}

.progress-bar {
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    margin-top: 6px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
    transition: width 0.4s ease;
}

/* CTA card */
.cta-card {
    background: var(--accent-light);
    border: 1px solid rgba(79,70,229,0.2);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.cta-icon {
    font-size: 26px;
    margin-bottom: 10px;
}

.cta-card h3 {
    font-size: 14.5px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.cta-card p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.55;
}

.btn-cta {
    display: block;
    background: var(--accent);
    color: #fff;
    padding: 11px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 14px;
    transition: background 0.15s, transform 0.1s;
    margin-bottom: 8px;
}
.btn-cta:hover {
    background: var(--accent-hover);
    text-decoration: none;
    transform: translateY(-1px);
}

.cta-sub {
    font-size: 11px;
    color: var(--text-muted);
}

.btn-secondary {
    display: block;
    text-align: center;
    padding: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.btn-secondary:hover {
    color: var(--text);
    border-color: var(--border-strong);
    background: var(--surface2);
    text-decoration: none;
}

/* ============================================================
   Message animation
   ============================================================ */
@keyframes msgIn {
    from { opacity: 0; transform: translateY(5px); }
    to   { opacity: 1; transform: translateY(0); }
}

.ig-msg--animate {
    animation: msgIn 0.18s ease forwards;
}

/* ============================================================
   Seen tick
   ============================================================ */
.ig-tick {
    font-size: 10px;
    color: var(--text-muted);
    align-self: flex-end;
    margin-left: 3px;
    margin-bottom: 2px;
    transition: color 0.2s;
    white-space: nowrap;
}
.ig-tick--seen { color: var(--accent); }

.ig-msg--user {
    flex-direction: row;
    align-items: flex-end;
}

/* ============================================================
   Prompt chips
   ============================================================ */
.prompt-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 12px 4px;
    background: var(--bg);
    transition: opacity 0.25s, transform 0.25s;
}

.prompt-chips.chips--hiding {
    opacity: 0;
    transform: translateY(4px);
    pointer-events: none;
}

.prompt-chip {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 16px;
    color: var(--text-secondary);
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 500;
    padding: 5px 12px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
}
.prompt-chip:hover {
    background: var(--accent-light);
    border-color: rgba(79,70,229,0.35);
    color: var(--accent);
}

/* ============================================================
   Inline CTA bubble
   ============================================================ */
.ig-msg--cta {
    justify-content: center;
    max-width: 100%;
    padding: 0 8px;
}

.ig-cta-bubble {
    background: var(--accent-light);
    border: 1px solid rgba(79,70,229,0.2);
    border-radius: 16px;
    padding: 14px 16px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.ig-cta-bubble__eyebrow {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.ig-cta-bubble__text {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.5;
}

.ig-cta-bubble__btn {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    transition: background 0.15s, transform 0.1s;
    text-decoration: none;
}
.ig-cta-bubble__btn:hover {
    background: var(--accent-hover);
    text-decoration: none;
    transform: translateY(-1px);
}

/* ============================================================
   Session note
   ============================================================ */
.ig-session-note {
    text-align: center;
    font-size: 11px;
    color: var(--text-muted);
    padding: 6px 0 2px;
    animation: msgIn 0.2s ease forwards;
}

/* ============================================================
   Progress Page — Redesigned "WOW" version
   ============================================================ */
.progress-page {
    min-height: calc(100vh - 58px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 16px;
    background: var(--bg);
}

.progress-container {
    width: 100%;
    max-width: 560px;
}

/* Header */
.progress-header {
    text-align: center;
    margin-bottom: 32px;
}

.progress-logo {
    margin-bottom: 18px;
}

.progress-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-family: 'DM Serif Display', serif;
    font-size: 26px;
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 4px 16px rgba(79,70,229,0.3);
    position: relative;
}

.progress-avatar::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(79,70,229,0.2);
    animation: ring-pulse 2.5s ease-in-out infinite;
}

@keyframes ring-pulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.1); opacity: 0.2; }
}

.progress-header h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 26px;
    font-weight: 400;
    margin-bottom: 6px;
    color: var(--text);
    letter-spacing: -0.3px;
}

.progress-sub {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Main progress card */
.progress-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 16px;
}

/* Progress bar at top of card */
.progress-bar-track {
    height: 3px;
    background: var(--border);
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #818cf8);
    border-radius: 0;
    width: 0%;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
    animation: shimmer 1.5s ease infinite;
}

@keyframes shimmer {
    to { left: 200%; }
}

/* Step list */
.progress-steps {
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 120px;
}

.progress-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    animation: stepSlideIn 0.25s ease forwards;
    opacity: 0;
    transition: background 0.2s;
}
.progress-step:last-child { border-bottom: none; }

@keyframes stepSlideIn {
    from { opacity: 0; transform: translateX(-8px); }
    to   { opacity: 1; transform: translateX(0); }
}

.step-icon-wrap {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
    font-size: 12px;
    transition: all 0.3s ease;
}

.progress-step--progress .step-icon-wrap {
    background: var(--accent-light);
    border: 2px solid rgba(79,70,229,0.3);
}

.progress-step--progress .step-icon {
    width: 10px;
    height: 10px;
    border: 2px solid var(--accent);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: block;
}

.progress-step--complete .step-icon-wrap {
    background: var(--success-light);
    border: 2px solid rgba(5,150,105,0.3);
}

.progress-step--complete .step-icon {
    color: var(--success);
    font-size: 13px;
    animation: none;
    display: block;
}

.progress-step--warn .step-icon-wrap {
    background: var(--warning-light);
    border: 2px solid rgba(217,119,6,0.3);
}

.progress-step--warn .step-icon {
    color: var(--warning);
    font-size: 13px;
    display: block;
}

.step-content {
    flex: 1;
    min-width: 0;
}

.step-text {
    font-size: 14px;
    font-weight: 500;
    display: block;
    line-height: 1.4;
}

.step-detail {
    font-size: 12px;
    color: var(--text-muted);
    display: block;
    margin-top: 2px;
}

.progress-step--progress .step-text  { color: var(--text); }
.progress-step--complete .step-text  { color: var(--text-secondary); }
.progress-step--warn .step-text      { color: var(--warning); }

.step-time {
    font-size: 11.5px;
    color: var(--text-muted);
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: 5px;
}

/* Status footer */
.progress-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: var(--surface2);
    border-top: 1px solid var(--border);
}

.progress-note {
    font-size: 12.5px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.progress-eta {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
}

/* Sub-tasks visible under current active step */
.step-subtasks {
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.step-subtask {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
    animation: msgIn 0.2s ease forwards;
    opacity: 0;
}

.step-subtask::before {
    content: '›';
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 720px) {
    .navbar { padding: 0 16px; }
    .navbar-links a:not(.btn-nav) { display: none; }
    .chat-page {
        flex-direction: column;
        align-items: center;
        padding: 16px;
    }
    .phone-mockup { width: 100%; max-width: 420px; height: 520px; }
    .chat-sidebar { width: 100%; max-width: 420px; }
    .setup-form { padding: 22px 18px; }
    .setup-header h1 { font-size: 27px; }
}