/* === BASE === */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg: #0a0a0f;
    --bg-2: #0f0f17;
    --surface: rgba(255, 255, 255, 0.03);
    --surface-2: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.08);
    --text: #e8e8f0;
    --text-dim: #8a8a9a;
    --primary: #6366f1;
    --primary-2: #8b5cf6;
    --accent: #06b6d4;
    --gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
    --glow: 0 0 40px rgba(99, 102, 241, 0.4);
    --glow-strong: 0 0 60px rgba(139, 92, 246, 0.6);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* === BG GLOW === */
.bg-glow {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 60%, rgba(139, 92, 246, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 50% 90%, rgba(6, 182, 212, 0.1) 0%, transparent 40%);
    z-index: -1;
    animation: bgFloat 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes bgFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(3%, -3%) scale(1.05); }
    66% { transform: translate(-3%, 3%) scale(0.98); }
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* === HEADER === */
.header {
    padding: 16px 0;
    position: sticky;
    top: 0;
    background: rgba(10, 10, 15, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
}
.header-inner { display: flex; justify-content: space-between; align-items: center; }

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.logo-mark {
    color: var(--primary);
    font-size: 24px;
    filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.8));
    animation: logoPulse 3s ease-in-out infinite;
}
@keyframes logoPulse {
    0%, 100% { filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.8)); }
    50% { filter: drop-shadow(0 0 16px rgba(139, 92, 246, 1)); }
}
.logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -0.02em;
}

.nav { display: flex; align-items: center; gap: 8px; }
.nav a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.2s;
}
.nav a:hover { color: var(--text); background: var(--surface-2); }

.burger {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
}
.burger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; }

/* === NAV USER === */
.nav-user {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text) !important;
    font-size: 14px;
    font-weight: 500;
}
.nav-user:hover {
    border-color: var(--primary);
    background: var(--surface-2);
}
.nav-user-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
}

/* === BUTTONS === */
.btn {
    display: inline-block;
    padding: 11px 22px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient);
    background-size: 200% 200%;
    color: #fff;
    animation: gradientShift 4s ease infinite;
}
@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
.btn-primary:hover { transform: translateY(-2px); }

.btn-glow { box-shadow: var(--glow); }
.btn-glow:hover { box-shadow: var(--glow-strong); }

.btn-outline {
    border-color: var(--border);
    color: var(--text);
    background: var(--surface);
}
.btn-outline:hover {
    border-color: var(--primary);
    background: var(--surface-2);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.btn-ghost { color: var(--text-dim); background: transparent; }
.btn-ghost:hover { color: var(--text); background: var(--surface-2); }

.btn-lg { padding: 15px 32px; font-size: 16px; border-radius: 12px; }
.btn-block { display: block; text-align: center; width: 100%; }

/* === HERO === */
.hero { padding: 120px 0 100px; text-align: center; position: relative; }
.hero-inner { position: relative; z-index: 1; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 28px;
    backdrop-filter: blur(10px);
}
.pulse-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulseDot 2s infinite;
}
@keyframes pulseDot {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(36px, 6vw, 72px);
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.gradient-text {
    background: var(--gradient);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 4s ease infinite;
}

.hero-sub {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-dim);
    max-width: 640px;
    margin: 0 auto 40px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 80px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 700px;
    margin: 0 auto;
}
.stat {
    padding: 24px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}
.stat-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 36px;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 8px;
}
.stat-value::after { content: "+"; }
.stat-label { font-size: 13px; color: var(--text-dim); }

/* === SECTIONS === */
.section { padding: 100px 0; position: relative; }
.section-dark { background: var(--bg-2); }

.section-head { text-align: center; margin-bottom: 64px; }
.section-tag {
    display: inline-block;
    padding: 4px 14px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-2);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}
.section-head h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}
.section-head p { color: var(--text-dim); font-size: 17px; }

/* === STEPS === */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step {
    padding: 32px 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    transition: all 0.3s;
}
.step:hover {
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-4px);
}
.step-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 40px;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    line-height: 1;
}
.step h3 { font-size: 20px; margin-bottom: 12px; font-weight: 600; }
.step p { color: var(--text-dim); font-size: 15px; }

/* === TARIFFS === */
.tariffs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tariff {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 36px 28px;
    position: relative;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}
