/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== VARIABLES ===== */
:root {
    --blue: #005eb8;
    --blue-dark: #003d7a;
    --blue-light: #e0f2fe;
    --red: #c8102e;
    --red-light: #fee2e2;
    --gold: #d4af37;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 40px -12px rgba(0,0,0,0.15);
    --radius: 12px;
    --radius-lg: 20px;
}

/* ===== HEADER ===== */
.header {
    background: var(--gray-900);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo img { width: 42px; height: 42px; border-radius: 10px; box-shadow: 0 0 0 2px rgba(255,255,255,0.1); }
.logo-text { display: flex; flex-direction: column; }
.logo-title { color: white; font-weight: 900; font-size: 1.24rem; letter-spacing: -0.6px; line-height: 1; }
.logo-sub { color: rgba(147,197,253,0.92); font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.7px; margin-top: 4px; }
.nav-menu { display: flex; align-items: center; gap: 6px; }
.nav-menu a { color: rgba(255,255,255,0.75); font-size: 0.88rem; font-weight: 600; padding: 8px 14px; border-radius: 8px; transition: all 0.2s; }
.nav-menu a:hover { color: white; background: rgba(255,255,255,0.08); }
.btn-nav { background: var(--blue) !important; color: white !important; }
.btn-nav:hover { background: var(--blue-dark) !important; }
.mobile-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: white;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: 999px;
    padding: 10px 14px;
}
.mobile-toggle-label { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-link-btn {
    color: rgba(255,255,255,0.78);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
}
.header-link-btn:hover { color: white; background: rgba(255,255,255,0.08); }
.account-menu { position: relative; }
.account-trigger {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 4px 10px 4px 4px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    color: white;
}
.account-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--blue) 0%, var(--red) 100%);
    color: white;
    font-size: 0.75rem;
    font-weight: 800;
}
.account-summary { display: flex; flex-direction: column; line-height: 1.1; }
.account-label { font-size: 0.8rem; font-weight: 700; max-width: 112px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-badge { font-size: 0.62rem; color: #93c5fd; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.account-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 290px;
    padding: 14px;
    border-radius: 18px;
    background: white;
    border: 1px solid var(--gray-200);
    box-shadow: 0 24px 50px rgba(15,23,42,0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility .2s;
    z-index: 1001;
}
.account-menu.open .account-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.account-dropdown-label { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gray-500); }
.account-dropdown-email { margin-top: 4px; font-size: 0.95rem; font-weight: 700; color: var(--gray-900); word-break: break-word; }
.account-dropdown-meta {
    margin-top: 12px;
    padding: 12px;
    border-radius: 14px;
    background: var(--gray-50);
    display: grid;
    gap: 8px;
}
.account-meta-row { display: flex; justify-content: space-between; gap: 12px; font-size: 0.84rem; color: var(--gray-600); }
.account-meta-row strong { color: var(--gray-900); }
.account-dropdown-actions { margin-top: 12px; display: grid; gap: 8px; }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 14px; font-size: 0.85rem; }

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, var(--gray-900) 0%, #0c2d4d 50%, #071a2b 100%);
    padding: 80px 0 100px;
    position: relative;
    overflow: hidden;
    min-height: 600px;
}
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); padding: 8px 16px; border-radius: 50px; font-size: 0.8rem; color: rgba(255,255,255,0.9); margin-bottom: 24px; }
.badge-dot { width: 8px; height: 8px; background: #22c55e; border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.hero h1 { font-size: 3.2rem; font-weight: 900; color: white; line-height: 1.1; letter-spacing: -1px; margin-bottom: 20px; }
.hero h1 span { color: var(--blue); }
.hero-desc { font-size: 1.15rem; color: rgba(255,255,255,0.8); margin-bottom: 32px; max-width: 500px; }
.hero-actions { display: flex; gap: 12px; margin-bottom: 40px; }
.hero-note { display: flex; align-items: flex-start; gap: 12px; background: rgba(200,16,46,0.15); border-left: 3px solid var(--red); padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; max-width: 480px; }
.note-icon { font-size: 1.3rem; }
.hero-note p { color: rgba(255,255,255,0.9); font-size: 0.95rem; margin: 0; }
.hero-card { background: rgba(255,255,255,0.05); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-lg); padding: 32px; }
.hero-card .card-badge { display: inline-block; background: var(--blue); color: white; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; padding: 4px 10px; border-radius: 4px; margin-bottom: 16px; }
.hero-card h3 { color: white; font-size: 1.3rem; font-weight: 700; margin-bottom: 20px; }
.hero-card ul { display: flex; flex-direction: column; gap: 12px; }
.hero-card li { color: rgba(255,255,255,0.85); font-size: 0.95rem; display: flex; align-items: center; gap: 10px; }
.li-check { color: #22c55e; font-weight: 700; }
.li-x { color: var(--red); font-weight: 700; }

/* ===== BUTTONS ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 28px; font-size: 0.95rem; font-weight: 600; border-radius: var(--radius); border: none; cursor: pointer; transition: all 0.2s; }
.btn-icon { font-size: 1.1rem; }
.btn-primary { background: var(--red); color: white; box-shadow: 0 4px 14px rgba(200,16,46,0.3); }
.btn-primary:hover { background: #a50d24; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(200,16,46,0.4); }
.btn-ghost { background: rgba(255,255,255,0.1); color: white; border: 1px solid rgba(255,255,255,0.2); }
.btn-ghost:hover { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.3); }
.btn-outline { background: transparent; color: var(--gray-800); border: 2px solid var(--gray-300); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-lg { padding: 18px 36px; font-size: 1.05rem; }

/* ===== FEATURES ===== */
.feature { padding: 100px 0; background: white; }
.feature-alt { background: var(--gray-50); }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.feature-grid.reverse { direction: rtl; }
.feature-grid.reverse > * { direction: ltr; }
.feature-img img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.tag { display: inline-block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; padding: 6px 12px; border-radius: 6px; margin-bottom: 16px; }
.tag-blue { background: var(--blue-light); color: var(--blue); }
.tag-red { background: var(--red-light); color: var(--red); }
.feature-content h2 { font-size: 2.2rem; font-weight: 800; color: var(--gray-900); line-height: 1.2; margin-bottom: 20px; }
.feature-content p { color: var(--gray-600); font-size: 1.05rem; margin-bottom: 24px; }
.feature-list { margin-bottom: 28px; }
.feature-list li { padding: 8px 0; color: var(--gray-600); }
.stat-card { background: var(--gray-100); padding: 24px; border-radius: var(--radius); margin-bottom: 24px; }
.stat-num { display: block; font-size: 3rem; font-weight: 900; color: var(--red); line-height: 1; }
.stat-text { color: var(--gray-600); font-size: 0.95rem; }

/* ===== ABOUT / CARDS ===== */
.about { padding: 100px 0; background: var(--gray-100); }
.section-head { text-align: center; margin-bottom: 50px; }
.section-head h2 { font-size: 2rem; font-weight: 800; color: var(--gray-900); }
.section-head p { color: var(--gray-500); margin-top: 8px; }
.cards-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.info-card { background: white; padding: 32px; border-radius: var(--radius-lg); box-shadow: var(--shadow); transition: all 0.3s; }
.info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-highlight { border: 2px solid var(--blue); }
.card-icon { font-size: 2.5rem; margin-bottom: 16px; }
.card-head { margin-bottom: 16px; }
.card-head h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 6px; }
.card-tag { display: inline-block; font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; padding: 4px 10px; border-radius: 4px; background: var(--gray-200); color: var(--gray-600); }
.tag-primary { background: var(--blue); color: white; }
.info-card p { color: var(--gray-600); margin-bottom: 16px; }
.info-card ul { margin-bottom: 20px; }
.info-card li { padding: 6px 0; color: var(--gray-500); font-size: 0.9rem; }
.info-card li::before { content: "\2022 "; color: var(--blue); margin-right: 8px; }
.card-link { color: var(--blue); font-weight: 600; font-size: 0.9rem; }
.card-link:hover { text-decoration: underline; }

