/* Exact one-third drawer is a user requirement, including narrow phones. */
.icon-button { display:grid;place-items:center;width:44px;height:44px;padding:10px;flex:0 0 auto }
.icon-button svg { width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round }
.navigation-drawer { position:fixed;inset:0 0 0 auto;box-sizing:border-box;margin:0;width:calc(100vw / 3);max-width:none;min-width:0;height:100vh;height:100dvh;max-height:none;padding:clamp(10px,2.5vw,32px);overflow-y:auto;overscroll-behavior:contain;border:0;border-left:1px solid var(--line);background:var(--surface);color:var(--text);box-shadow:-20px 0 70px #0008 }
.navigation-drawer::backdrop { background:rgb(0 0 0 / 65%) }
.drawer-heading { display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:24px }
.drawer-heading h2 { margin:0;font-size:clamp(16px,2vw,24px);letter-spacing:-.03em }
.drawer-close { display:grid;place-items:center;flex:none;width:32px;height:32px;border:1px solid var(--line);border-radius:10px;background:var(--surface-2);color:var(--text);font-size:22px }
.drawer-label { margin:26px 0 10px;color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.08em }
.drawer-links,.drawer-links nav { display:grid;gap:8px }
.navigation-drawer .button,.drawer-links a { width:100%;min-width:0;height:auto;white-space:normal;overflow-wrap:anywhere;text-align:left;font-size:13px;line-height:1.5;padding:12px;border-radius:12px }
.drawer-links a { color:var(--text);text-decoration:none;box-sizing:border-box }
.drawer-links a:hover { background:var(--surface-2) }
.navigation-drawer .accent-palette { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:8px;border-radius:12px }
.navigation-drawer .accent-swatch { width:100%;min-width:0;height:36px;border-radius:8px }
.navigation-drawer :focus-visible,.profile-page :focus-visible { outline:2px solid var(--blue);outline-offset:3px }
.profile-page { padding-block:32px 80px;min-height:calc(100svh - 80px) }
.profile-dialog { width:100%;max-width:880px;margin:auto;color:var(--text) }
.profile-back { display:inline-block;margin-bottom:32px;color:var(--muted);text-decoration:none;font-size:13px }
.profile-back:hover { color:var(--text) }
.profile-dialog h2 { margin:6px 0 24px;font-size:clamp(28px,4vw,42px);letter-spacing:-.04em }
.profile-dialog .eyebrow { color:var(--blue) }
.profile-identity { margin-bottom:20px }
.profile-dialog .profile-balance { margin:0 0 28px;padding:24px;border-radius:20px;border:1px solid var(--line);background:radial-gradient(ellipse at 100% 0,var(--blue-soft),transparent 70%),var(--surface) }
.profile-dialog .profile-balance strong { font-size:clamp(30px,5vw,46px);letter-spacing:-.03em }
.profile-tabs { display:flex;gap:4px;padding:5px;border:1px solid var(--line);border-radius:14px;background:var(--surface);margin:0 0 18px }
.profile-tab { flex:1;min-width:0;padding:12px 8px;border:0;border-radius:10px;background:transparent;color:var(--muted);font-size:13px;font-weight:750;cursor:pointer;transition:background .2s,color .2s }
.profile-tab[aria-selected="true"] { background:var(--blue-soft);color:var(--text);box-shadow:inset 0 0 0 1px var(--blue) }
.profile-panels { min-width:0 }
.profile-panels>section { margin:0;max-width:none;width:100%;padding:24px;border:1px solid var(--line);border-radius:20px;background:var(--surface);box-sizing:border-box }
.profile-dialog label { display:block;margin:16px 0 7px;color:var(--muted);font-size:12px;font-weight:700 }
.profile-dialog input,.profile-dialog select { width:100%;min-width:0;padding:14px;border:1px solid var(--line-bright);border-radius:12px;background:var(--field);color:var(--text);font:inherit;box-sizing:border-box }
.profile-dialog .profile-actions { margin-top:22px;display:flex;flex-wrap:wrap;gap:8px }
.profile-dialog .profile-referrals { display:grid;gap:18px }
.profile-dialog .profile-referrals small { display:block;margin-top:7px;color:var(--muted) }
#ordersList { display:grid;gap:8px }
#ordersList .button { width:100%;height:auto;text-align:left;white-space:normal;overflow-wrap:anywhere }
.profile-guest { padding:24px;border:1px solid var(--line);border-radius:18px;background:var(--surface) }
.profile-page[hidden],.profile-page [hidden],.navigation-drawer .hidden,main[hidden],.reviews-section[hidden],.faq-section[hidden],.site-footer[hidden] { display:none!important }
.toast { animation:none!important }
.modal:not([hidden]) .dialog { animation:account-dialog-in .22s ease-out }
@keyframes account-dialog-in { from { opacity:0;transform:translateY(10px) } to { opacity:1;transform:translateY(0) } }
@media(max-width:600px) {
  .icon-button { width:38px;height:38px;padding:8px }
  .drawer-heading { align-items:flex-start;flex-direction:column;gap:12px }
  .drawer-heading h2 { font-size:16px }
  .navigation-drawer .button,.drawer-links a { padding:10px 4px;font-size:12px }
  .navigation-drawer .accent-palette { grid-template-columns:1fr;padding:5px;gap:7px }
  .profile-page { padding-block:22px 48px }
  .profile-back { margin-bottom:24px }
  .profile-panels>section,.profile-dialog .profile-balance { padding:18px;border-radius:16px }
  .profile-tab { padding:11px 4px;font-size:12px }
  .profile-dialog .profile-actions .button { flex:1 1 140px }
}
@media(prefers-reduced-motion:reduce) { .profile-tab { transition:none }.modal:not([hidden]) .dialog { animation:none } }