.tariff:hover {
    transform: translateY(-6px);
    border-color: rgba(99, 102, 241, 0.4);
}
.tariff-featured {
    border: 2px solid transparent;
    background:
        linear-gradient(var(--bg), var(--bg)) padding-box,
        var(--gradient) border-box;
    box-shadow: var(--glow);
    transform: scale(1.03);
}
.tariff-featured:hover { transform: scale(1.03) translateY(-6px); }

.badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient);
    background-size: 200% 200%;
    animation: gradientShift 4s ease infinite;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 100px;
    white-space: nowrap;
    box-shadow: var(--glow);
}
.tariff h3 { font-size: 20px; margin-bottom: 16px; font-weight: 600; }
.price {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 44px;
    font-weight: 700;
    margin-bottom: 28px;
    line-height: 1;
    letter-spacing: -0.02em;
}
.price span { font-size: 16px; color: var(--text-dim); font-weight: 400; }
.tariff ul { list-style: none; margin-bottom: 32px; }
.tariff li {
    padding: 10px 0;
    color: var(--text-dim);
    font-size: 15px;
    border-bottom: 1px solid var(--border);
}
.tariff li:last-child { border-bottom: none; }
.tariff li::before {
    content: "✓";
    color: var(--primary-2);
    font-weight: 700;
    margin-right: 12px;
    text-shadow: 0 0 8px rgba(139, 92, 246, 0.8);
}

/* === FAQ === */
.faq { max-width: 800px; margin: 0 auto; }
.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    margin-bottom: 12px;
    transition: all 0.3s;
    overflow: hidden;
}
.faq-item[open] {
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.15);
}
.faq-item summary {
    padding: 20px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    font-size: 24px;
    color: var(--primary-2);
    transition: transform 0.3s;
    font-weight: 300;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--primary-2); }
.faq-item p {
    padding: 0 24px 20px;
    color: var(--text-dim);
    font-size: 15px;
    line-height: 1.7;
}

/* === CTA === */
.cta-section { padding: 80px 0 120px; }
.cta-box {
    text-align: center;
    padding: 60px 40px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}
.cta-box::before {
    content: "";
    position: absolute;
    inset: -100%;
    background: conic-gradient(from 0deg, transparent, rgba(99, 102, 241, 0.15), transparent 30%);
    animation: rotate 8s linear infinite;
    pointer-events: none;
}
@keyframes rotate {
    to { transform: rotate(360deg); }
}
.cta-box > * { position: relative; z-index: 1; }
.cta-box h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    margin-bottom: 16px;
}
.cta-box p { color: var(--text-dim); margin-bottom: 32px; font-size: 17px; }

/* === FOOTER === */
.footer {
    border-top: 1px solid var(--border);
    padding: 60px 0 0;
    background: var(--bg-2);
}
.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}
.footer-col h4 { font-size: 14px; font-weight: 600; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text); }
.footer-col a {
    display: block;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 14px;
    padding: 6px 0;
    transition: color 0.2s;
}
.footer-col a:hover { color: var(--primary-2); }
.footer-desc { color: var(--text-dim); font-size: 14px; margin-top: 12px; max-width: 280px; }
.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 24px 0;
    text-align: center;
    color: var(--text-dim);
    font-size: 13px;
}

/* === ANIMATIONS === */
.animate-fade {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}
@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

/* === AUTH === */
.auth-section {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}
.auth-card {
    width: 100%;
    max-width: 460px;
    padding: 40px 36px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    backdrop-filter: blur(20px);
}
.auth-card h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 28px;
    margin-bottom: 8px;
}
.auth-sub { color: var(--text-dim); margin-bottom: 28px; font-size: 15px; }
.auth-form { display: flex; flex-direction: column; gap: 18px; }
.auth-form label { display: flex; flex-direction: column; gap: 8px; }
.auth-form label span { font-size: 14px; color: var(--text-dim); font-weight: 500; }
.auth-form label em { font-style: normal; opacity: 0.6; font-size: 12px; }
.auth-form input {
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s;
    outline: none;
}
.auth-form input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}
.auth-form input::placeholder { color: rgba(138, 138, 154, 0.5); }
.auth-footer { text-align: center; margin-top: 24px; color: var(--text-dim); font-size: 14px; }
.auth-footer a { color: var(--primary-2); text-decoration: none; font-weight: 500; }
.auth-footer a:hover { text-decoration: underline; }
.form-error {
    padding: 12px 16px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 10px;
    color: #fca5a5;
    font-size: 14px;
    margin-bottom: 20px;
}