/* ===== DOCS ===== */
.docs { padding: 80px 0; background: white; }
.docs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.doc-card { background: var(--gray-50); padding: 28px; border-radius: var(--radius-lg); border: 1px solid var(--gray-200); position: relative; overflow: hidden; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.doc-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--blue), var(--blue-dark)); transform: scaleX(0); transform-origin: left; transition: transform 0.3s; }
.doc-card:hover { transform: translateY(-8px); border-color: var(--blue); box-shadow: 0 20px 40px rgba(0,94,184,0.12); }
.doc-card:hover::before { transform: scaleX(1); }
.doc-card.primary { background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%); color: white; border: none; }
.doc-card.primary::before { background: linear-gradient(90deg, var(--red), var(--gold)); }
.doc-card.primary:hover { box-shadow: 0 20px 40px rgba(0,94,184,0.25); }
.doc-icon { font-size: 2rem; margin-bottom: 16px; }
.doc-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.doc-meta { font-size: 0.75rem; opacity: 0.6; margin-bottom: 12px; }
.doc-card p { font-size: 0.85rem; color: var(--gray-500); margin-bottom: 20px; line-height: 1.5; }
.doc-card.primary p { color: rgba(255,255,255,0.8); }
.doc-btns { display: flex; gap: 10px; }
.doc-btn { padding: 10px 16px; font-size: 0.8rem; font-weight: 600; border-radius: 8px; background: white; color: var(--blue); display: inline-flex; align-items: center; gap: 6px; transition: all 0.2s; }
.doc-btn:hover { background: var(--blue); color: white; }
.doc-card.primary .doc-btn { background: rgba(255,255,255,0.15); color: white; border: 1px solid rgba(255,255,255,0.3); }
.doc-card.primary .doc-btn:hover { background: white; color: var(--blue); }

