/* Common styles shared by /app/ and /pricing/ (and legal) pages.
   Editorial design system — warm paper, monospace labels, hairline rules,
   big tight headlines, black (text-on-bg) primary buttons. Token block is kept
   identical to landing's style.css so every screen reads as one system. */

/* Self-hosted Inter (rsms.me/inter v4) — avoids Google Fonts third-party request. */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('fonts/InterVariable.woff2') format('woff2-variations');
}
@font-face {
    font-family: 'Inter';
    font-style: italic;
    font-weight: 100 900;
    font-display: swap;
    src: url('fonts/InterVariable-Italic.woff2') format('woff2-variations');
}

/* ===== Obsidian design system — tokens (mirror of iOS SKStyle / PremiumWhiteObsidianStyle).
   Light = cold pearl white + obsidian + platinum blue (NO cream/beige undertone).
   Dark  = cold blue-charcoal + graphite + pearl ink + lightened platinum foreground.
   This block is kept byte-identical between landing style.css and assets/common.css. */
:root {
    /* Surfaces */
    --white: #ffffff;
    --bg: #f5f7fa;              /* canvas */
    --card: #ffffff;           /* card surface */
    --elevated: #ffffff;       /* elevated / popover */
    --border: #dce2e8;         /* hairline divider */
    --control-border: #7b8998; /* input / control border (1pt) */
    --text: #191b1f;           /* ink */
    --text2: #526170;          /* ink secondary */
    --text3: #626f7d;          /* ink tertiary */
    --seg: #eef2f6;            /* field / quiet fill */
    --header-bg: rgba(245,247,250,.85);
    /* Platinum-blue accent (adaptive) — icons, links, focus, selected */
    --accent: #40566e;
    --accent-fill: #242c34;    /* solid obsidian fill under white text */
    --accent-soft: #e8eef4;    /* quiet selected / tint fill */
    --accent-border: #242c34;  /* primary CTA border */
    --focus-ring: rgba(64,86,110,.22);
    --blue: #40566e;           /* legacy alias → platinum accent */
    /* Obsidian primary-button gradient (brandPremium) */
    --grad-premium: linear-gradient(135deg,#344150,#171d24);
    --grad-premium-hover: linear-gradient(135deg,#3c4a5b,#1d242d);
    /* AI / feature highlight — the ONE bright cool accent, reserved for the assistant */
    --ai: #2563eb;
    --grad-ai: linear-gradient(135deg,#2563eb,#4f46e5);
    /* Semantic status (cool, muted) — text tokens flip lighter in dark; *-fill stay dark for white text */
    --red: #b42318;    --red-fill: #b42318;
    --green: #237449;  --green-fill: #237449;
    --orange: #b54708; --orange-fill: #b54708;
    --record: #d13b31;         /* recording carmine (constant) */
    /* Status surfaces — opaque, AA-tuned (mirror iOS status*Surface) */
    --status-error-surface: #fbe9e7; --status-warning-surface: #fff0e6; --status-success-surface: #e5f2e9;
    --purple: #4f46e5; --indigo: #4f46e5; --teal: #40566e; --pink: #c9342f; --yellow: #b54708;
    --font: 'Inter',-apple-system,BlinkMacSystemFont,sans-serif;
    --mono: ui-monospace,'SF Mono','SFMono-Regular',Menlo,monospace;
    --r: 16px;                 /* card radius (iOS 16) */
    --r-btn: 14px;             /* button radius (iOS 14) */
    --rl: 20px;
    --rxl: 22px;
    --max: 1100px;
    --ease: cubic-bezier(.4,0,.2,1);
    --shadow-sm: 0 1px 2px rgba(16,24,40,.04), 0 2px 8px rgba(16,24,40,.05);
    --shadow-md: 0 8px 30px rgba(16,24,40,.08);
    --shadow-lg: 0 24px 60px rgba(16,24,40,.16);
}

[data-theme="dark"] {
    --white: #181d23;
    --bg: #0f1318;
    --card: #181d23;
    --elevated: #212830;
    --border: #353f4a;
    --control-border: #778899;
    --text: #f4f5f6;
    --text2: #b7c1cb;
    --text3: #95a4b3;
    --seg: #12181e;
    --header-bg: rgba(15,19,24,.82);
    --accent: #afc3d6;
    --accent-fill: #35404c;
    --accent-soft: #293542;
    --accent-border: #8b9daf;
    --focus-ring: rgba(175,195,214,.28);
    --blue: #afc3d6;
    --grad-premium: linear-gradient(135deg,#4a5b6c,#303b46);
    --grad-premium-hover: linear-gradient(135deg,#546578,#374350);
    --ai: #3b6edc;
    --grad-ai: linear-gradient(135deg,#2d64dc,#4f46d2);
    --red: #ff9a90;    --red-fill: #b42318;
    --green: #65c98c;  --green-fill: #237449;
    --orange: #ff9f0a; --orange-fill: #b54708;
    --record: #d13b31;
    --status-error-surface: #351f20; --status-warning-surface: #3a2415; --status-success-surface: #193025;
    --purple: #4f46d2; --indigo: #4f46d2; --teal: #afc3d6; --pink: #ff8f87; --yellow: #ff9f0a;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.5), 0 2px 8px rgba(0,0,0,.42);
    --shadow-md: 0 8px 30px rgba(0,0,0,.5);
    --shadow-lg: 0 24px 60px rgba(0,0,0,.7);
}

/* ===== Reset ===== */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background .3s var(--ease), color .3s var(--ease);
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font-family: inherit; border: none; background: none; outline: none; color: inherit; }
button { cursor: pointer; }
input, textarea, select { color: var(--text); }

.container { max-width: var(--max); margin: 0 auto; padding: 0 28px; width: 100%; }
.hidden { display: none !important; }

/* Shared editorial eyebrow/label — monospace, uppercase, tracked. */
.eyebrow {
    font-family: var(--mono);
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--text2);
}

/* ===== Header ===== */
.app-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--header-bg);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border);
}

.app-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 62px;
    gap: 16px;
}
.app-logo {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-shrink: 0;
}
.app-logo img { width: 30px; height: 30px; border-radius: 8px; }
.app-logo span { font-weight: 800; font-size: 1rem; letter-spacing: -.02em; }