/* === DASHBOARD === */
.dashboard-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 48px;
    flex-wrap: wrap;
    gap: 16px;
}
.dashboard-head h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 4px;
}
.dashboard-sub { color: var(--text-dim); font-size: 15px; }
.dashboard-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 48px;
}
.dash-card {
    padding: 28px 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
}
.dash-label { font-size: 13px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px; }
.dash-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 36px;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 8px;
}
.dash-hint { color: var(--text-dim); font-size: 13px; }
.dash-empty {
    text-align: center;
    padding: 60px 40px;
    background: var(--surface);
    border: 1px dashed var(--border);
    border-radius: 20px;
}
.dash-empty h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 24px;
    margin-bottom: 12px;
}
.dash-empty p { color: var(--text-dim); margin-bottom: 28px; }

/* === WALLET === */
.wallet-top {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-bottom: 48px;
}
.wallet-balance {
    padding: 36px 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    backdrop-filter: blur(20px);
}
.wallet-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 48px;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin: 12px 0 16px;
}
.wallet-balance .btn { margin-top: 16px; }
.wallet-history h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px;
    margin-bottom: 20px;
}
.tx-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.tx-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
}
.tx-info { display: flex; flex-direction: column; gap: 4px; }
.tx-type { font-size: 15px; font-weight: 500; }
.tx-date { font-size: 13px; color: var(--text-dim); }
.tx-amount {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 600;
}
.tx-plus { color: #10b981; }
.tx-minus { color: #f87171; }
.tx-empty {
    padding: 40px;
    text-align: center;
    background: var(--surface);
    border: 1px dashed var(--border);
    border-radius: 16px;
    color: var(--text-dim);
}

/* === MOBILE === */
@media (max-width: 900px) {
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .steps, .tariffs { grid-template-columns: 1fr; gap: 20px; }
    .tariff-featured { transform: none; }
    .tariff-featured:hover { transform: translateY(-6px); }
    .dashboard-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .nav { display: none; }
    .nav.nav-open {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--bg-2);
        padding: 20px;
        border-bottom: 1px solid var(--border);
    }
    .burger { display: flex; }
    .hero { padding: 80px 0 60px; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }
    .footer-inner { grid-template-columns: 1fr; }
    .section { padding: 60px 0; }
    .cta-box { padding: 40px 24px; }
    .auth-card { padding: 32px 24px; }
}

/* === ONBOARDING CHAT === */
.onboarding-section { padding: 40px 0 80px; }
.onboarding-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}
.onboarding-head h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 4px;
}
.onboarding-sub { color: var(--text-dim); font-size: 15px; }

.chat-wrap {
    max-width: 820px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 260px);
    min-height: 500px;
    backdrop-filter: blur(20px);
}
.chat-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.2);
}
.chat-manager { display: flex; align-items: center; gap: 12px; }
.chat-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    font-size: 14px;
    box-shadow: var(--glow);
}
.chat-manager-name { font-weight: 600; font-size: 15px; }
.chat-manager-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-dim);
}
.chat-online-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.9);
}

.chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.chat-body::-webkit-scrollbar { width: 6px; }
.chat-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.chat-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    height: 100%;
    color: var(--text-dim);
    font-size: 14px;
}
.chat-loading-dots { display: flex; gap: 6px; }
.chat-loading-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    animation: chatDot 1.4s infinite ease-in-out;
}
.chat-loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.chat-loading-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes chatDot {
    0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
    40% { opacity: 1; transform: scale(1); }
}

.chat-msg { display: flex; }
.chat-msg-user { justify-content: flex-end; }
.chat-msg-assistant { justify-content: flex-start; }

.chat-bubble {
    max-width: 78%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 15px;
    line-height: 1.55;
    white-space: pre-wrap;
    word-wrap: break-word;
}
.chat-msg-assistant .chat-bubble {
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text);
    border-top-left-radius: 4px;
}
.chat-msg-user .chat-bubble {
    background: var(--gradient);
    color: #fff;
    border-top-right-radius: 4px;
}

.chat-bubble.typing {
    display: inline-flex;
    gap: 4px;
    padding: 14px 18px;
}
.chat-bubble.typing span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--text-dim);
    animation: chatDot 1.4s infinite ease-in-out;
}
.chat-bubble.typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-bubble.typing span:nth-child(3) { animation-delay: 0.4s; }