/* ===== CTA ===== */
.cta-section { padding: 80px 0; background: var(--gray-900); }
.cta-grid { display: grid; grid-template-columns: 320px 1fr; gap: 60px; align-items: center; }
.cta-img img { border-radius: var(--radius-lg); box-shadow: 0 25px 50px rgba(0,0,0,0.3); }
.cta-content h2 { font-size: 2rem; font-weight: 800; color: white; line-height: 1.2; margin-bottom: 16px; }
.cta-content p { color: rgba(255,255,255,0.75); margin-bottom: 28px; font-size: 1.05rem; }
.cta-note { margin-top: 16px; font-size: 0.85rem; color: rgba(255,255,255,0.5); }

/* ===== CHAT (Desktop) ===== */
.chat-section { padding: 80px 0; background: var(--gray-50); }
.chat-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; }
.chat-info h2 { font-size: 1.75rem; font-weight: 800; margin-bottom: 12px; }
.chat-info > p { color: var(--gray-600); margin-bottom: 24px; }
.triage-levels { display: grid; gap: 14px; margin-bottom: 18px; }
.triage-level-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 18px 20px;
    box-shadow: var(--shadow-sm);
}
.triage-level-step {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--blue-light);
    color: var(--blue);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.triage-level-card h4 { margin: 12px 0 6px; font-size: 1rem; }
.triage-level-card p { color: var(--gray-600); font-size: 0.9rem; }
.help-card { background: white; padding: 24px; border-radius: var(--radius); margin-bottom: 16px; border: 1px solid var(--gray-200); }
.help-card h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 12px; }
.help-card li { padding: 5px 0; font-size: 0.9rem; color: var(--gray-600); }
.help-warning { background: #fffbeb; border-color: #fbbf24; }
.small-link { display: inline-block; margin-top: 12px; color: var(--blue); font-size: 0.85rem; font-weight: 600; }
.deck-preview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.deck-preview-card {
    padding: 14px;
    border-radius: 14px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
}
.deck-preview-card span,
.clinical-deck-card span {
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gray-500);
    margin-bottom: 6px;
}
.deck-preview-card strong,
.clinical-deck-card strong { font-size: 0.95rem; line-height: 1.4; color: var(--gray-900); }
.chat-box { background: white; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.chat-header { background: var(--gray-900); color: white; padding: 18px 24px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.deck-shell {
    padding: 18px 20px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border-bottom: 1px solid var(--gray-200);
}
.deck-shell-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 14px;
}
.deck-shell-head strong { display: block; font-size: 1rem; color: var(--gray-900); }
.deck-shell-head span { display: block; margin-top: 4px; font-size: 0.84rem; color: var(--gray-500); }
.deck-shell-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--blue-light);
    color: var(--blue);
    font-weight: 700;
    font-size: 0.82rem;
    white-space: nowrap;
}
.clinical-deck-grid,
.mobile-deck-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.clinical-deck-card {
    padding: 14px 16px;
    border-radius: 14px;
    background: white;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}