.app-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    margin-left: auto;
    margin-right: 10px;
    font-family: var(--mono);
}
.app-nav a {
    color: var(--text2);
    font-size: .74rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .04em;
    transition: color .2s;
}
.app-nav a:hover, .app-nav a.active { color: var(--text); }

/* Items visible only to authenticated users (toggled by JS via .show). */
.auth-only { display: none !important; }
.auth-only.show { display: inline-flex !important; }

.app-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-btn {
    background: transparent;
    border: 1px solid var(--border);
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: .2s;
    color: var(--text);
    padding: 0;
    font-size: .95rem;
}
.icon-btn:hover { border-color: var(--text); }

.lang-btn-sm {
    background: transparent;
    border: 1px solid var(--border);
    padding: 7px 13px;
    border-radius: 8px;
    font-size: .72rem;
    font-weight: 700;
    color: var(--text);
    font-family: var(--mono);
    transition: .2s;
}
.lang-btn-sm:hover { border-color: var(--text); }

/* Avatar / sign-in */
.avatar-wrap { position: relative; }
.avatar {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--accent-fill);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .85rem;
    cursor: pointer;
    border: 1px solid var(--accent-border);
    transition: transform .15s;
    user-select: none;
}
.avatar:hover { transform: translateY(-1px); }

.avatar-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 8px;
    box-shadow: var(--shadow-md);
    min-width: 240px;
    z-index: 60;
    animation: popIn .15s var(--ease);
}
@keyframes popIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