.chat-input-wrap {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.2);
}
.chat-input {
    flex: 1;
    resize: none;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 16px;
    color: var(--text);
    font-family: inherit;
    font-size: 15px;
    line-height: 1.5;
    outline: none;
    max-height: 140px;
    transition: border-color 0.2s;
}
.chat-input:focus { border-color: var(--primary); }
.chat-input::placeholder { color: rgba(138, 138, 154, 0.5); }

.chat-send {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: none;
    background: var(--gradient);
    background-size: 200% 200%;
    animation: gradientShift 4s ease infinite;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: var(--glow);
    flex-shrink: 0;
}
.chat-send:hover { box-shadow: var(--glow-strong); transform: translateY(-1px); }
.chat-send:active { transform: translateY(0); }

.chat-finalized {
    padding: 40px;
    text-align: center;
    border-top: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.2);
}
.chat-finalized h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px;
    margin-bottom: 8px;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.chat-finalized p { color: var(--text-dim); margin-bottom: 20px; font-size: 15px; }

@media (max-width: 768px) {
    .onboarding-head h1 { font-size: 24px; }
    .chat-wrap { height: calc(100vh - 220px); }
    .chat-bubble { max-width: 88%; }
}

/* === ONBOARDING MOBILE FIX === */
@media (max-width: 768px) {
    .onboarding-section { padding: 20px 0 40px; }
    .onboarding-section .container {
        padding: 0 12px;
        max-width: 100%;
    }

    .chat-wrap {
        max-width: 100%;
        width: 100%;
        border-radius: 14px;
        height: calc(100vh - 190px);
        min-height: 560px;
        margin: 0;
    }

    .chat-header { padding: 14px 16px; }
    .chat-avatar { width: 38px; height: 38px; font-size: 13px; }
    .chat-manager-name { font-size: 14px; }
    .chat-manager-status { font-size: 12px; }

    .chat-body { padding: 16px 12px; gap: 12px; }
    .chat-bubble { max-width: 92%; font-size: 14px; padding: 10px 14px; }

    .chat-input-wrap { padding: 12px 12px; gap: 8px; }
    .chat-input {
        font-size: 15px;
        padding: 10px 14px;
        border-radius: 10px;
    }
    .chat-send {
        width: 42px;
        height: 42px;
        border-radius: 10px;
    }

    .chat-finalized { padding: 32px 20px; }
    .chat-finalized h3 { font-size: 20px; }
    .chat-finalized p { font-size: 14px; }
}

/* === ORDER PAGE === */
.order-section { padding: 40px 0 80px; }
.order-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}
.order-head h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 4px;
}
.order-sub { color: var(--text-dim); font-size: 15px; }

.order-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}
.order-summary, .order-preview {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px 24px;
    backdrop-filter: blur(20px);
}
.order-summary h2, .order-preview h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    margin-bottom: 20px;
}
.order-block {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}
.order-block:last-of-type { border-bottom: none; }
.order-label {
    font-size: 12px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}
.order-value {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 4px;
}
.order-hint { font-size: 14px; color: var(--text-dim); }
.order-price {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 24px;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-top: 6px;
}

.preview-sub { color: var(--text-dim); font-size: 14px; margin-bottom: 16px; }
.preview-chat {
    height: 340px;
    overflow-y: auto;
    padding: 16px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}
.preview-input-wrap {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.order-pay {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 28px 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    flex-wrap: wrap;
}
.order-pay-info { display: flex; flex-direction: column; gap: 8px; }
.order-pay-price {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 36px;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}
.order-pay-price span { font-size: 16px; color: var(--text-dim); font-weight: 400; }
.order-pay-note { color: var(--text-dim); font-size: 13px; }
.order-pay .btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 900px) {
    .order-grid { grid-template-columns: 1fr; }
    .order-head h1 { font-size: 24px; }
    .order-pay { padding: 20px; }
}

/* === ONBOARDING CENTERED === */
.onboarding-section {
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}
.onboarding-section .container {
    width: 100%;
    max-width: 820px;
    padding: 0;
}

.chat-wrap {
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
    height: 70vh;
    min-height: 480px;
    max-height: 780px;
}

@media (max-width: 768px) {
    .onboarding-section {
        padding: 12px 8px;
        min-height: calc(100vh - 60px);
    }
    .onboarding-section .container {
        max-width: 100%;
    }
    .chat-wrap {
        max-width: 100%;
        height: 75vh;
        min-height: 520px;
        border-radius: 14px;
    }
}