.chat-messages { height: 380px; overflow-y: auto; padding: 24px; }
.msg { margin-bottom: 16px; padding: 16px 20px; border-radius: var(--radius); font-size: 0.9rem; line-height: 1.6; }
.msg-bot { background: var(--gray-100); margin-right: 50px; }
.msg-user { background: var(--blue); color: white; margin-left: 50px; }
.msg a { color: var(--blue); font-weight: 600; }
.msg-user a { color: #93c5fd; }
.msg-divider { border: none; border-top: 1px solid rgba(0,0,0,0.08); margin: 12px 0; }
.chat-input { display: flex; padding: 16px 20px; gap: 12px; border-top: 1px solid var(--gray-200); background: var(--gray-50); }
.chat-input input { flex: 1; padding: 14px 18px; border: 1px solid var(--gray-300); border-radius: var(--radius); font-size: 0.9rem; background: white; }
.chat-input input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,94,184,0.1); }
.chat-input button { padding: 14px 28px; background: var(--blue); color: white; border: none; border-radius: var(--radius); font-weight: 600; cursor: pointer; transition: background 0.2s; }
.chat-input button:hover { background: var(--blue-dark); }

/* ===== LINKS ===== */
.links { padding: 60px 0; background: white; }
.links h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 24px; }
.links-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.link-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 20px 16px; background: var(--gray-50); border-radius: var(--radius); border: 1px solid var(--gray-200); transition: all 0.2s; }
.link-card:hover { border-color: var(--blue); transform: translateY(-4px); box-shadow: var(--shadow); }
.link-icon { font-size: 1.5rem; margin-bottom: 8px; }
.link-card h4 { font-size: 0.85rem; font-weight: 600; }
.link-card p { font-size: 0.7rem; color: var(--gray-500); margin-top: 4px; }

/* ===== DISCLAIMER ===== */
.disclaimer { padding: 24px 0; background: #fef3c7; border-top: 3px solid #f59e0b; }
.disclaimer p { font-size: 0.85rem; color: var(--gray-600); }
.disclaimer a { color: var(--blue); font-weight: 600; }
.clinical-legal-notice {
    margin-top: 22px;
    background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 100%);
    border: 1px solid #fdba74;
    border-left: 5px solid #ea580c;
    border-radius: var(--radius-lg);
    padding: 20px 22px;
    box-shadow: var(--shadow);
}
.clinical-legal-notice.notice-dark {
    background: rgba(15,23,42,0.78);
    border: 1px solid rgba(251,146,60,0.35);
    border-left: 5px solid #fb923c;
    box-shadow: none;
}
.clinical-legal-notice h4 {
    font-size: 0.96rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--gray-900);
}
.clinical-legal-notice.notice-dark h4 { color: white; }
.clinical-legal-notice ul {
    display: grid;
    gap: 9px;
    margin: 0;
    padding-left: 18px;
}
.clinical-legal-notice li {
    color: var(--gray-700);
    font-size: 0.9rem;
    line-height: 1.5;
}
.clinical-legal-notice.notice-dark li { color: rgba(255,255,255,0.86); }
.clinical-legal-notice .notice-link {
    display: inline-block;
    margin-top: 12px;
    color: var(--blue);
    font-size: 0.84rem;
    font-weight: 700;
}
.clinical-legal-notice.notice-dark .notice-link { color: #93c5fd; }

.trust-section { padding: 72px 0; background: var(--gray-50); }
.trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.trust-card { background: white; padding: 28px; border-radius: var(--radius-lg); border: 1px solid var(--gray-200); box-shadow: var(--shadow); }
.trust-card h3 { font-size: 1.25rem; margin-bottom: 12px; }
.trust-card p { color: var(--gray-600); margin-bottom: 14px; }
.trust-card ul { display: grid; gap: 8px; color: var(--gray-600); }
.layers-section { padding: 84px 0; background: linear-gradient(180deg, #f8fafc 0%, #eef5fb 100%); }
.layers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.layer-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow);
}
.layer-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 86px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--blue-light);
    color: var(--blue);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.layer-card h3 { margin: 16px 0 10px; font-size: 1.28rem; color: var(--gray-900); }
.layer-card p { color: var(--gray-600); margin-bottom: 14px; }
.layer-card ul { display: grid; gap: 8px; color: var(--gray-600); }
.layers-note {
    margin-top: 24px;
    padding: 18px 20px;
    border-left: 4px solid var(--red);
    background: rgba(200,16,46,0.08);
    border-radius: 0 var(--radius) var(--radius) 0;
    color: var(--gray-700);
}