.avatar-menu .menu-info {
    padding: 8px 12px 10px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 4px;
}
.avatar-menu .menu-email {
    font-size: .82rem;
    font-weight: 600;
    word-break: break-all;
}
.avatar-menu .menu-balance {
    font-size: .72rem;
    color: var(--text2);
    margin-top: 2px;
    font-family: var(--mono);
}

/* Wider variant — used when the menu hosts the mini-wallet breakdown. */
.avatar-menu-wide { min-width: 320px; }

/* ===== Mini-wallet inside avatar dropdown — mirrors iOS WalletView ===== */
.wallet-mini {
    padding: 12px 12px 8px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 4px;
}
.wallet-mini-loading,
.wallet-mini-error {
    font-size: .78rem;
    color: var(--text2);
    text-align: center;
    padding: 8px 4px;
    font-family: var(--mono);
}
.wallet-mini-error { color: var(--red); }

.wallet-total {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
    margin-bottom: 12px;
}
.wallet-total-amount {
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
    color: var(--text);
}
.wallet-total-unit {
    font-size: .82rem;
    color: var(--text2);
    font-weight: 500;
}

.wallet-sub-card {
    background: var(--seg);
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 8px;
}
.wallet-sub-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}
.wallet-sub-title {
    font-size: .82rem;
    font-weight: 700;
    color: var(--text);
}
.wallet-sub-rate {
    font-size: .72rem;
    color: var(--text2);
    font-variant-numeric: tabular-nums;
    font-family: var(--mono);
}
.wallet-progress {
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}
.wallet-progress-fill {
    height: 100%;
    background: var(--blue);
    border-radius: 3px;
    transition: width .3s var(--ease);
}
.wallet-sub-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: .7rem;
    color: var(--text2);
    font-family: var(--mono);
}
.wallet-sub-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-variant-numeric: tabular-nums;
}
.wallet-sub-renewal {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .72rem;
    color: var(--text2);
}

.wallet-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 4px;
    font-size: .82rem;
}
.wallet-row-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text);
    font-weight: 500;
}
.wallet-row-amount {
    color: var(--text2);
    font-variant-numeric: tabular-nums;
    font-family: var(--mono);
}
.avatar-menu button, .avatar-menu a {
    display: block;
    width: 100%;
    text-align: left;
    padding: 9px 12px;
    border-radius: 9px;
    font-size: .85rem;
    color: var(--text);
    background: none;
    border: none;
    cursor: pointer;
    transition: background .15s;
}
.avatar-menu button:hover, .avatar-menu a:hover { background: var(--seg); }
.avatar-menu .menu-danger { color: var(--red); }

/* ===== Buttons ===== */
.btn {
    padding: 12px 22px;
    border-radius: var(--r-btn);
    font-size: .92rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all .2s var(--ease);
    border: 1px solid transparent;
    text-align: center;
    white-space: nowrap;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* Primary = obsidian gradient + hairline border + calm periodic shimmer (mirrors iOS brandPrimaryButton). */
.btn-primary {
    position: relative;
    overflow: hidden;
    background: var(--grad-premium);
    color: #fff;
    border-color: var(--accent-border);
}
.btn-primary:hover:not(:disabled) {
    background: var(--grad-premium-hover);
    transform: translateY(-1px);
}
.btn-primary::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 45%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.30), transparent);
    transform: translateX(-160%) skewX(-18deg);
    pointer-events: none;
    animation: btnShimmer 4.8s var(--ease) infinite;
}
.btn-primary:disabled::after { display: none; }
@keyframes btnShimmer {
    0% { transform: translateX(-160%) skewX(-18deg); }
    18%, 100% { transform: translateX(360%) skewX(-18deg); }
}
@media (prefers-reduced-motion: reduce) {
    .btn-primary::after { display: none; }
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}
.btn-secondary:hover:not(:disabled) {
    border-color: var(--text);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
}
.btn-ghost:hover:not(:disabled) { background: var(--seg); }

