:root {
  color-scheme: dark;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  color: #f4f5fc;
  background-color: #090b14;
  --muted: #a3a9c0;
  --border: #282d41;
  --surface: rgba(17, 21, 33, 0.88);
  --accent: #aa99ff;
  --primary: #7355ec;
  --header-offset: 88px;
  --sidebar-width: clamp(190px, 16vw, 244px);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  min-height: 100%;
}
html::before {
  content: "";
  position: fixed;
  inset: -30px;
  z-index: -2;
  background: url('/assets/background.jpg') center center / cover no-repeat;
  filter: blur(12px) brightness(0.38) saturate(1.2);
  transform: scale(1.05);
  pointer-events: none;
}
html::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 50% 20%, rgba(13, 16, 35, 0.45) 0%, rgba(7, 9, 18, 0.88) 85%);
  pointer-events: none;
}
body { margin: 0; background: transparent !important; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #b8aaff; outline-offset: 4px; }
.shell { width: min(1200px, calc(100% - clamp(40px, 6vw, 96px))); margin-inline: auto; }
.skip-link { position: fixed; top: 12px; left: 12px; transform: translateY(-150%); background: #fff; color: #131021; padding: 12px; z-index: 3; }
.skip-link:focus { transform: none; }
.login-gate {
  grid-column: 1 / -1; min-height: 100dvh; display: grid; place-items: center start;
  padding: 32px clamp(36px, 9vw, 160px);
  background: linear-gradient(90deg, #090b14 0%, #090b14f0 31%, #10142c69 65%, #0c10286b),
    url('/assets/hero.webp') 65% center / cover;
}
.login-card { width: min(100%, 445px); padding: clamp(24px, 5vw, 42px); box-shadow: 0 24px 64px #04051180; }
.login-card h1 { margin: 31px 0 8px; font-size: clamp(26px, 5vw, 34px); letter-spacing: -.045em; }
.login-card p:not(.message) { color: var(--muted); line-height: 1.55; }
.login-card .google-login { width: 100%; min-height: 48px; margin-top: 14px; }
.account-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 18px 0 16px; }
.account-modes .button { min-height: 44px; padding-inline: 9px; }
.account-modes [aria-pressed="true"] { color: #e3d8ff; border-color: #8f76ed; background: #292044; }
.password-form { display: grid; gap: 12px; }
.password-form .button { min-height: 46px; }
.login-card .account-note { font-size: 12px; }
.admin-entry { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 12px; color: #c3b4ff; font-size: 13px; }
.admin-entry:hover { color: #eee7ff; text-decoration: underline; }

.site-header { position: sticky; top: 0; z-index: 2; border-bottom: 1px solid #1d2232; background: rgba(13, 16, 27, 0.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
body { min-height: 100dvh; display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); grid-template-rows: auto 1fr auto; }
.site-header, .main-shell, .site-footer { grid-column: 2; }
.site-header { grid-row: 1; }
.main-shell { min-width: 0; }
.header-inner { position: relative; min-height: 69px; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 22px; }
.brand { display: inline-flex; width: fit-content; align-items: center; gap: 10px; font-weight: 780; letter-spacing: -.055em; font-size: 24px; }
.brand-accent { color: #b09fff; }
.brand-icon {
  width: 34px; height: 34px; display: block; position: relative; flex: none;
  background: linear-gradient(145deg, #a893ff, #6447d9 67%, #4430a1);
  border: 1px solid #b0a0f9; border-radius: 9px;
  box-shadow: 0 4px 16px #6044e04a, inset 0 1px 3px #f5ecff66;
}
.brand-icon::before {
  content: ""; position: absolute; inset: 7px 5px 6px;
  background: #fff; clip-path: polygon(48% 0, 100% 100%, 72% 100%, 48% 48%, 31% 80%, 56% 80%, 65% 100%, 0 100%);
}
.side-nav { position: sticky; top: 0; grid-column: 1; grid-row: 1 / span 3; align-self: start; height: 100dvh; overflow: auto; display: grid; align-content: start; gap: 6px; padding: 22px 16px; background: rgba(13, 16, 27, 0.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-inline-end: 1px solid #282d41; font-size: 14px; font-weight: 650; }
.side-balance { display: grid; gap: 5px; padding: 13px 14px; margin-bottom: 12px; background: #211b38; border: 1px solid #453971; border-radius: 11px; overflow-wrap: anywhere; }
.side-balance span, .compact-balance span { color: var(--muted); font-size: 12px; font-weight: 600; }
.side-balance strong { color: #e3d8ff; font-size: 22px; }
.header-link { padding: 10px 12px; border-radius: 8px; line-height: 22px; color: var(--muted); overflow-wrap: anywhere; }
.admin-support { display: grid; gap: 8px; min-width: 0; margin: 12px 0; padding-top: 14px; border-top: 1px solid #33324d; }
.admin-support h2 { margin: 0 0 3px; color: #c7dfff; font-size: 12px; line-height: 1.5; }
.admin-support a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px; border: 1px solid #274c78; border-radius: 9px; background: #101d32; color: #eff7ff; text-decoration: none; }
.admin-support a > span { display: grid; gap: 3px; min-width: 0; }
.admin-support strong { font-size: 12px; }
.admin-support small { color: #b0c5df; font-size: 12px; font-variant-numeric: tabular-nums; }
.admin-support b { color: #91c8ff; font-size: 12px; white-space: nowrap; }
.admin-support a:hover { background: #18325a; border-color: #529eff; }
.admin-support a:focus-visible { outline: 2px solid #91c8ff; outline-offset: 3px; }
.header-link:hover, .side-balance:hover { color: #ebe5ff; background: #292044; }
[data-member-view] a[aria-current="page"]:not(.header-account) { color: #e3d8ff; background: #292044; box-shadow: inset 0 0 0 1px #453971; }
.header-account[aria-current="page"] { outline: 2px solid #b8aaff; outline-offset: 2px; }
.side-nav .header-account { margin-top: 6px; }
.compact-balance { display: none; }
.menu-toggle { justify-self: end; }
.menu-icon { width: 16px; height: 2px; position: relative; display: inline-block; background: currentColor; border-radius: 1px; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; inset: 0; background: currentColor; border-radius: inherit; transform: translateY(-5px); transition: transform .16s; }
.menu-icon::after { transform: translateY(5px); }
.menu-toggle[aria-expanded="true"] .menu-icon { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-icon::before { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon::after { transform: rotate(-45deg); }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 43px;
  border: 1px solid transparent; padding: 9px 15px; border-radius: 9px;
  font-size: 14px; font-weight: 690; line-height: 1.35; transition: background .16s, border-color .16s, box-shadow .16s;
}
.button:disabled { opacity: .65; cursor: progress; }
.button-outline { border-color: #33394f; background: #141827; color: #eeebff; }
.button-outline:hover:not(:disabled) { background: #232942; border-color: #665981; }
.button-primary { background: #6d50df; border-color: #8e73fa; color: #fff; box-shadow: 0 5px 20px #6947e63d, inset 0 1px #d5c8ff25; }
.button-primary:hover:not(:disabled) { background: #765be8; box-shadow: 0 5px 22px #754ffa65, inset 0 1px #d5c8ff30; }
.icon-search { display: inline-block; width: 12px; height: 12px; border: 1.7px solid currentColor; border-radius: 50%; position: relative; margin-right: 3px; }
.icon-search::after { content: ""; position: absolute; width: 5px; height: 1.7px; background: currentColor; transform: rotate(45deg); top: 9px; left: 8px; border-radius: 1px; }
.icon-lock { display: inline-block; width: 11px; height: 9px; border: 1px solid currentColor; border-radius: 2px; position: relative; margin: 4px 4px 0 0; color: #b7a8fa; }
.icon-lock::before { content: ""; position: absolute; top: -6px; left: 1px; width: 7px; height: 6px; border: 1px solid currentColor; border-radius: 5px 5px 0 0; }

.main-shell { padding-top: 33px; padding-bottom: 55px; }
.hero {
  position: relative; isolation: isolate; overflow: hidden; min-height: 378px; display: flex; align-items: center;
  border: 1px solid #35355d; border-radius: 19px;
  background: linear-gradient(90deg, #0d1029 2%, #0d1029d9 27%, #0d102929 58%, transparent 76%),
    url("/assets/hero.webp") 57% 42% / cover no-repeat, #10142d;
  box-shadow: 0 18px 66px -40px #7773f35c;
}
.hero::after { content: ""; pointer-events: none; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, #0b0f27a8, transparent 39%); }
.hero-content { padding: 36px clamp(28px, 4.5vw, 64px); }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 15px; color: #c9baff; font-size: 11px; letter-spacing: .16em; font-weight: 750; }
.eyebrow span { width: 15px; height: 2px; background: #ad93ff; box-shadow: 0 0 9px #a185ff; }
.hero h1 { font-size: clamp(54px, 5vw, 78px); line-height: .99; font-weight: 820; letter-spacing: -.062em; margin: 0; }
.hero h1 span { color: #baabff; background: linear-gradient(110deg, #e2d5ff 0%, #ae9bff 64%, #9185ff 100%); background-clip: text; -webkit-text-fill-color: transparent; }
.hero-description { color: #c3c5dd; font-size: 16px; line-height: 1.6; max-width: 345px; margin: 19px 0 22px; }
.hero-button { gap: 15px; min-height: 46px; padding-inline: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.compact-balance span { color: #cbbaff; }
.hero-button span, .form-footer button span { font-size: 18px; line-height: 1; }

.main-shell > [data-page]:not(.hero) { width: min(100%, 880px); margin: 0 auto; }
.main-shell > .lookup-section { max-width: 720px; }
.account-order > *, .wallet-summary > * { min-width: 0; }
.main-shell, [data-page], .guide details { scroll-margin-top: var(--header-offset); }
.section-heading { margin-bottom: 15px; }
.section-heading h1 { margin: 0; font-weight: 750; font-size: clamp(25px, 3vw, 34px); line-height: 1.2; letter-spacing: -.045em; }
.request-state { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.section-heading p { margin: 5px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.panel { background: var(--surface); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--border); border-radius: 14px; }
.order-form, .lookup-panel { padding: 22px; }
.field { display: grid; gap: 8px; }
.field label, .quantity-field legend { color: #e3e4f3; font-size: 14px; font-weight: 650; }
.field input {
  width: 100%; min-height: 48px; padding: 10px 13px; border-radius: 8px;
  border: 1px solid #30364b; background: #0b0e19; color: #faf8ff; font-size: 15px;
}
.field input::placeholder { color: #888fa9; opacity: 1; }
.field input:focus { border-color: #a68dfb; outline: 2px solid #9379fb32; outline-offset: 0; }
.field small { color: var(--muted); font-size: 12px; line-height: 1.45; }
.field a, .message a { color: #c3b4ff; text-decoration: underline; text-underline-offset: 3px; }
.quantity-field { padding: 0; margin: 21px 0 0; border: 0; min-width: 0; }
.quantity-field legend { padding: 0; margin-bottom: 10px; }
.quantity-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.order-quantities { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.order-quantities .quantity-card { padding-top: 23px; }
.order-quantities .quantity-card strong { font-size: clamp(17px, 1.55vw, 22px); overflow-wrap: anywhere; }
.custom-quantity { margin-top: 14px; }
.order-price a { color: #d7c7ff; text-decoration: underline; text-underline-offset: 3px; }
.quantity-option { position: relative; cursor: pointer; }
.quantity-option input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.quantity-card {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; justify-content: center;
  background: #141828; min-height: 80px; border-radius: 9px; border: 1px solid #30364b; padding: 10px 13px;
}
.quantity-card strong { line-height: 1; font-size: 23px; letter-spacing: -.04em; }
.quantity-card small { color: var(--muted); font-size: 12px; }
.quantity-option:hover .quantity-card { border-color: var(--accent); }
.quantity-mark { position: absolute; top: 12px; right: 12px; width: 13px; height: 13px; border: 1px solid #676b86; border-radius: 50%; }
.quantity-option input:checked + .quantity-card { border-color: #9e82f8; background: linear-gradient(110deg, #2b2150, #1b1934); }
.quantity-option input:checked + .quantity-card .quantity-mark { border-color: #cfbbff; background: #a985fb; box-shadow: inset 0 0 0 2px #2a2345; }
.quantity-option input:focus-visible + .quantity-card { outline: 2px solid #c2b2ff; outline-offset: 3px; }
.form-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; }
.form-footer p { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 12px; margin: 0; line-height: 1.5; }
.form-footer p span { flex: none; }
.form-footer button { flex: none; }
.lookup-form { display: grid; gap: 12px; }
.lookup-form button { min-height: 46px; }
.status-note { display: flex; align-items: flex-start; gap: 9px; padding: 12px 14px; margin-top: 13px; color: #bab6d3; background: #16152b; border: 1px solid #302b4a; border-radius: 9px; font-size: 13px; line-height: 1.55; }
.status-note > span { display: grid; place-items: center; flex: 0 0 16px; height: 16px; border: 1px solid #b6a2ff; color: #d5c7ff; border-radius: 50%; font-size: 10px; margin-top: 2px; font-weight: 780; }
.status-note p { margin: 0; }
.status-note strong { color: #e5dfff; }
.message { padding: 12px 14px; margin: 14px 0 0; border-radius: 9px; font-size: 13px; line-height: 1.5; }
.message p { margin: 0; }
.message-error { color: #ffd7db; background: #331920; border: 1px solid #632c39; }
.message-success { color: #d7f8e9; background: #102a25; border: 1px solid #32564b; }
.receipt-code { display: flex; flex-wrap: wrap; gap: 7px 12px; align-items: center; margin: 9px 0; }
.receipt-code code { overflow-wrap: anywhere; color: #effbf4; font-size: 14px; }
.receipt-code button { min-height: 32px; padding: 3px 8px; font-size: 12px; }
.lookup-result { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 13px; }
.lookup-result p { margin: 7px 0 0; color: var(--muted); }
.order-progress { display: block; width: 100%; height: 12px; margin-top: 10px; accent-color: var(--accent); }
#order-progress-result { margin-bottom: 12px; }
.progress-note { color: #ffdf9c; }
.status-chip { display: inline-flex; border: 1px solid #715d32; border-radius: 40px; background: #352b16; color: #ffe2a3; padding: 4px 9px; font-weight: 660; }
.status-chip[data-status="processing"] { color: #ddd7ff; border-color: #594991; background: #272345; }
.status-chip[data-status="completed"] { color: #b6f4d6; border-color: #356251; background: #18362c; }
.status-chip[data-status="cancelled"] { color: #ffd7df; border-color: #723d4c; background: #3b202b; }

.account-section { margin-top: 37px; }
.account-panel { padding: 22px; }
.account-feedback { margin: 0 0 15px; }
.account-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.account-row .button { flex: none; }
.account-panel h3 { margin: 0; font-size: 16px; line-height: 1.4; font-weight: 700; }
.account-row p, .account-note { margin: 5px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.account-identity { min-width: 0; overflow-wrap: anywhere; }
.google-login:disabled { cursor: not-allowed; }
#google-availability { padding-top: 12px; margin-top: 13px; border-top: 1px solid var(--border); }
.account-history { margin-top: 18px; padding-top: 17px; border-top: 1px solid var(--border); }
.account-orders { display: grid; gap: 8px; margin: 11px 0 0; padding: 0; list-style: none; }
.account-order {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 9px 14px;
  padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: #0b0e19;
}
.account-order a { display: block; color: #d7c9ff; overflow-wrap: anywhere; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.account-order a:hover { color: #f1e9ff; }
.account-order p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.account-order .status-chip { font-size: 13px; }

.wallet-section { margin-top: 37px; }
.wallet-panel { padding: 22px; }
.wallet-panel h3 { margin: 0; font-size: 16px; line-height: 1.4; font-weight: 700; }
.wallet-summary, .wallet-detail-top, .wallet-actions {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
}
.wallet-summary {
  background: linear-gradient(115deg, #291e49, #181831 67%);
  border: 1px solid #48376e; border-radius: 11px; padding: 15px 17px;
}
.wallet-summary p { margin: 0 0 4px; color: #d0c4ef; font-size: 13px; font-weight: 650; }
.wallet-summary strong { font-size: clamp(22px, 3vw, 30px); letter-spacing: -.045em; line-height: 1.15; overflow-wrap: anywhere; }
.wallet-packages { grid-template-columns: repeat(auto-fit, minmax(105px, 1fr)); }
.wallet-packages .quantity-card strong { font-size: 20px; }
.wallet-actions { margin-top: 13px; }
.wallet-actions .account-note { margin: 0; }
.wallet-detail { margin-top: 15px; padding: 14px; border: 1px solid #343153; border-radius: 10px; background: #151527; }
.wallet-detail-top { min-width: 0; overflow-wrap: anywhere; }
.wallet-detail .wallet-actions { justify-content: flex-start; }
.wallet-payment-instructions { display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap; margin-top: 13px; }
.wallet-transfer { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 7px 12px; margin: 0; font-size: 13px; }
.wallet-transfer dt { align-self: center; color: var(--muted); }
.wallet-transfer dd { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 8px; margin: 0; overflow-wrap: anywhere; }
.wallet-transfer .button { min-height: 32px; padding: 5px 8px; font-size: 12px; }
.wallet-qr { display: block; width: 150px; height: auto; padding: 5px; border-radius: 6px; background: #fff; }
.wallet-transaction-title { display: block; font-size: 14px; overflow-wrap: anywhere; }
.wallet-transaction-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wallet-transaction-actions .button { min-height: 34px; padding: 6px 9px; font-size: 12px; }
.status-chip[data-status="paid"] { color: #b6f4d6; border-color: #356251; background: #18362c; }

.guide { margin-top: 37px; }
.guide-list { padding: 0 20px; }
.guide details + details { border-top: 1px solid #262b3e; }
.guide summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; min-height: 51px; font-size: 14px; font-weight: 620; }
.guide summary::-webkit-details-marker { display: none; }
.guide summary::after { content: "+"; color: #b3a1ff; font-size: 19px; font-weight: 400; }
.guide details[open] summary::after { content: "−"; }
.guide details p { margin: 0 0 15px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.site-footer { border-top: 1px solid #1e2333; color: var(--muted); }
.footer-inner { min-height: 83px; display: flex; align-items: center; gap: 18px; justify-content: space-between; }
.footer-inner .brand { font-size: 19px; color: #eff0ff; }
.footer-inner .brand-icon { width: 27px; height: 27px; border-radius: 7px; }
.footer-inner .brand-icon::before { inset: 5px 4px; }
.back-top { font-size: 13px; flex: none; }
.back-top:hover { color: #e4d9ff; }

@media (max-width: 1100px) {
  .order-quantities { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { min-height: 338px; }
  .form-footer { align-items: stretch; flex-direction: column; }
}

@media (max-width: 850px) {
  .shell { width: calc(100% - 40px); }
  .hero { min-height: 342px; background-position: center, 62% 42%, center; }
  .order-form, .lookup-panel, .account-panel, .wallet-panel { padding: 17px; }
  :root { --header-offset: 80px; }
  body { display: block; }
  .header-inner { min-height: 63px; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; }
  .compact-balance { min-height: 44px; display: grid; align-content: center; gap: 2px; padding: 4px 8px; line-height: 1.2; text-align: end; }
  .compact-balance strong { color: #e3d8ff; font-size: 13px; max-width: clamp(76px, 25vw, 150px); overflow-wrap: anywhere; }
  .side-nav { position: static; height: auto; }
  .site-header:has(.menu-toggle:not([hidden])) + .side-nav {
    position: fixed; z-index: 3; inset: 64px auto 0 0;
    width: min(300px, calc(100% - 48px)); max-height: calc(100dvh - 64px);
    box-shadow: 12px 12px 36px #050714a6; overscroll-behavior: contain;
  }
  body:has(.menu-toggle[aria-expanded="true"])::before { content: ""; position: fixed; z-index: 1; inset: 0; background: #050610a6; }
}

@media (max-width: 680px) {
  .shell { width: calc(100% - 32px); }
  .login-gate { place-items: center; padding: 16px; background-position: center, 72% center; }
  .login-card h1 { margin-top: 24px; }
  .brand { font-size: 22px; }
  .brand-icon { width: 31px; height: 31px; }
  .main-shell { padding-top: 17px; padding-bottom: 35px; }
  .hero { min-height: 298px; border-radius: 14px; background-image: linear-gradient(90deg, #0d1029ef, #10142bcf 43%, #0c122960 78%, #0c12291c), url("/assets/hero.webp"); background-position: center, 72% center; }
  .hero-content { padding: 24px 21px; }
  .hero h1 { font-size: clamp(44px, 11vw, 62px); }
  .hero-description { font-size: 14px; max-width: 245px; margin: 15px 0 18px; }
  .account-section, .wallet-section, .guide { margin-top: 28px; }
  .account-row { align-items: flex-start; flex-direction: column; }
  .field input { font-size: 16px; }
  .button { min-height: 44px; }
  .quantity-card { padding-inline: 9px; min-height: 74px; }
  .quantity-card strong { font-size: 20px; }
  .quantity-mark { top: 8px; right: 7px; width: 10px; height: 10px; }
  .wallet-payment-instructions { display: grid; }
  .wallet-qr { width: min(100%, 192px); justify-self: center; }
  .wallet-transfer { grid-template-columns: minmax(0, 1fr); gap: 3px; }
  .wallet-transfer dd { padding-bottom: 6px; }
  .wallet-transfer .button, .wallet-transaction-actions .button { min-height: 44px; }
  .footer-inner { min-height: auto; flex-wrap: wrap; padding-block: 15px; gap: 13px; }
  .footer-inner small { flex-basis: 100%; order: 3; }
}

@media (max-width: 365px) {
  .header-inner .brand { font-size: 20px; gap: 6px; }
  .header-inner .brand-icon { width: 27px; height: 27px; }
  .header-inner .menu-toggle { padding-inline: 8px; }
  .compact-balance { padding-inline: 3px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Client Orders Panel & Realtime Progress */
.client-orders-panel {
  margin-top: 24px;
  padding: 22px;
  background: #0d1222;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.client-orders-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.client-orders-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 750;
  color: #f1f5f9;
}
.client-orders-desc {
  margin: 3px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #0f231e;
  color: #34d399;
  border: 1px solid #05966955;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 7px #10b981;
  animation: pulse-live 1.6s infinite ease-in-out;
}
.client-orders-empty {
  padding: 24px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.client-orders-empty p {
  margin: 0;
}
.client-orders-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.client-order-card {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #080b15;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.client-order-card:hover {
  border-color: #4a457c;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}
.client-order-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin-bottom: 10px;
}
.client-order-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}
.client-order-code {
  font-family: monospace;
  font-size: 13px;
  font-weight: 700;
  color: #c4b5fd;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.client-order-uid {
  font-size: 13px;
  color: #94a3b8;
}
.client-order-time {
  font-size: 12px;
  color: #64748b;
}

/* Progress bar in client card */
.customer-progress-track {
  width: 100%;
  height: 10px;
  background: #151b2e;
  border: 1px solid #29324c;
  border-radius: 8px;
  overflow: hidden;
  margin: 10px 0 6px;
}
.customer-progress-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 0.4s ease;
  background: #475569;
}
.customer-progress-fill[data-status="processing"] {
  background: linear-gradient(90deg, #6366f1, #06b6d4, #10b981);
  background-size: 200% 100%;
  animation: gradient-flow 2s linear infinite;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.4);
}
.customer-progress-fill[data-status="completed"] {
  background: #10b981;
}
.customer-progress-fill[data-status="cancelled"] {
  background: #ef4444;
}
.customer-progress-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: #94a3b8;
}
.customer-progress-labels strong {
  color: #f8fafc;
}
.customer-progress-pct {
  font-weight: 750;
  color: #cbd5e1;
}
.customer-progress-pct[data-status="processing"] {
  color: #67e8f9;
}
.customer-progress-pct[data-status="completed"] {
  color: #6ee7b7;
}

@keyframes pulse-live {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}
@keyframes gradient-flow {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* Restored customer menu layout */
.side-balance { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 13px 12px; margin-bottom: 12px; background: #211b38; border: 1px solid #453971; border-radius: 11px; overflow-wrap: anywhere; }
.side-balance-info { display: grid; flex: 1 1 80px; min-width: 0; gap: 5px; }
.side-balance .balance-topup { flex: 0 0 auto; padding: 8px 9px; background: #7550df; border: 1px solid #a38aff; color: #fff; font-size: 12px; white-space: nowrap; box-shadow: 0 3px 12px #7755dd33; }
.side-balance .balance-topup:hover { background: #8862ed; }
.side-balance span, .compact-balance span { color: var(--muted); font-size: 12px; font-weight: 600; }
.side-balance strong { color: #e3d8ff; font-size: 22px; }
.header-link { padding: 10px 12px; border-radius: 8px; line-height: 22px; color: var(--muted); overflow-wrap: anywhere; }
.customer-order-history { margin-top: 24px; }
.wallet-promotion { margin-top: 12px; padding: 12px 14px; border: 1px solid #69519b; border-radius: 10px; background: #251d3d; color: #e6d4ff; font-weight: 650; line-height: 1.6; }
.side-nav .hot-service {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  position: relative; isolation: isolate; overflow: hidden;
  border: 1px solid var(--hot-border); background: var(--hot-bg); color: #fff4f9; font-weight: 800;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.hot-event { --hot-bg: linear-gradient(115deg, #522348, #281830); --hot-border: #9b4c89; --hot-badge: #ffb5e4; --hot-glow: #e878bb58; }
.hot-likes { --hot-bg: linear-gradient(115deg, #553423, #2b1d28); --hot-border: #a76a47; --hot-badge: #ffd097; --hot-glow: #f4a45658; --hot-delay: 2.8s; }
.side-nav .hot-service::before {
  content: ''; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 34%, var(--hot-glow) 50%, transparent 66%);
  transform: translateX(-100%);
}
.side-nav .hot-service:hover, .side-nav .hot-service:focus-visible, .side-nav .header-link.hot-service[aria-current="page"] {
  background: var(--hot-bg); border-color: var(--hot-badge); color: #fff;
  box-shadow: inset 0 0 12px var(--hot-glow), 0 0 10px var(--hot-glow);
}
.side-nav .hot-service:focus-visible { outline: 2px solid var(--hot-badge); outline-offset: -3px; }
.hot-service-name { display: flex; align-items: center; gap: 8px; min-width: 0; }
.hot-service-icon { flex: none; width: 17px; height: 17px; color: var(--hot-badge); }
.hot-label { flex: none; color: var(--hot-badge); font-size: 10px; line-height: 1; padding: 4px 6px; border: 1px solid currentColor; border-radius: 5px; }
@media (prefers-reduced-motion: no-preference) {
  .side-nav .hot-service::before { animation: hot-menu-shine 7s ease-in-out var(--hot-delay, 0s) 2 both; }
  .side-nav .hot-service:hover { transform: translateY(-1px); }
}
@keyframes hot-menu-shine {
  0% { transform: translateX(-100%); }
  23%, 100% { transform: translateX(100%); }
}
.menu-tools { min-width: 0; margin: 6px 0; border: 1px solid #51446d; border-radius: 9px; background: #1d1b2d; }
.menu-tools summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; cursor: pointer; color: #e4d6ff; font-weight: 750; list-style: none; }
.menu-tools summary::-webkit-details-marker { display: none; }
.menu-tools summary::after { content: ''; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); margin-inline-end: 3px; }
.menu-tools[open] summary::after { transform: rotate(225deg); }
.menu-tool-list { display: grid; gap: 6px; padding: 0 7px 7px; }
.menu-tools .menu-tool-list .header-link { display: grid; gap: 4px; padding: 9px 10px; border: 1px solid #454267; background: #11172b; color: #f1ecff; }
.menu-tools .menu-tool-list .menu-tool-link:hover, .menu-tools .menu-tool-list .menu-tool-link[aria-current="page"] { background: #39305b; border-color: #a085ef; }
.admin-support[open] > a { margin-top: 8px; }
.menu-tools .maintenance-menu-item { color: #c7c1d6; border-style: dashed; opacity: .85; }
.maintenance-menu-item { display: grid; gap: 4px; width: 100%; border: 1px dashed #39334d; background: #181526; font: inherit; text-align: left; cursor: not-allowed; opacity: .8; }
.menu-service-status { display: block; width: fit-content; padding: 1px 6px; border-radius: 5px; color: #d5ccdf; background: #353046; font-size: 10px; font-weight: 700; line-height: 16px; }
.hot-service .menu-service-status { margin-top: 3px; }
.menu-service-status[data-status="active"] { color: #a9f3cf; background: #153c30; }
.menu-service-status[data-status="maintenance"] { color: #f6ce83; background: #3a2c1d; }
.maintenance-menu-item:hover { background: #181526; color: var(--muted); }
.header-link:hover, .side-balance:hover { color: #ebe5ff; background: #292044; }
[data-member-view] a[aria-current="page"]:not(.header-account) { color: #e3d8ff; background: #292044; box-shadow: inset 0 0 0 1px #453971; }
.header-account[aria-current="page"] { outline: 2px solid #b8aaff; outline-offset: 2px; }
.side-nav .header-account { margin-top: 6px; }

.wallet-qr { width: min(100%, 360px); flex-shrink: 0; }
@media(max-width: 600px) { .wallet-qr { width: min(100%, 360px); } }

.order-eta { display: block; margin: 7px 0 0; color: #c7b8ff; font-size: 12px; line-height: 1.6; white-space: normal; overflow-wrap: anywhere; }

/* Compact wallet summary: retain a readable balance and nearby top-up action. */
.side-balance { gap: 6px; padding: 8px 9px; margin-bottom: 6px; border-radius: 9px; }
.side-balance-info { flex-basis: 72px; gap: 2px; }
.side-balance .side-balance-info > span { font-size: 10px; line-height: 1.2; }
.side-balance strong { font-size: 16px; line-height: 1.3; font-variant-numeric: tabular-nums; }
.side-balance .balance-topup { padding: 5px 7px; font-size: 11px; line-height: 20px; border-radius: 7px; }
.compact-balance { gap: 1px; }
.compact-balance span { font-size: 10px; }
.compact-balance strong { font-size: 12px; }