.audience-section { padding: 84px 0; background: white; }
.seo-kicker {
    display: inline-block;
    margin-bottom: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--blue-light);
    color: var(--blue);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.audience-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.audience-card {
    background: linear-gradient(180deg, white 0%, var(--gray-50) 100%);
    padding: 30px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow);
}
.audience-card h3 { font-size: 1.3rem; margin-bottom: 10px; color: var(--gray-900); }
.audience-card p { color: var(--gray-600); margin-bottom: 14px; }
.audience-card ul { display: grid; gap: 8px; color: var(--gray-600); margin-bottom: 18px; }
.search-intent-section { padding: 84px 0; background: var(--gray-50); }
.search-intent-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.search-intent-card {
    background: white;
    padding: 28px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow);
}
.search-intent-card h3 { font-size: 1.24rem; margin-bottom: 10px; color: var(--gray-900); }
.search-intent-card p { color: var(--gray-600); margin-bottom: 14px; }
.mini-hero { padding: 72px 0 54px; background: linear-gradient(135deg, var(--gray-900) 0%, #0c2d4d 60%, #071a2b 100%); }
.mini-hero .breadcrumb {
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    color: rgba(255,255,255,0.72);
    font-size: 0.86rem;
}
.mini-hero h1 { max-width: 900px; color: white; font-size: 2.8rem; line-height: 1.08; letter-spacing: -0.03em; }
.mini-hero p { max-width: 760px; margin-top: 18px; color: rgba(255,255,255,0.8); font-size: 1.06rem; }
.page-content { padding: 72px 0; background: white; }
.page-card-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; }
.page-card, .page-side-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 30px;
}
.page-card h2, .page-side-card h3 { color: var(--gray-900); margin-bottom: 14px; }
.page-card p, .page-side-card p { color: var(--gray-600); margin-bottom: 14px; }
.page-card ul, .page-side-card ul { display: grid; gap: 10px; color: var(--gray-600); }
.page-card-grid + .page-card-grid { margin-top: 24px; }
.page-link-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.offer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 24px; }
.offer-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 26px;
    box-shadow: var(--shadow);
}
.offer-card.featured { border: 2px solid var(--blue); }
.offer-card.custom { background: linear-gradient(180deg, #fff 0%, #f8fbff 100%); }
.offer-label {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--blue-light);
    color: var(--blue);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.offer-card h3 { font-size: 1.2rem; margin: 14px 0 10px; color: var(--gray-900); }
.offer-price { display: flex; align-items: flex-end; gap: 6px; margin-bottom: 12px; }
.offer-price strong { font-size: 2.1rem; line-height: 1; color: var(--gray-900); }
.offer-price span { color: var(--gray-500); font-weight: 700; }
.offer-card p { color: var(--gray-600); margin-bottom: 12px; }
.offer-card ul { display: grid; gap: 8px; color: var(--gray-600); margin-bottom: 18px; }
.sales-form {
    display: grid;
    gap: 14px;
    margin-top: 22px;
}
.sales-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sales-status {
    display: none;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 0.9rem;
}
.sales-status.show { display: block; }
.sales-status.ok { background: #d1fae5; color: #065f46; border: 1px solid #86efac; }
.sales-status.error { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.schema-note {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    color: var(--gray-600);
    font-size: 0.92rem;
}

.plans { padding: 84px 0; background: white; }
.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.plan-card { background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-sm); }
.plan-card.featured { border: 2px solid var(--blue); background: white; box-shadow: var(--shadow-lg); }
.plan-card h3 { font-size: 1.25rem; font-weight: 800; }
.plan-price { display: flex; align-items: flex-end; gap: 6px; margin: 16px 0; color: var(--gray-900); }
.plan-price strong { font-size: 2.4rem; line-height: 1; }
.plan-card p { color: var(--gray-600); margin-bottom: 14px; }
.plan-card ul { display: grid; gap: 8px; color: var(--gray-600); margin-bottom: 20px; }
.account-inline-note { margin-top: 12px; font-size: 0.82rem; color: var(--gray-500); }

.modal-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15,23,42,0.52);
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s, visibility .2s;
    z-index: 9999;
}
.modal-overlay.visible { opacity: 1; visibility: visible; }
.modal {
    width: min(100%, 580px);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background: white;
    border-radius: 20px;
    border: 1px solid var(--gray-200);
    box-shadow: 0 30px 80px rgba(15,23,42,0.24);
}
.modal.modal-sm { max-width: 460px; }
.modal-header, .modal-footer { padding: 20px 24px; }
.modal-header { display: flex; justify-content: space-between; gap: 16px; align-items: center; border-bottom: 1px solid var(--gray-200); }
.modal-title { font-size: 1.2rem; font-weight: 800; color: var(--gray-900); }
.modal-close { font-size: 1.7rem; line-height: 1; color: var(--gray-500); }
.modal-body { padding: 22px 24px; }
.modal-desc { color: var(--gray-600); margin-bottom: 16px; }
.modal-footer { border-top: 1px solid var(--gray-200); display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.settings-group { margin-bottom: 14px; }
.settings-label { display: block; margin-bottom: 6px; font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gray-500); }
.settings-input { width: 100%; padding: 14px 16px; border: 1px solid var(--gray-300); border-radius: 12px; background: white; font-size: 0.95rem; }
.settings-input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,94,184,0.12); }
.settings-checkbox { display: flex; align-items: flex-start; gap: 10px; margin-top: 10px; color: var(--gray-600); font-size: 0.9rem; }
.modal-inline-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0 12px; }
.form-helper-text { margin-top: 10px; color: var(--red); font-size: 0.84rem; display: none; }
.auth-google-block {
    padding: 18px;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid var(--gray-200);
}
.btn-google {
    background: white;
    color: var(--gray-900);
    border: 1px solid var(--gray-300);
    box-shadow: var(--shadow-sm);
}
.btn-google:hover {
    border-color: var(--blue);
    background: #f8fbff;
}
.google-mark {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    color: #ea4335;
    font-weight: 900;
    box-shadow: inset 0 0 0 1px var(--gray-200);
}
.auth-helper-line {
    margin-top: 10px;
    font-size: 0.8rem;
    color: var(--gray-500);
    text-align: center;
}
.auth-divider {
    position: relative;
    margin: 18px 0 16px;
    text-align: center;
}
.auth-divider::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    border-top: 1px solid var(--gray-200);
}
.auth-divider span {
    position: relative;
    padding: 0 10px;
    background: white;
    color: var(--gray-500);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.auth-mode-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 6px;
    border-radius: 14px;
    background: var(--gray-100);
}
.auth-mode-btn {
    border: none;
    background: transparent;
    color: var(--gray-600);
    font-size: 0.86rem;
    font-weight: 700;
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
}
.auth-mode-btn.active {
    background: white;
    color: var(--gray-900);
    box-shadow: var(--shadow-sm);
}
.auth-password-panel { margin-top: 16px; }
.auth-terms-row { margin-top: 0; }