.btn-danger {
    background: var(--red-fill);
    color: #fff;
    border-color: var(--red-fill);
}
.btn-danger:hover:not(:disabled) {
    background: #991d13;
    border-color: #991d13;
}

.btn-block { width: 100%; }
.btn-lg { padding: 15px 26px; font-size: 1rem; border-radius: var(--r-btn); }

/* ===== Forms ===== */
.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}
.field label {
    font-size: .72rem;
    font-weight: 600;
    color: var(--text2);
    font-family: var(--mono);
    text-transform: uppercase;
    letter-spacing: .05em;
}
.field input, .field select, .field textarea {
    background: var(--seg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: .92rem;
    color: var(--text);
    transition: .2s;
    width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
    border-color: var(--accent);
    background: var(--card);
    box-shadow: 0 0 0 3px var(--focus-ring);
}
.field input::placeholder { color: var(--text3); }

/* ===== Modal ===== */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 16px;
    animation: fadeIn .2s var(--ease);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
    background: var(--card);
    border-radius: var(--rxl);
    padding: 28px;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    animation: modalIn .25s var(--ease);
    max-height: calc(100vh - 32px);
    overflow-y: auto;
}
@keyframes modalIn { from { opacity: 0; transform: scale(.96) translateY(8px); } to { opacity: 1; transform: scale(1) translateY(0); } }

.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}
.modal-title {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -.03em;
    margin: 0;
}
.modal-subtitle {
    font-size: .88rem;
    color: var(--text2);
    margin-top: 6px;
    line-height: 1.5;
}
.modal-close {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--seg);
    color: var(--text2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: .15s;
    flex-shrink: 0;
    border: 1px solid transparent;
}
.modal-close:hover { border-color: var(--border); color: var(--text); }

/* ===== Toast ===== */
.toast-container {
    position: fixed;
    top: 80px;
    right: 24px;
    z-index: 300;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 360px;
    pointer-events: none;
}
.toast {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 18px;
    box-shadow: var(--shadow-md);
    font-size: .88rem;
    color: var(--text);
    pointer-events: auto;
    animation: toastIn .25s var(--ease);
    border-left: 3px solid var(--accent);
}
.toast.toast-error { border-left-color: var(--red); }
.toast.toast-success { border-left-color: var(--green); }
.toast.toast-warning { border-left-color: var(--orange); }
.toast.fade-out { animation: toastOut .25s var(--ease) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(20px); } }

/* ===== Footer ===== */
.app-footer {
    background: var(--card);
    border-top: 1px solid var(--border);
    margin-top: auto;
}
.app-footer-inner {
    padding: 30px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    max-width: var(--max);
    margin: 0 auto;
}
.app-footer-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    font-weight: 800;
    font-size: .9rem;
}
.app-footer-brand img { width: 24px; height: 24px; border-radius: 6px; }
.app-footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    font-family: var(--mono);
}
.app-footer-links a {
    color: var(--text2);
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    transition: .2s;
}
.app-footer-links a:hover { color: var(--text); }
.app-footer-copy {
    color: var(--text3);
    font-size: .72rem;
    width: 100%;
    text-align: center;
    margin-top: 6px;
    font-family: var(--mono);
}

