:root {
    color-scheme: dark;
    --yellow: #ffb800;
    --yellow-soft: rgba(255,184,0,.12);
    --red: #e8341a;
    --green: #2bd17e;
    --ink: #090909;
    --panel: #121212;
    --panel-2: #181818;
    --text: #f8f8f8;
    --muted: #a5a5a5;
    --line: rgba(255,255,255,.1);
    --radius: 22px;
    --shadow: 0 24px 70px rgba(0,0,0,.32);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    background:
        radial-gradient(circle at 85% 0%, rgba(255,184,0,.11), transparent 28rem),
        linear-gradient(180deg, #0b0b0b, #070707);
    color: var(--text);
    font-family: Inter, "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
:where(a,button,input,select,textarea):focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
[hidden] { display: none !important; }
.skip-link { position: fixed; left: 1rem; top: -4rem; z-index: 100; padding: .7rem 1rem; background: var(--yellow); color: #050505; border-radius: 10px; font-weight: 900; }
.skip-link:focus { top: 1rem; }

.profile-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .8rem max(1rem, calc((100vw - 1240px) / 2));
    border-bottom: 1px solid var(--line);
    background: rgba(9,9,9,.86);
    backdrop-filter: blur(18px);
}
.profile-brand { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.profile-brand img { width: 46px; height: 46px; object-fit: cover; border-radius: 14px; border: 1px solid rgba(255,184,0,.25); }
.profile-brand span { display: grid; }
.profile-brand b { font-size: .92rem; }
.profile-brand small { color: var(--yellow); font-size: .68rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.profile-topbar nav { display: flex; align-items: center; gap: .55rem; }
.topbar-link, .topbar-logout { min-height: 42px; padding: .65rem .9rem; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.04); color: var(--text); font-weight: 850; cursor: pointer; }
.topbar-link { background: var(--yellow); color: #080808; border-color: transparent; }

.profile-main { width: min(1240px, calc(100% - 2rem)); margin: 0 auto; padding: clamp(1.3rem, 3vw, 2.8rem) 0 5rem; }
.profile-loading { min-height: 60vh; display: grid; place-items: center; align-content: center; gap: 1rem; color: var(--muted); }
.loading-mark { width: 44px; height: 44px; border: 3px solid var(--line); border-top-color: var(--yellow); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.eyebrow, .section-heading span, .identity-card > div:nth-child(2) > span, .profile-tip > span, .form-intro > span {
    color: var(--yellow);
    font-size: .69rem;
    font-weight: 1000;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.auth-shell { min-height: calc(100vh - 150px); display: grid; grid-template-columns: minmax(0,1.05fr) minmax(390px,.75fr); gap: clamp(1.5rem,4vw,5rem); align-items: center; }
.auth-story h1 { max-width: 670px; margin: .65rem 0 1rem; font-size: clamp(2.5rem,6vw,5.8rem); line-height: .94; letter-spacing: -.065em; }
.auth-story > p { max-width: 570px; color: var(--muted); font-size: clamp(1rem,2vw,1.25rem); line-height: 1.6; }
.benefit-list { display: grid; grid-template-columns: repeat(3,1fr); gap: .7rem; margin-top: 2rem; }
.benefit-list div { padding: 1rem; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.035); }
.benefit-list span, .benefit-list strong, .benefit-list small { display: block; }
.benefit-list span { color: var(--yellow); font-size: .7rem; font-weight: 1000; }
.benefit-list strong { margin: .6rem 0 .2rem; }
.benefit-list small { color: var(--muted); line-height: 1.35; }
.auth-card { padding: clamp(1rem,3vw,1.5rem); border: 1px solid var(--line); border-radius: 26px; background: rgba(18,18,18,.92); box-shadow: var(--shadow); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; padding: .35rem; margin-bottom: 1.2rem; border: 1px solid var(--line); border-radius: 14px; background: #0c0c0c; }
.auth-tabs button { min-height: 42px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-weight: 900; cursor: pointer; }
.auth-tabs button.active { background: var(--yellow); color: #080808; }
.auth-form { display: none; gap: .8rem; }
.auth-form.active { display: grid; }
.form-intro { margin-bottom: .3rem; }
.form-intro h2 { margin: .35rem 0 .2rem; font-size: 1.55rem; }
.form-intro p, .field-help { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.5; }
.auth-form label, .settings-form label { display: grid; gap: .38rem; color: #c9c9c9; font-size: .78rem; font-weight: 850; }
.auth-form label small { color: var(--yellow); font-size: .65rem; }
input, select, textarea {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: .75rem .85rem;
    background: #0b0b0b;
    color: var(--text);
    font-size: 16px;
}
textarea { resize: vertical; }
.form-pair { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }
.primary-button, .secondary-button { min-height: 50px; border: 0; border-radius: 13px; padding: .75rem 1rem; background: var(--yellow); color: #070707; font-weight: 1000; cursor: pointer; }
.secondary-button { background: var(--text); }
.text-button { min-height: 40px; border: 0; background: transparent; color: var(--yellow); font-weight: 900; cursor: pointer; }

.welcome-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    min-height: 230px;
    padding: clamp(1.35rem,4vw,3rem);
    overflow: hidden;
    border: 1px solid rgba(255,184,0,.24);
    border-radius: 30px;
    background:
        radial-gradient(circle at 92% 10%, rgba(255,184,0,.26), transparent 22rem),
        linear-gradient(135deg, #17140c, #101010 60%);
    box-shadow: var(--shadow);
}
.welcome-card h1 { margin: .4rem 0 .3rem; font-size: clamp(2.2rem,5vw,4.8rem); line-height: 1; letter-spacing: -.055em; }
.welcome-card p { margin: 0; color: var(--muted); font-size: 1rem; }
.hero-order-button { min-width: min(360px,40%); padding: 1.25rem; text-align: left; border: 1px solid rgba(255,184,0,.3); border-radius: 20px; background: rgba(5,5,5,.75); color: var(--text); cursor: pointer; box-shadow: 0 18px 45px rgba(0,0,0,.28); }
.hero-order-button span, .hero-order-button strong, .hero-order-button small { display: block; }
.hero-order-button span { color: var(--yellow); font-size: .7rem; font-weight: 1000; text-transform: uppercase; letter-spacing: .08em; }
.hero-order-button strong { margin: .45rem 0 .25rem; font-size: 1.2rem; }
.hero-order-button small { color: var(--muted); }
.section-nav { position: sticky; top: 83px; z-index: 15; display: flex; gap: .35rem; width: fit-content; max-width: 100%; margin: 1rem auto; padding: .35rem; overflow-x: auto; border: 1px solid var(--line); border-radius: 999px; background: rgba(13,13,13,.88); backdrop-filter: blur(14px); scrollbar-width: none; }
.section-nav a { flex: 0 0 auto; padding: .62rem .85rem; border-radius: 999px; color: var(--muted); font-size: .78rem; font-weight: 900; }
.section-nav a:hover { background: var(--yellow-soft); color: var(--yellow); }
.dashboard-layout { display: grid; grid-template-columns: 290px minmax(0,1fr); gap: 1rem; align-items: start; }
.identity-column { position: sticky; top: 150px; display: grid; gap: .8rem; }
.identity-card, .mini-stats, .profile-tip, .content-card { border: 1px solid var(--line); border-radius: var(--radius); background: rgba(18,18,18,.9); }
.identity-card { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: .75rem; align-items: center; padding: 1rem; }
.avatar { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; background: var(--yellow); color: #080808; font-weight: 1000; }
.identity-card strong, .identity-card small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.identity-card strong { margin: .2rem 0; }
.identity-card small { color: var(--muted); font-size: .7rem; }
.completion-ring { --progress: 50; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--yellow) calc(var(--progress)*1%), #282828 0); position: relative; }
.completion-ring::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--panel); }
.completion-ring b { position: relative; font-size: .65rem; }
.mini-stats { display: grid; grid-template-columns: repeat(3,1fr); padding: .8rem; }
.mini-stats div { min-width: 0; padding: .2rem .55rem; border-right: 1px solid var(--line); }
.mini-stats div:last-child { border: 0; }
.mini-stats span, .mini-stats strong { display: block; }
.mini-stats span { color: var(--muted); font-size: .62rem; }
.mini-stats strong { margin-top: .25rem; font-size: 1.05rem; }
.profile-tip { padding: 1rem; background: linear-gradient(140deg, rgba(255,184,0,.11), rgba(18,18,18,.9)); }
.profile-tip strong { display: block; margin: .35rem 0; }
.profile-tip p { margin: 0; color: var(--muted); font-size: .76rem; line-height: 1.45; }
.experience-column { min-width: 0; display: grid; gap: 1rem; }
.content-card { padding: clamp(1rem,2vw,1.35rem); scroll-margin-top: 150px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.section-heading h2 { margin: .25rem 0 0; font-size: clamp(1.2rem,2.5vw,1.55rem); }
.section-heading > a { color: var(--yellow); font-size: .76rem; font-weight: 900; }
.action-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: .7rem; }
.action-grid > * { min-height: 120px; display: grid; align-content: center; gap: .2rem; padding: 1rem; text-align: left; border: 1px solid var(--line); border-radius: 16px; background: #0d0d0d; color: var(--text); cursor: pointer; }
.action-grid small { color: var(--muted); }
.action-icon { width: 34px; height: 34px; display: grid; place-items: center; margin-bottom: .45rem; border-radius: 10px; background: var(--yellow-soft); color: var(--yellow); font-size: 1.2rem; }
.card-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .7rem; }
.favorite-card { min-width: 0; display: grid; gap: .65rem; padding: 1rem; border: 1px solid var(--line); border-radius: 16px; background: #0d0d0d; }
.favorite-card > span { color: var(--yellow); font-size: .65rem; font-weight: 1000; text-transform: uppercase; }
.favorite-card strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.favorite-card p { min-height: 2.6em; margin: 0; color: var(--muted); font-size: .73rem; line-height: 1.4; }
.favorite-card footer { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.favorite-card button, .order-actions button { min-height: 38px; border: 0; border-radius: 10px; padding: .55rem .75rem; background: var(--yellow); color: #070707; font-weight: 950; cursor: pointer; }
.orders-list { display: grid; gap: .6rem; }
.order-card { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 1rem; align-items: center; padding: 1rem; border: 1px solid var(--line); border-radius: 16px; background: #0d0d0d; }
.order-card h3 { margin: 0 0 .25rem; font-size: .95rem; }
.order-card p { margin: 0; color: var(--muted); font-size: .75rem; line-height: 1.4; }
.order-total { font-size: 1.05rem; font-weight: 1000; white-space: nowrap; }
.order-actions { display: flex; gap: .4rem; }
.order-actions .save-order { background: rgba(255,255,255,.08); color: var(--text); }
.empty-card { grid-column: 1/-1; padding: 1.2rem; text-align: center; border: 1px dashed var(--line); border-radius: 14px; color: var(--muted); }
.empty-card strong { display: block; margin-bottom: .3rem; color: var(--text); }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; scroll-margin-top: 150px; }
.settings-form { display: grid; gap: .72rem; }
.settings-form > div { display: grid; gap: .72rem; }
.status-pill { padding: .35rem .55rem; border: 1px solid rgba(255,184,0,.25); border-radius: 999px; color: var(--yellow); background: var(--yellow-soft); font-size: .66rem; white-space: nowrap; }
.status-pill.ready { color: var(--green); border-color: rgba(43,209,126,.25); background: rgba(43,209,126,.08); }
.toast { position: fixed; left: 50%; bottom: calc(1rem + env(safe-area-inset-bottom)); z-index: 50; max-width: min(92vw,470px); padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 13px; background: #181818; color: var(--text); box-shadow: var(--shadow); font-weight: 850; opacity: 0; transform: translate(-50%,1rem); pointer-events: none; transition: .25s ease; }
.toast.show { opacity: 1; transform: translate(-50%,0); }

.simple-welcome {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 760px;
    margin: 0 auto 1rem;
    padding: 1.1rem 1.2rem;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(18,18,18,.84);
}
.simple-welcome h1 { margin: .2rem 0 .1rem; font-size: clamp(1.65rem,4vw,2.35rem); line-height: 1; letter-spacing: -.035em; }
.simple-welcome p { margin: 0; color: var(--muted); font-size: .86rem; }
.section-nav button {
    flex: 0 0 auto;
    min-height: 38px;
    padding: .55rem .85rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    font-size: .78rem;
    font-weight: 900;
    cursor: pointer;
}
.section-nav button.active { background: var(--yellow); color: #080808; }
.profile-panel { max-width: 980px; margin: 0 auto; }
.profile-panel.active { opacity: 1; }
.quick-focus-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .8rem; }
.focus-card {
    min-height: 230px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: .32rem;
    padding: 1.3rem;
    text-align: left;
    border: 1px solid var(--line);
    border-radius: 22px;
    background:
        radial-gradient(circle at 90% 10%, rgba(255,184,0,.09), transparent 11rem),
        var(--panel);
    color: var(--text);
    box-shadow: 0 18px 45px rgba(0,0,0,.18);
    cursor: pointer;
}
.focus-card:hover { border-color: rgba(255,184,0,.32); transform: translateY(-2px); }
.focus-card span { margin-bottom: auto; color: var(--yellow); font-size: .68rem; font-weight: 1000; letter-spacing: .08em; text-transform: uppercase; }
.focus-card strong { max-width: 100%; overflow: hidden; text-overflow: ellipsis; font-size: clamp(1.15rem,2.5vw,1.45rem); white-space: nowrap; }
.focus-card small { min-height: 2.5em; color: var(--muted); line-height: 1.35; }
.focus-card b { margin-top: .65rem; color: var(--yellow); font-size: .78rem; }
.favorite-focus { border-color: rgba(255,184,0,.35); background: linear-gradient(145deg, rgba(255,184,0,.15), var(--panel) 64%); }
.menu-focus { background: linear-gradient(145deg, #1a1a1a, #101010); }
.quiet-account-link {
    width: 100%;
    min-height: 58px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .5rem;
    margin-top: .8rem;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: rgba(255,255,255,.025);
    color: var(--muted);
    cursor: pointer;
}
.quiet-account-link strong { color: var(--text); }
.account-summary { display: grid; grid-template-columns: 1fr 1fr 1.15fr; gap: .8rem; margin-bottom: .8rem; }
.account-summary .profile-tip { margin: 0; }
.pagination { display: flex; justify-content: center; align-items: center; gap: .45rem; margin-top: 1rem; }
.pagination:empty { display: none; }
.pagination button {
    min-width: 40px;
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: rgba(255,255,255,.04);
    color: var(--text);
    font-weight: 900;
    cursor: pointer;
}
.pagination button.active { border-color: var(--yellow); background: var(--yellow); color: #080808; }
.pagination button:disabled { opacity: .4; cursor: default; }

@media (max-width: 900px) {
    .auth-shell { grid-template-columns: 1fr; align-items: start; }
    .auth-story { text-align: center; }
    .auth-story > p { margin-inline: auto; }
    .benefit-list { max-width: 680px; margin-inline: auto; }
    .dashboard-layout { grid-template-columns: 1fr; }
    .identity-column { position: static; grid-template-columns: 1fr 1fr; }
    .profile-tip { grid-column: 1/-1; }
    .card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .settings-grid { grid-template-columns: 1fr; }
    .quick-focus-grid { grid-template-columns: 1fr 1fr; }
    .menu-focus { grid-column: 1/-1; min-height: 150px; }
    .account-summary { grid-template-columns: 1fr 1fr; }
    .account-summary .profile-tip { grid-column: 1/-1; }
}

@media (max-width: 620px), (orientation: landscape) and (max-height: 520px) {
    .profile-topbar { min-height: 64px; padding: .55rem .75rem; }
    .profile-brand img { width: 40px; height: 40px; }
    .profile-brand small, .topbar-logout { display: none; }
    .topbar-link { min-height: 40px; padding: .55rem .72rem; font-size: .76rem; }
    .profile-main { width: min(100% - 1rem,1240px); padding-top: .75rem; padding-bottom: calc(5rem + env(safe-area-inset-bottom)); }
    .auth-story { padding: 1.5rem .5rem .4rem; }
    .auth-story h1 { font-size: 2.7rem; }
    .benefit-list { grid-template-columns: 1fr; text-align: left; }
    .benefit-list div { display: grid; grid-template-columns: auto 1fr; gap: 0 .7rem; }
    .benefit-list span { grid-row: 1/3; }
    .benefit-list strong { margin: 0; }
    .auth-card { padding: .8rem; border-radius: 20px; }
    .form-pair { grid-template-columns: 1fr; }
    .welcome-card { min-height: 0; display: grid; padding: 1.2rem; border-radius: 22px; }
    .welcome-card h1 { font-size: 2.35rem; }
    .hero-order-button { width: 100%; min-width: 0; }
    .section-nav { top: 70px; width: 100%; justify-content: flex-start; margin: .65rem 0; border-radius: 14px; }
    .simple-welcome { margin-bottom: .65rem; padding: .85rem; border-radius: 16px; }
    .simple-welcome .avatar { width: 42px; height: 42px; border-radius: 12px; }
    .simple-welcome h1 { font-size: 1.65rem; }
    .quick-focus-grid { grid-template-columns: 1fr; gap: .65rem; }
    .focus-card, .menu-focus { grid-column: auto; min-height: 165px; padding: 1rem; border-radius: 18px; }
    .focus-card small { min-height: 0; }
    .quiet-account-link { display: grid; gap: .1rem; padding: .7rem; text-align: center; font-size: .76rem; }
    .account-summary { grid-template-columns: 1fr; }
    .account-summary .profile-tip { grid-column: auto; }
    .identity-column { grid-template-columns: 1fr; }
    .profile-tip { grid-column: auto; }
    .action-grid { grid-template-columns: 1fr 1fr; }
    .action-grid > *:first-child { grid-column: 1/-1; }
    .card-grid { grid-template-columns: 1fr; }
    .order-card { grid-template-columns: 1fr auto; gap: .7rem; }
    .order-actions { grid-column: 1/-1; }
    .order-actions button { flex: 1; }
    .content-card { padding: .9rem; border-radius: 18px; }
}

@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto !important; transition: none !important; animation-duration: .01ms !important; }
}

/* Customer account 1.2 — mobile-first ordering experience */
.mobile-logout { display: none; }
.section-nav .nav-icon { display: none; }
.section-nav-menu {
    display: none;
    align-items: center;
    justify-content: center;
}

@media (min-width: 621px) {
    .focus-card { transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
    .focus-card:hover { box-shadow: 0 20px 52px rgba(0,0,0,.28); }
}

@media (max-width: 620px), (orientation: landscape) and (max-height: 520px) {
    :root { --mobile-nav-height: 72px; --radius: 18px; }
    html { scroll-padding-top: 76px; }
    body {
        background: radial-gradient(circle at 100% 0%, rgba(255,184,0,.13), transparent 20rem), #080808;
        overscroll-behavior-y: contain;
    }

    .profile-topbar {
        min-height: 60px;
        padding: max(.5rem, env(safe-area-inset-top)) .8rem .5rem;
        border-bottom-color: rgba(255,255,255,.07);
        background: rgba(8,8,8,.92);
    }
    .profile-brand { gap: .58rem; }
    .profile-brand img { width: 38px; height: 38px; border-radius: 12px; }
    .profile-brand b { font-size: .86rem; }
    .profile-brand small { display: block; font-size: .55rem; }
    .topbar-link { min-height: 42px; padding: .58rem .8rem; border-radius: 999px; font-size: .75rem; }

    .profile-main {
        width: 100%;
        padding: .7rem .75rem calc(var(--mobile-nav-height) + 1.35rem + env(safe-area-inset-bottom));
    }

    .simple-welcome {
        max-width: none;
        gap: .75rem;
        margin: 0 0 .7rem;
        padding: .8rem .85rem;
        border-color: rgba(255,184,0,.18);
        border-radius: 18px;
        background: radial-gradient(circle at 92% 0%, rgba(255,184,0,.16), transparent 12rem), rgba(18,18,18,.92);
    }
    .simple-welcome .avatar {
        width: 44px;
        height: 44px;
        flex: 0 0 44px;
        border-radius: 14px;
        box-shadow: 0 8px 24px rgba(255,184,0,.15);
    }
    .simple-welcome .eyebrow { font-size: .58rem; }
    .simple-welcome h1 { margin: .12rem 0; font-size: 1.42rem; letter-spacing: -.04em; }
    .simple-welcome p { font-size: .77rem; }

    .section-nav {
        position: fixed;
        inset: auto .55rem calc(.5rem + env(safe-area-inset-bottom));
        z-index: 40;
        width: auto;
        height: var(--mobile-nav-height);
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: .1rem;
        margin: 0;
        padding: .35rem;
        overflow: visible;
        border: 1px solid rgba(255,255,255,.12);
        border-radius: 22px;
        background: rgba(16,16,16,.94);
        box-shadow: 0 16px 48px rgba(0,0,0,.55);
        backdrop-filter: blur(22px) saturate(1.25);
    }
    .section-nav button,
    .section-nav-menu {
        min-width: 0;
        min-height: 60px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: .18rem;
        padding: .25rem .1rem;
        border-radius: 17px;
        color: #999;
        font-size: .58rem;
        line-height: 1;
        font-weight: 900;
    }
    .section-nav button.active { background: rgba(255,184,0,.13); color: var(--yellow); }
    .section-nav .nav-icon {
        width: 27px;
        height: 27px;
        display: grid;
        place-items: center;
        font-size: 1.25rem;
        line-height: 1;
    }
    .section-nav-menu { position: relative; color: var(--yellow); }
    .section-nav-menu .nav-icon {
        border-radius: 50%;
        background: var(--yellow);
        color: #080808;
        box-shadow: 0 8px 22px rgba(255,184,0,.22);
    }

    .profile-panel { max-width: none; }
    .quick-focus-grid { grid-template-columns: 1fr 1fr; gap: .6rem; }
    .focus-card, .menu-focus { min-height: 142px; padding: .9rem; border-radius: 18px; }
    .favorite-focus {
        grid-column: 1 / -1;
        min-height: 174px;
        background: radial-gradient(circle at 100% 0%, rgba(255,184,0,.22), transparent 13rem), linear-gradient(145deg, rgba(255,184,0,.13), #131313 68%);
    }
    .focus-card span { font-size: .58rem; }
    .focus-card strong {
        font-size: 1rem;
        white-space: normal;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }
    .favorite-focus strong { font-size: 1.3rem; }
    .focus-card small {
        min-height: 0;
        overflow: hidden;
        font-size: .7rem;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }
    .focus-card b { margin-top: .35rem; font-size: .68rem; }
    .quiet-account-link { min-height: 52px; margin-top: .6rem; padding: .62rem; border-radius: 15px; }

    .content-card { padding: .9rem; border-radius: 18px; background: rgba(18,18,18,.94); }
    .section-heading { margin-bottom: .8rem; }
    .section-heading h2 { font-size: 1.2rem; }
    .card-grid { gap: .55rem; }
    .favorite-card { gap: .52rem; padding: .85rem; border-radius: 15px; }
    .favorite-card footer button, .order-actions button { min-height: 44px; }
    .order-card { padding: .85rem; border-radius: 15px; }
    .order-actions { width: 100%; }
    .pagination {
        position: sticky;
        bottom: calc(var(--mobile-nav-height) + 1rem + env(safe-area-inset-bottom));
        z-index: 8;
        width: fit-content;
        margin: 1rem auto 0;
        padding: .3rem;
        border: 1px solid var(--line);
        border-radius: 15px;
        background: rgba(15,15,15,.92);
        backdrop-filter: blur(14px);
    }
    .pagination button { min-width: 42px; min-height: 42px; }

    .account-summary { gap: .55rem; margin-bottom: .6rem; }
    .identity-card, .mini-stats, .profile-tip { border-radius: 17px; }
    .identity-card { padding: .85rem; }
    .mini-stats { padding: .7rem; }
    .profile-tip { padding: .85rem; }
    .settings-grid { gap: .65rem; }
    .settings-form { gap: .78rem; }
    .settings-form label { font-size: .75rem; }
    input, select, textarea { min-height: 52px; border-radius: 13px; }
    .secondary-button {
        min-height: 52px;
        position: sticky;
        bottom: calc(var(--mobile-nav-height) + 1rem + env(safe-area-inset-bottom));
        z-index: 7;
        box-shadow: 0 12px 28px rgba(0,0,0,.35);
    }
    .mobile-logout {
        width: 100%;
        min-height: 50px;
        display: block;
        margin-top: .7rem;
        border: 1px solid rgba(232,52,26,.28);
        border-radius: 14px;
        background: rgba(232,52,26,.08);
        color: #ff8e7c;
        font-weight: 900;
    }

    .auth-shell { min-height: calc(100dvh - 80px); gap: .8rem; }
    .auth-story { padding: .8rem .35rem 0; }
    .auth-story h1 { max-width: 330px; margin: .45rem auto .6rem; font-size: clamp(2rem, 10vw, 2.65rem); }
    .auth-story > p { max-width: 330px; font-size: .88rem; line-height: 1.5; }
    .benefit-list { grid-template-columns: repeat(3,1fr); gap: .35rem; margin-top: .8rem; }
    .benefit-list div { display: block; padding: .65rem .45rem; text-align: center; border-radius: 13px; }
    .benefit-list span { display: none; }
    .benefit-list strong { margin: 0 0 .15rem; font-size: .7rem; }
    .benefit-list small { font-size: .58rem; }
    .auth-card { padding: .75rem; border-radius: 20px; }
    .primary-button { min-height: 52px; }
    .toast { bottom: calc(var(--mobile-nav-height) + 1rem + env(safe-area-inset-bottom)); }

    .keyboard-open .section-nav, .keyboard-open .profile-topbar { display: none; }
    .keyboard-open .profile-main { padding-top: .45rem; padding-bottom: 1rem; }
    .keyboard-open .secondary-button { position: static; }
    .keyboard-open .toast { bottom: .7rem; }
}

@media (max-width: 360px) {
    .profile-main { padding-inline: .55rem; }
    .quick-focus-grid { gap: .45rem; }
    .focus-card, .menu-focus { min-height: 136px; padding: .75rem; }
    .favorite-focus { min-height: 158px; }
    .section-nav { inset-inline: .35rem; }
    .section-nav button, .section-nav-menu { font-size: .53rem; }
    .benefit-list small { display: none; }
}

@media (orientation: landscape) and (max-height: 520px) {
    .simple-welcome { display: none; }
    .profile-main { padding-top: .5rem; }
    .section-nav { --mobile-nav-height: 62px; }
    .section-nav button, .section-nav-menu { min-height: 50px; }
}