.toast-root { position: fixed; right: 20px; bottom: 20px; z-index: 10000; display: grid; gap: 10px; }
.toast {
    min-width: 240px;
    max-width: 360px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #0f172a;
    color: white;
    box-shadow: 0 18px 42px rgba(15,23,42,0.24);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.success { background: #065f46; }
.toast.warning { background: #9a3412; }

/* ===== FOOTER ===== */
.footer { background: var(--gray-900); color: white; padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px; margin-bottom: 40px; }
.footer-brand img { width: 50px; height: 50px; border-radius: 12px; margin-bottom: 16px; }
.footer-brand p { font-size: 0.9rem; opacity: 0.7; line-height: 1.5; }
.footer-col h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 16px; }
.footer-col a { display: block; padding: 6px 0; font-size: 0.85rem; opacity: 0.7; transition: opacity 0.2s; }
.footer-col a:hover { opacity: 1; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; text-align: center; font-size: 0.8rem; opacity: 0.5; }

/* ===== CORE INDICATOR ===== */
.core-indicator { width: 10px; height: 10px; border-radius: 50%; background: #ef4444; margin-left: auto; transition: background .3s; }
.core-indicator.online { background: #22c55e; box-shadow: 0 0 8px rgba(34,197,94,.5); animation: pulse 2s infinite; }
.nav-menu.show {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 70px;
    left: 12px;
    right: 12px;
    background: rgba(15,23,42,0.98);
    padding: 14px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 18px;
    box-shadow: 0 24px 50px rgba(15,23,42,0.35);
    z-index: 999;
}
.nav-menu.show a {
    padding: 12px 14px;
    border-radius: 12px;
}

/* ===== FAQ ===== */
.faq-section { padding: 80px 0; background: white; }
.faq-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; justify-content: center; }
.faq-tab { padding: 10px 20px; border-radius: 50px; border: 2px solid var(--gray-200); background: white; font-size: .9rem; font-weight: 600; cursor: pointer; transition: all .2s; color: var(--gray-600); }
.faq-tab:hover { border-color: var(--blue); color: var(--blue); }
.faq-tab.active { background: var(--blue); color: white; border-color: var(--blue); }
.faq-content { max-width: 800px; margin: 0 auto; }
.faq-item { background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; transition: all .2s; }
.faq-item:hover { border-color: var(--blue); }
.faq-item[open] { background: white; box-shadow: var(--shadow); }
.faq-item summary { padding: 18px 24px; font-weight: 600; font-size: .95rem; cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; }
.faq-item summary::after { content: '+'; font-size: 1.3rem; color: var(--blue); font-weight: 700; transition: transform .2s; }
.faq-item[open] summary::after { content: '\2212 '; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-answer { padding: 0 24px 20px; color: var(--gray-600); font-size: .9rem; line-height: 1.7; }
.faq-ask-btn { display: inline-block; margin-top: 12px; padding: 8px 16px; background: var(--blue); color: white; border: none; border-radius: 8px; font-size: .8rem; font-weight: 600; cursor: pointer; transition: background .2s; }
.faq-ask-btn:hover { background: var(--blue-dark); }
.faq-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 20px; }
.faq-nav-btn { padding: 8px 16px; border: 1px solid var(--gray-300); border-radius: 8px; background: white; font-size: .85rem; font-weight: 600; cursor: pointer; transition: all .2s; color: var(--gray-600); }
.faq-nav-btn:hover { border-color: var(--blue); color: var(--blue); }
.faq-counter { font-size: .85rem; color: var(--gray-500); }
.faq-cta { text-align: center; margin-top: 32px; }
.faq-cta p { color: var(--gray-500); margin-bottom: 12px; }

/* ===== QUICK BUTTONS ===== */
.quick-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.quick-btn { padding: 8px 14px; border-radius: 20px; border: 1px solid var(--blue); background: var(--blue-light); color: var(--blue); font-size: .8rem; font-weight: 600; cursor: pointer; transition: all .2s; }
.quick-btn:hover { background: var(--blue); color: white; }

/* ===== LOADING ANIMATION ===== */
.msg-loading { background: transparent !important; box-shadow: none !important; padding: 12px 20px !important; }
.axis-loading { display: flex; align-items: center; gap: 12px; }
.axis-logo-anim { flex-shrink: 0; }
.axis-loading-text { font-size: .9rem; color: var(--gray-500); font-weight: 500; animation: textPulse 1.5s ease-in-out infinite; }
@keyframes textPulse { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }

/* ===== MSG COPY BUTTON & WADA LINK ===== */
.msg-bot { position: relative; }
.msg-copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 0.75rem;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s, background 0.2s;
    color: var(--gray-500);
}
.msg-bot:hover .msg-copy-btn { opacity: 1; }
.msg-copy-btn:hover { background: var(--gray-100); border-color: var(--blue); color: var(--blue); }
.wada-link-btn {
    display: inline-block;
    margin-top: 8px;
    padding: 6px 14px;
    background: var(--blue-light);
    color: var(--blue) !important;
    border: 1px solid var(--blue);
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s;
}
.wada-link-btn:hover { background: var(--blue); color: white !important; }

/* \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 
   MOBILE CHAT \2014  FAB + FULLSCREEN OVERLAY
   \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550  */

.mobile-chat-fab {
    display: none;
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
    color: white;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 9998;
    box-shadow: 0 6px 24px rgba(0, 94, 184, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    align-items: center;
    justify-content: center;
}
.mobile-chat-fab:hover { transform: scale(1.08); box-shadow: 0 8px 32px rgba(0, 94, 184, 0.5); }
.mobile-chat-fab .fab-badge { position: absolute; top: -2px; right: -2px; width: 14px; height: 14px; background: #22c55e; border-radius: 50%; border: 2px solid white; }

.mobile-chat-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--gray-50);
    flex-direction: column;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.3s, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-chat-overlay.open { opacity: 1; transform: translateY(0); }

.mobile-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: var(--gray-900);
    color: white;
    flex-shrink: 0;
}
.mobile-chat-header-left { display: flex; align-items: center; gap: 10px; }
.mobile-chat-header-left span:first-child { font-size: 1.2rem; }
.mobile-chat-header-left .header-title { font-weight: 700; font-size: 0.95rem; }
.mobile-chat-header-left .header-sub { font-size: 0.7rem; opacity: 0.6; }
.mobile-chat-close { background: rgba(255,255,255,0.1); border: none; color: white; width: 40px; height: 40px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; transition: background 0.2s; }
.mobile-chat-close:hover { background: rgba(255,255,255,0.2); }

.mobile-quick-strip {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: white;
    border-bottom: 1px solid var(--gray-200);
    flex-shrink: 0;
}
.mobile-quick-strip::-webkit-scrollbar { display: none; }
.mobile-quick-btn { white-space: nowrap; padding: 8px 14px; border-radius: 20px; border: 1px solid var(--blue); background: var(--blue-light); color: var(--blue); font-size: 0.78rem; font-weight: 600; cursor: pointer; flex-shrink: 0; transition: all 0.2s; }
.mobile-quick-btn:active { background: var(--blue); color: white; }
.mobile-deck-grid {
    padding: 12px 16px 0;
    grid-template-columns: 1fr;
}

.mobile-chat-messages { flex: 1; overflow-y: auto; padding: 16px; -webkit-overflow-scrolling: touch; }
.mobile-chat-messages .msg-bot { position: relative; }
.mobile-chat-messages .msg-copy-btn { opacity: 0.5; }
.mobile-chat-messages .msg { margin-bottom: 12px; padding: 14px 16px; font-size: 0.88rem; line-height: 1.55; }
.mobile-chat-messages .msg-bot { margin-right: 20px; }
.mobile-chat-messages .msg-user { margin-left: 20px; }

.mobile-chat-input-bar {
    display: flex;
    padding: 12px 16px;
    gap: 10px;
    background: white;
    border-top: 1px solid var(--gray-200);
    flex-shrink: 0;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
}
.mobile-chat-input-bar input { flex: 1; padding: 12px 16px; border: 1px solid var(--gray-300); border-radius: 24px; font-size: 0.9rem; background: var(--gray-50); -webkit-appearance: none; }
.mobile-chat-input-bar input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,94,184,0.1); }
.mobile-chat-input-bar button { padding: 12px 20px; background: var(--blue); color: white; border: none; border-radius: 24px; font-weight: 600; font-size: 0.88rem; cursor: pointer; }