/* ===== Consent checkbox (signup) ===== */
.auth-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    margin-bottom: 14px;
    background: var(--seg);
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color .2s var(--ease), background .2s var(--ease);
}
.auth-consent:hover { border-color: var(--text3); }
.auth-consent input[type="checkbox"] {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    accent-color: var(--accent);
    cursor: pointer;
}
.auth-consent-text {
    font-size: .82rem;
    line-height: 1.45;
    color: var(--text2);
}
.auth-consent-text a {
    color: var(--blue);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.auth-consent-text a:hover { text-decoration-thickness: 2px; }
.auth-consent-shake {
    animation: consentShake .42s var(--ease);
    border-color: var(--red);
}
@keyframes consentShake {
    10%, 90% { transform: translateX(-2px); }
    20%, 80% { transform: translateX(3px); }
    30%, 50%, 70% { transform: translateX(-5px); }
    40%, 60% { transform: translateX(5px); }
}

/* ===== Provider buttons ===== */
.provider-btn {
    width: 100%;
    padding: 13px 16px;
    border-radius: 12px;
    font-size: .92rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all .2s var(--ease);
    border: 1px solid transparent;
    margin-bottom: 8px;
}
.provider-btn:hover { transform: translateY(-1px); }
.provider-apple {
    background: #000;
    color: #fff;
}
.provider-apple:hover { background: #1a1a1a; }
.provider-google {
    background: #fff;
    color: #1f1f1f;
    border-color: #dadce0;
}
.provider-google:hover { background: #f8f9fa; }
[data-theme="dark"] .provider-google { background: #fff; color: #1f1f1f; }
.provider-email {
    background: var(--accent-fill);
    color: #fff;
}
.provider-email:hover { filter: brightness(1.14); }

.divider-or {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text3);
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .1em;
    margin: 14px 0;
    font-family: var(--mono);
}
.divider-or::before, .divider-or::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ===== Tabs (segmented) ===== */
.tabs-pill {
    display: flex;
    gap: 5px;
    background: var(--seg);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 16px;
}
.tab-pill {
    flex: 1;
    padding: 9px 0;
    border-radius: 9px;
    font-size: .82rem;
    font-weight: 600;
    color: var(--text3);
    text-align: center;
    transition: .2s;
    background: none;
    border: none;
}
.tab-pill.active {
    background: var(--card);
    color: var(--text);
    box-shadow: 0 1px 4px rgba(0,0,0,.10);
}
[data-theme="dark"] .tab-pill.active { box-shadow: 0 1px 4px rgba(0,0,0,.5); }

/* ===== Info banner (limited-feature notice) ===== */
.info-banner {
    background: color-mix(in srgb, var(--orange) 9%, transparent);
    border-bottom: 1px solid var(--border);
    color: var(--text);
    font-size: .82rem;
    line-height: 1.4;
}
[data-theme="dark"] .info-banner {
    background: color-mix(in srgb, var(--orange) 12%, transparent);
}
.info-banner-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 28px;
    max-width: var(--max);
    margin: 0 auto;
}
.info-banner .info-icon {
    flex-shrink: 0;
    color: var(--orange);
    display: inline-flex;
    align-items: center;
}
.info-banner .info-text { flex: 1; }
.info-banner .info-link {
    color: var(--blue);
    font-weight: 600;
    margin-left: 6px;
    white-space: nowrap;
}
.info-banner .info-link:hover { text-decoration: underline; }
.info-banner .info-close {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: transparent;
    color: var(--text2);
    font-size: 1.4rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
}
.info-banner .info-close:hover { background: rgba(0,0,0,.06); }
[data-theme="dark"] .info-banner .info-close:hover { background: rgba(255,255,255,.08); }

/* ===== Insufficient balance modal ===== */
.balance-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
    .container { padding: 0 20px; }
    .app-header-inner { height: 56px; gap: 8px; }
    .app-nav { display: none; }
    .app-logo span { font-size: .95rem; }
    .modal { padding: 22px; border-radius: 18px; }
    .toast-container { right: 12px; left: 12px; max-width: none; top: 72px; }
    .app-footer-inner { flex-direction: column; text-align: center; padding: 26px 20px; }
    .app-footer-links { justify-content: center; }
}

@media (max-width: 600px) {
    .info-banner-inner { padding: 10px 20px; gap: 8px; }
    .info-banner .info-link { display: block; margin-left: 0; margin-top: 2px; }
}