/* \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 
   RESPONSIVE
   \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550 \2550  */

@media (max-width: 1024px) {
    .hero-grid, .feature-grid, .cards-row, .cta-grid, .chat-grid { grid-template-columns: 1fr; gap: 40px; }
    .feature-grid.reverse { direction: ltr; }
    .docs-grid { grid-template-columns: repeat(2, 1fr); }
    .links-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .nav-menu a { padding: 8px 10px; font-size: 0.84rem; }
}

@media (max-width: 768px) {
    .nav-menu { display: none; }
    .mobile-toggle { display: inline-flex; }
    .header-link-btn { display: none; }
    .account-summary { display: none; }
    .logo-sub { font-size: 0.58rem; letter-spacing: 1.3px; }
    .hero { min-height: auto; padding: 50px 0 70px; }
    .hero h1 { font-size: 2rem; }
    .hero-desc { font-size: 1rem; }
    .hero-actions { flex-direction: column; }
    .hero-card { display: none; }
    .docs-grid, .cards-row { grid-template-columns: 1fr; }
    .links-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .plans-grid, .trust-grid, .audience-grid, .page-card-grid, .search-intent-grid, .layers-grid { grid-template-columns: 1fr; }
    .offer-grid, .sales-grid { grid-template-columns: 1fr; }
    .cta-img { display: none; }
    .faq-tabs { gap: 6px; }
    .faq-tab { padding: 8px 14px; font-size: 0.8rem; }
    .mini-hero h1 { font-size: 2rem; }
    .clinical-legal-notice { padding: 18px; }
    .clinical-legal-notice li { font-size: 0.88rem; }
    .deck-preview-grid, .clinical-deck-grid { grid-template-columns: 1fr; }
    .deck-shell-head { flex-direction: column; }

    /* Mobile chat: show FAB, hide desktop chat */
    .mobile-chat-fab { display: flex; }
    .mobile-chat-overlay { display: flex; }
    .chat-section { display: none; }
}

@media (max-width: 380px) {
    .mobile-chat-header { padding: 12px 14px; }
    .mobile-chat-messages { padding: 12px; }
    .mobile-chat-messages .msg { padding: 12px 14px; font-size: 0.84rem; }
    .account-dropdown { width: min(92vw, 290px); right: -8px; }
    .modal-inline-actions { grid-template-columns: 1fr; }
}
