:root {
  color-scheme: dark;
  --bg: #080e12;
  --panel: #0e171d;
  --line: #20323a;
  --text: #edf6f4;
  --muted: #9aafb5;
  --accent: #8df4cf;
  --ink: #092319;
  --radius: 16px;
  font-family: 'Segoe UI', 'Microsoft YaHei UI', 'PingFang SC', system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--text); background: var(--bg); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:disabled { cursor: not-allowed; opacity: .52; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
svg { flex: none; vertical-align: middle; }
small { font-size: .77em; }

.cover-scene, .login-shell { position: relative; min-height: 100svh; isolation: isolate; display: grid; grid-template-rows: auto 1fr auto; overflow: hidden; background: #080e12; }
.cover-grid { opacity: .52; background: repeating-linear-gradient(0deg,transparent 0 4px,#0a2e2c25 5px 6px), radial-gradient(ellipse at 65% 47%,transparent 28%,#040c12a3 100%); }
.cover-header, .cover-footer, .hero-inner { width: min(100% - 112px, 1380px); margin-inline: auto; }
.cover-header { position: relative; display: flex; justify-content: space-between; align-items: center; min-height: 94px; border-bottom: 1px solid #d8eee524; }
.brand { display: inline-flex; gap: 11px; align-items: center; flex: none; font-size: 17px; font-weight: 800; line-height: 1.1; letter-spacing: .06em; }
.brand small { display: block; color: var(--accent); font-size: 9px; letter-spacing: .24em; margin-top: 6px; font-family: Consolas, monospace; }
.mark { color: var(--accent); filter: drop-shadow(0 0 10px #72fcca33); }
.role-tag { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; color: #b4e4d6; border: 1px solid #91e5ca39; background: #0b262975; font-size: 12px; border-radius: 999px; }
.role-tag i, .hero-tag i, .status i { width: 6px; height: 6px; flex: none; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.hero-inner { display: grid; align-items: center; position: relative; min-height: 500px; padding: 48px 0 58px; }
.hero-copy { position: relative; z-index: 1; }
.hero-tag { display: flex; align-items: center; gap: 10px; color: var(--accent); margin-bottom: 20px; font-size: 13px; font-weight: 700; letter-spacing: .28em; }
.hero-copy h1 { font-size: clamp(72px, 8.1vw, 140px); font-weight: 900; line-height: 1.03; letter-spacing: -.085em; text-shadow: 0 4px 34px #0005; }
.hero-copy h1 > span { color: var(--accent); }
.hero-copy h1 small { display: block; font: 700 clamp(18px, 3.4vw, 53px)/1 Consolas, 'Segoe UI', monospace; letter-spacing: .08em; color: #cce0df; margin-top: 22px; }
.hero-copy h1 small span { color: var(--accent); }
.hero-copy p { color: #b4c7c9; font-size: 15px; max-width: 365px; line-height: 1.85; margin: 24px 0 34px; }
.cover-footer { min-height: 76px; display: flex; gap: 36px; align-items: center; border-top: 1px solid #d8eee528; color: #afc3c7; font-size: 12px; letter-spacing: .08em; }
.cover-footer div { display: flex; align-items: center; gap: 8px; }
.cover-footer svg { color: var(--accent); }

.primary, .secondary, .role-choice, .filter, .nav-link { position: relative; overflow: hidden; }
.primary, .secondary { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 19px; border: 1px solid transparent; border-radius: 9px; font-size: 14px; font-weight: 750; transition: transform .16s, background .18s, border-color .18s, box-shadow .18s; }
.primary { color: var(--ink); background: var(--accent); }
.primary:hover:not(:disabled) { background: #b9ffe8; box-shadow: 0 0 22px #80edc735; }
.secondary { color: #cde0df; background: #111c22; border-color: #2b4149; }
.secondary:hover:not(:disabled) { color: var(--accent); border-color: #6ab79e; }
.primary:active:not(:disabled), .secondary:active:not(:disabled), .role-choice:active, .filter:active { transform: scale(.97); }
.enter { min-height: 61px; min-width: 212px; justify-content: space-between; font-size: 16px; padding: 0 9px 0 23px; box-shadow: 0 0 26px #80edc725; }
.enter-icon { width: 41px; height: 41px; display: grid; place-items: center; border-radius: 6px; background: #aafadf; }
.small { min-height: 42px; padding-inline: 13px; font-size: 13px; }
.full { width: 100%; margin-top: 16px; }
.full svg { margin-left: auto; }
.ripple { position: absolute; pointer-events: none; border-radius: 50%; background: #b2ffe9; opacity: .32; transform: translate(-50%, -50%) scale(0); animation: ripple .48s ease-out forwards; }
.primary .ripple { background: #177d64; }
@keyframes ripple { to { transform: translate(-50%, -50%) scale(1); opacity: 0; } }

.login-center { padding: 30px 18px 46px; display: grid; place-items: center; }
.login-card { width: min(100%, 475px); padding: 30px; background: #0c151bed; border: 1px solid #324b51; border-radius: 20px; box-shadow: 0 24px 100px #0008; }
.login-card h1 { font-size: 28px; margin-bottom: 7px; }
.login-emblem { margin-bottom: 14px; }
.text-link { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); }
.text-link:hover { color: var(--accent); }
.subtle { color: var(--muted); font-size: 14px; line-height: 1.6; }
.role-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 22px 0; }
.role-choice { min-width: 0; padding: 13px 9px; border-radius: 10px; border: 1px solid var(--line); color: var(--text); background: #111d23; text-align: left; display: flex; align-items: center; gap: 8px; font-weight: 750; transition: .16s; }
.role-choice.selected, .role-choice:hover { border-color: #73bfa8; background: #122b2b; }
.role-choice.selected svg { color: var(--accent); }
.role-choice small { display: block; font-weight: 400; color: var(--muted); margin-top: 4px; font-size: 10px; }
form label { display: block; margin: 14px 0 7px; color: #c9dbdd; font-size: 13px; font-weight: 650; }
form label small { font-weight: 400; color: var(--muted); margin-left: 4px; }
input, textarea, select { width: 100%; color: var(--text); border: 1px solid #2e444d; border-radius: 8px; background: #081216; padding: 11px 12px; }
input { min-height: 44px; }
input::placeholder, textarea::placeholder { color: #859ca4; }
textarea { resize: vertical; }
.secret { display: flex; position: relative; }
.secret input { padding-right: 47px; }
.secret button, .icon-button { display: grid; place-items: center; color: #abbfc4; background: transparent; border: 0; border-radius: 8px; width: 41px; min-height: 40px; }
.secret button { position: absolute; top: 2px; right: 2px; }
.icon-button:hover, .secret button:hover { background: #1b2b32; color: var(--accent); }
.form-error { color: #ff9c9c; line-height: 1.5; margin-top: 10px; font-size: 13px; }

.workspace { min-height: 100svh; background: radial-gradient(ellipse at 50% 0%,#12262c 0%,transparent 47%),var(--bg); }
.workspace-header { border-bottom: 1px solid var(--line); background: #0b1318e8; }
.workspace-bar, .workspace-main { width: min(100% - 64px, 1176px); margin-inline: auto; }
.workspace-bar { min-height: 74px; display: flex; align-items: center; justify-content: space-between; }
.identity { display: flex; align-items: center; gap: 12px; }
.workspace-main { padding: 24px 0 calc(116px + env(safe-area-inset-bottom)); }
.store-banner { position: relative; isolation: isolate; min-height: 148px; border: 1px solid #315055; border-radius: 18px; overflow: hidden; padding: 31px clamp(20px, 4vw, 46px); display: flex; align-items: center; background: linear-gradient(90deg,#112125 0%,#11252aef 26%,#142e329c 61%,#10282b12 100%), url('/images/cover.webp') 60% 52% / cover; }
.store-banner::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, transparent 0 18px, #80ead60d 19px 20px); z-index: -1; }
.page-heading h1 { font-size: clamp(29px, 3.5vw, 45px); font-weight: 850; letter-spacing: -.04em; }
.page-heading p { color: #b2c8cc; margin-top: 8px; font-size: 14px; line-height: 1.65; }
.section-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 20px 0 13px; }
.section-bar h2, .history-title { font-size: 20px; line-height: 1.2; }
.filters { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.order-filters { margin: 0 0 15px; }
.filter { color: #b4c9ce; border: 1px solid #243b42; background: #0e1a20; border-radius: 999px; min-height: 35px; padding: 0 13px; font-size: 12px; transition: .17s; }
.filter:hover, .filter.selected { color: var(--accent); border-color: #659e91; background: #203a39; }
.product-grid, .order-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 17px; }
.product-card, .order-card { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden; transition: border-color .18s, box-shadow .18s; }
.product-card:hover, .order-card:hover { border-color: #497e77; box-shadow: 0 10px 30px #0004; }
.product-img { height: 148px; position: relative; overflow: hidden; background: #19282f; }
.product-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, #0710134d, transparent 54%, #08111783); pointer-events: none; }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.product-card:hover .product-img img { transform: scale(1.045); }
.product-img > span { position: absolute; top: 12px; left: 12px; z-index: 1; border: 1px solid #87dfc670; color: #d1ffef; background: #091f25dd; padding: 4px 9px; font-size: 11px; border-radius: 5px; }
.product-content { padding: 15px; }
.product-meta, .product-meta span { display: flex; align-items: center; gap: 5px; }
.product-meta { justify-content: space-between; font-size: 11px; color: #a2b9bf; }
.product-content h2 { font-size: 19px; margin: 8px 0; }
.product-content p { min-height: 44px; font-size: 13px; color: var(--muted); line-height: 1.65; }
.product-bottom { display: flex; justify-content: space-between; align-items: center; gap: 9px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.price { font-size: 23px; font-weight: 800; color: var(--accent); line-height: 1; white-space: nowrap; }
.price small { font-size: 11px; font-weight: 400; color: var(--muted); }
.bottom-nav { position: fixed; z-index: 3; inset: auto 0 0; display: flex; justify-content: center; gap: clamp(0px,4vw,55px); padding: 7px 12px calc(7px + env(safe-area-inset-bottom)); border-top: 1px solid #30474c; background: #0c171cf5; backdrop-filter: blur(14px); }
.nav-link { text-align: center; display: flex; flex: 0 1 159px; justify-content: center; align-items: center; gap: 8px; min-height: 51px; padding-inline: 8px; border-radius: 10px; border: 1px solid transparent; color: #afc3c8; font-size: 13px; font-weight: 650; transition: .16s; }
.nav-link:hover, .nav-link.current { background: #183035; border-color: #335d5d; color: var(--accent); }

.count { font: 12px Consolas,monospace; color: var(--accent); background: #1b3034; padding: 3px 7px; border-radius: 8px; vertical-align: middle; }
.order-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.order-card { padding: 15px; }
.order-top, .order-bottom, .detail-id, .dialog-total { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.order-id, .detail-id { color: #a0bcc3; font: 13px Consolas, monospace; }
.status { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font: 12px 'Segoe UI','Microsoft YaHei UI',sans-serif; color: #8df4cf; background: #14332c; border-radius: 7px; padding: 5px 8px; }
.status.active { color: #a1bbff; background: #192b47; }
.status.completed { color: #bbcbd2; background: #26343d; }
.order-content { display: flex; align-items: flex-start; gap: 13px; margin: 14px 0; }
.order-content img { width: 82px; height: 66px; object-fit: cover; border-radius: 8px; flex: none; }
.order-content h3 { font-size: 16px; }
.order-info { display: flex; flex-wrap: wrap; gap: 7px 13px; font-size: 12px; color: var(--muted); margin-top: 7px; }
.order-info span { display: inline-flex; align-items: center; gap: 4px; }
.order-note { margin-top: 7px; color: #b8c8ca; font-size: 12px; overflow-wrap: anywhere; }
.order-bottom { padding-top: 11px; border-top: 1px solid var(--line); }
.order-bottom strong { color: var(--accent); font-size: 20px; }
.empty { border: 1px dashed #304950; border-radius: var(--radius); background: #0f1a2080; text-align: center; padding: 36px 14px; color: var(--muted); }
.empty svg { color: var(--accent); }
.empty h3 { color: var(--text); font-size: 16px; margin: 10px 0 5px; }
.empty p { font-size: 13px; }
.profile-banner, .wallet-panel { display: flex; align-items: center; gap: 16px; border: 1px solid #2d4b4e; border-radius: var(--radius); background: linear-gradient(110deg,#1a3336,#101d24 75%); margin: 23px 0 16px; padding: 22px; }
.profile-banner h2 { font-size: 23px; }
.profile-banner p { margin-top: 5px; color: var(--muted); font: 13px Consolas,'Microsoft YaHei UI',monospace; }
.profile-banner button, .wallet-panel button { margin-left: auto; white-space: nowrap; }
.avatar { display: grid; place-items: center; width: 59px; height: 59px; flex: none; border-radius: 14px; color: var(--accent); border: 1px solid #6aa295; background: #23453f; }
.stats-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; }
.stat { display: grid; justify-items: start; gap: 7px; min-width: 0; border: 1px solid var(--line); border-radius: 13px; padding: 17px; background: var(--panel); }
.stat svg { color: var(--accent); }
.stat span, .wallet-panel span { font-size: 12px; color: #afc6cc; }
.stat strong, .wallet-panel strong { font-size: clamp(16px,3.2vw,29px); }
.wallet-panel span { display: flex; align-items: center; gap: 7px; }
.wallet-panel strong { display: block; color: var(--accent); margin-top: 6px; }
.history-title { margin: 23px 0 13px; }
.withdrawals { margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: 13px; background: var(--panel); }
.withdrawals li { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 13px 17px; }
.withdrawals li + li { border-top: 1px solid var(--line); }
.withdrawals small { display: block; color: var(--muted); margin-top: 4px; }

#dialog { width: min(530px,100% - 28px); max-height: min(90svh,760px); padding: 20px; color: var(--text); border: 1px solid #456267; border-radius: 17px; background: #101b21; overflow: auto; box-shadow: 0 25px 70px #0009; }
#dialog::backdrop { background: #02080cbb; backdrop-filter: blur(5px); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.dialog-head h2 { font-size: 23px; }
#dialog h3 { margin: 10px 0 6px; font-size: 18px; }
.dialog-image { display: block; width: 100%; height: 150px; border-radius: 10px; object-fit: cover; }
.dialog-total { padding-top: 12px; margin-top: 13px; border-top: 1px solid var(--line); }
.dialog-total strong { color: var(--accent); font-size: 24px; }
.dialog-total small { color: var(--muted); }
.timeline { margin: 16px 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4,1fr); color: var(--muted); }
.timeline li { display: grid; justify-items: center; position: relative; gap: 6px; font-size: 11px; }
.timeline li::before { content: ''; position: absolute; top: 4px; left: -50%; width: 100%; height: 1px; background: #3a4f58; }
.timeline li:first-child::before { display: none; }
.timeline li i { z-index: 1; width: 9px; height: 9px; border-radius: 50%; background: #40525c; }
.timeline li.passed { color: var(--accent); }
.timeline li.passed i, .timeline li.passed::before { background: var(--accent); }
.details { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 12px; margin: 0; }
.details > div { padding: 9px 0; border-top: 1px solid var(--line); }
.details .wide { grid-column: 1/-1; }
.details dt { color: var(--muted); font-size: 12px; margin: 0 0 4px; }
.details dd { font-size: 13px; margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.accent { color: var(--accent); }
#toast { position: fixed; z-index: 5; bottom: calc(80px + env(safe-area-inset-bottom)); left: 50%; max-width: calc(100vw - 30px); width: max-content; padding: 12px 17px; border: 1px solid #6daf9e; border-radius: 9px; color: #d5fff1; background: #18312f; opacity: 0; pointer-events: none; transform: translate(-50%, 12px); font-size: 13px; transition: .2s; }
#toast.visible { opacity: 1; transform: translate(-50%, 0); }
#toast.error { color: #ffe3e3; background: #44252d; border-color: #ae6871; }
.boot { min-height: 100svh; display: flex; justify-content: center; align-items: center; gap: 12px; }

@media (min-width: 1080px) { .product-grid { grid-template-columns: repeat(4,minmax(0,1fr)); } }
@media (max-width: 820px) {
  .cover-header, .cover-footer, .hero-inner { width: calc(100% - 50px); }
  .workspace-bar, .workspace-main { width: calc(100% - 38px); }
  .product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hero-copy h1 { font-size: clamp(62px,13vw,108px); }
}
@media (max-width: 550px) {
  .cover-header, .cover-footer, .hero-inner { width: calc(100% - 34px); }
  .cover-header { min-height: 70px; }
  .hero-inner { min-height: 510px; align-items: end; padding: 90px 0 36px; }
  .hero-copy h1 { font-size: clamp(46px,15.4vw,82px); letter-spacing: -.04em; }
  .hero-copy h1 small { margin-top: 12px; }
  .hero-copy p { margin: 13px 0 20px; font-size: 13px; max-width: 280px; }
  .hero-tag { margin-bottom: 11px; }
  .cover-footer { min-height: 60px; gap: 16px; font-size: 11px; }
  .enter { min-height: 52px; min-width: 171px; }
  .enter-icon { width: 34px; height: 34px; }
  .login-center { padding-top: 23px; }
  .login-card { padding: 20px; }
  .workspace-bar, .workspace-main { width: calc(100% - 26px); }
  .workspace-bar { min-height: 65px; }
  .workspace-main { padding-top: 16px; }
  .store-banner { min-height: 136px; }
  .section-bar { margin-top: 18px; flex-wrap: wrap; }
  .section-bar h2 { font-size: 17px; }
  .product-grid { gap: 9px; }
  .product-img { height: 110px; }
  .product-content { padding: 10px; }
  .product-meta { flex-wrap: wrap; justify-content: flex-start; }
  .product-content h2 { font-size: 15px; min-height: 38px; }
  .product-content p { min-height: 56px; font-size: 11px; }
  .product-bottom { align-items: flex-start; flex-direction: column; }
  .product-bottom button { width: 100%; }
  .price { font-size: 20px; }
  .order-grid { grid-template-columns: 1fr; gap: 10px; }
  .nav-link { flex-direction: column; gap: 2px; min-height: 48px; font-size: 11px; }
  .profile-banner,.wallet-panel { padding: 14px; gap: 10px; }
  .avatar { width: 45px; height: 45px; }
  .profile-banner h2 { font-size: 18px; }
  .stat { padding: 10px; }
  .stats-grid { gap: 7px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

:root { --accent: #dafa64; --ink: #161f10; --line: #2a3832; --panel: #121b1a; --muted: #a2b1a9; }
.cover-grid { background: repeating-linear-gradient(0deg,transparent 0 5px,#112b2620 6px 7px), radial-gradient(ellipse at 67% 45%,transparent 30%,#030a0ab0 100%); }
.hero-copy h1 { letter-spacing: -.065em; }
.hero-copy h1 small { color: #d7e1d8; }
.hero-tag { color: var(--accent); }
.hero-copy { animation: arrive 550ms cubic-bezier(.19,1,.22,1) both; }
.cover-footer, .cover-header { border-color: #d5e1d13d; }
.primary { color: #141d0b; background: var(--accent); }
.primary:hover:not(:disabled) { background: #edffac; box-shadow: 0 0 24px #ccf05135; }
.enter-icon { background: #b9da41; }
.mark { filter: drop-shadow(0 0 10px #dafa6440); }
.workspace { background: radial-gradient(ellipse at 50% -10%,#26352b,transparent 53%),#0b100f; }
.workspace-header { background: #101714ed; }
.store-banner { border-color: #566444; background: linear-gradient(90deg,#162318 3%,#1b2a20ef 25%,#18241e83 65%,#1d281948 100%), url('/images/cover.webp') 60% 47% / cover; }
.store-banner::before { content: ''; position: absolute; inset: -40% -10%; z-index: -1; pointer-events: none; background: linear-gradient(100deg, transparent 25%, #e2ff6820 48%, transparent 65%); transform: translateX(-105%); animation: sweep 6s 1s infinite; }
.product-grid { align-items: stretch; }
.product-card { display: flex; flex-direction: column; background: linear-gradient(170deg,#182320,#111919); animation: arrive 340ms cubic-bezier(.19,1,.22,1) both; }
.product-card:nth-child(4n + 2) { animation-delay: 35ms; }
.product-card:nth-child(4n + 3) { animation-delay: 70ms; }
.product-card:nth-child(4n + 4) { animation-delay: 105ms; }
.product-img { height: 132px; }
.product-img > span { border-color: #daf96363; color: #ecf6bd; background: #121a12ea; }
.product-content { flex: 1; display: flex; flex-direction: column; }
.product-content h2 { min-height: 0; }
.product-content p.guarantee { color: #d9e89e; min-height: auto; font-weight: 700; }
.product-content p.offer-limit { min-height: 0; font-size: 11px; }
.product-bottom { margin-top: auto; padding-top: 10px; border-top: 0; }
.nav-link.current, .nav-link:hover, .filter.selected, .filter:hover { color: var(--accent); background: #2a3721; border-color: #68794d; }
.bottom-nav { border-color: #3a4b3b; background: #121a16f5; }
.role-choice.selected, .role-choice:hover { background: #273525; border-color: #849b5a; }
.email-code, .account-head { display: flex; gap: 8px; align-items: center; }
.email-code button { white-space: nowrap; flex: none; }
.code-hint { display: block; color: var(--accent); margin-top: 6px; }
.code-hint:empty { display: none; }
.auth-switch { margin-top: 18px; text-align: center; color: #d5e1c9; font-size: 13px; }
.auth-switch a:hover { color: var(--accent); }
.check-line { display: flex; align-items: center; gap: 8px; line-height: 1.65; }
.check-line input { width: 17px; min-height: 17px; flex: none; accent-color: var(--accent); }
.account-panel { width: min(100%,540px); margin-top: 20px; padding: 19px; border: 1px solid var(--line); border-radius: 15px; background: var(--panel); }
.account-panel h2 { font-size: 20px; }
.back-checkout { margin-top: 14px; }
.profile-link { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 13px; }
.profile-link > svg:first-child { color: var(--accent); }
.profile-link > svg:last-child { margin-left: auto; }
.profile-link small { display: block; color: var(--muted); margin-top: 4px; }
.account-head { justify-content: space-between; margin: 12px 0 5px; }
.account-head label { margin: 0; }
.checkout-progress { display: flex; gap: 12px; margin-bottom: 12px; color: var(--muted); font-size: 12px; }
.checkout-progress span { padding: 5px 8px; border: 1px solid var(--line); border-radius: 5px; }
.checkout-progress .done { border-color: #697c45; color: var(--accent); background: #26301f; }
.checkout-buttons { display: flex; justify-content: space-between; gap: 9px; margin-top: 14px; }
.checkout-buttons .primary { flex: 1; }
.music-toggle { position: fixed; z-index: 4; display: inline-flex; align-items: center; gap: 7px; top: 98px; right: max(18px, calc((100% - 1176px) / 2)); padding: 7px 10px; border: 1px solid #4a5a46; border-radius: 6px; color: #e8f0e5; background: #151e19ef; font-size: 11px; }
body:has(.workspace) .music-toggle { top: 83px; right: max(18px, calc((100% - 1176px) / 2)); }
.music-toggle i { display: inline-flex; gap: 2px; align-items: center; height: 12px; }
.music-toggle b { display: block; width: 2px; height: 10px; background: var(--accent); transform-origin: center; }
.music-toggle[aria-pressed=true] b { animation: meter .75s alternate infinite ease-in-out; }
.music-toggle b:nth-child(2) { animation-delay: -.2s; }
.music-toggle b:nth-child(3) { animation-delay: -.5s; }
#dialog { opacity: 0; transform: translateY(12px) scale(.985); transition: opacity .2s, transform .2s, display .2s allow-discrete, overlay .2s allow-discrete; }
#dialog[open] { opacity: 1; transform: none; }
@starting-style { #dialog[open] { opacity: 0; transform: translateY(12px) scale(.985); } }
@keyframes sweep { 50%, 100% { transform: translateX(105%); } }
@keyframes arrive { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes meter { from { transform: scaleY(.35); } to { transform: scaleY(1); } }
@media (max-width: 550px) {
  .product-img { height: 104px; }
  .music-toggle, body:has(.workspace) .music-toggle { top: auto; bottom: calc(70px + env(safe-area-inset-bottom)); right: 12px; }
  body:has(.login-shell) .music-toggle, body:has(.cover-scene) .music-toggle { bottom: 12px; right: 12px; }
  .cover-footer { padding-bottom: 24px; }
  .workspace-main { padding-bottom: calc(130px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

body { background: #0a1017; isolation: isolate; }
#app { min-height: 100svh; }
#ambience { position: fixed; z-index: -1; inset: 0; pointer-events: none; overflow: hidden; background: #0a1017; }
.scene-image { position: absolute; inset: -7%; background: url('/images/cover.webp') center 47% / cover; animation: image-drift 23s ease-in-out infinite alternate; translate: var(--scene-x, 0) var(--scene-y, 0); transition: opacity .48s, translate .8s cubic-bezier(.19,1,.22,1), filter .48s; }
.scene-light { position: absolute; inset: 0; background: radial-gradient(ellipse 44% 52% at var(--light-x, 67%) var(--light-y, 42%), #9ddfff2b, transparent 74%), linear-gradient(90deg,#090f17ef 5%,#0a111893 38%,#09111b18 75%), linear-gradient(0deg,#090f17f5,transparent 31%); }
.scene-light::after { content: ''; position: absolute; inset: -25%; background: radial-gradient(ellipse 36% 35% at 75% 33%,#dffdb921,transparent 76%), radial-gradient(ellipse 30% 27% at 20% 82%,#63b1fd27,transparent 75%); mix-blend-mode: screen; animation: light-drift 12s ease-in-out infinite alternate; }
#scene-particles { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .85; }
#ambience[data-mode=workspace] .scene-image { opacity: .34; filter: brightness(.64) saturate(.8); }
#ambience[data-mode=auth] .scene-image { opacity: .49; filter: brightness(.73) saturate(.82); }
#ambience[data-mode=workspace] .scene-light { opacity: .8; background: radial-gradient(ellipse 45% 55% at var(--light-x, 67%) var(--light-y, 42%), #80caff29, transparent 74%), linear-gradient(0deg,#0a1017f5,#0a101760); }
#ambience[data-mode=workspace] #scene-particles { opacity: .55; }
@keyframes image-drift { from { transform: translate3d(-1.6%, 1%, 0) scale(1.02); } to { transform: translate3d(2%, -1.6%, 0) scale(1.12); } }
@keyframes light-drift { from { transform: translate3d(-5%, 3%, 0); opacity: .63; } to { transform: translate3d(5%, -4%, 0); opacity: .95; } }
.cover-scene,.login-shell,.workspace { background: transparent; }
.cover-grid { position: absolute; inset: 0; z-index: 0; opacity: .25; pointer-events: none; }
.cover-header,.hero-inner,.cover-footer { position: relative; }
.cover-footer { justify-content: space-between; padding: 0; }
.hero-copy h1 { font-size: clamp(70px, 7.8vw, 127px); }
.hero-copy h1 small { font-size: clamp(13px, 2vw, 28px); margin-top: 14px; letter-spacing: .16em; }
.hero-copy p { max-width: 355px; color: #d3dfe9; }
.hero-copy .enter { margin-top: 1px; }

.filter-definitions { position: absolute; pointer-events: none; }
.glass { background: linear-gradient(145deg,#b8d8ed24,#a2b9cb0d 52%,#09141e1c),#101b2378; border: 1px solid #c0dbea42; box-shadow: inset 0 1px 0 #f1faff35,inset 0 -1px 1px #070f1bb5,0 10px 24px #060a1250; backdrop-filter: blur(17px) saturate(1.42); }
@supports (backdrop-filter: url('#glass-lens')) { .header-tool.glass,.market-coupon.glass,.bottom-nav.glass { backdrop-filter: blur(13px) saturate(1.3) url('#glass-lens'); } }
.login-card.glass { background-color: #101a22bd; }
.workspace-header { background: #0e1922c2; backdrop-filter: blur(12px); }
.header-tools { display: flex; gap: 10px; align-items: center; }
.header-tool { min-height: 41px; display: inline-flex; align-items: center; gap: 7px; border-radius: 12px; padding: 0 11px; position: relative; color: #e3eef6; white-space: nowrap; font-size: 13px; overflow: clip; }
.header-tool:hover { border-color: #e2fb9b90; color: var(--accent); }
.notice-dot { position: absolute; top: 8px; left: 24px; width: 6px; aspect-ratio: 1; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px #dbfa6a; }
.announcement-list article { border-top: 1px solid #a7c8e335; padding: 9px 0 15px; }
.announcement-list h3 small { color: var(--accent); margin-left: 10px; font-weight: 400; }
.announcement-list p { color: #c1d1dd; font-size: 14px; line-height: 1.65; }
.store-banner { background-position: center, 60% 47%; align-items: flex-end; justify-content: space-between; gap: 14px; }
.market-coupon { display: inline-flex; align-items: center; gap: 7px; padding: 8px 10px; border-radius: 10px; white-space: nowrap; font-size: 13px; color: #edffb5; }
.product-card { background: linear-gradient(180deg,#182932a6,#0c1720e8 68%); border-color: #b3cfde34; border-radius: 13px; }
.product-card:hover,.order-card:hover { border-color: #d3ef87a3; }
.product-content h2 { font-weight: 740; letter-spacing: -.025em; }
.product-card .guarantee { font-weight: 600; }
.product-img > span { border: 0; border-radius: 4px; }
.order-card,.account-panel,.stats-grid .stat,.profile-link { background: #101d26bd; border-color: #a8c2d22e; backdrop-filter: blur(13px); }
#dialog { background: #101b26ec; border-color: #accbe756; backdrop-filter: blur(19px) saturate(1.32); }
#dialog::backdrop { background: #070d14a1; backdrop-filter: blur(7px); }
.bottom-nav.glass { width: min(550px,calc(100% - 26px)); margin: 0 auto 12px; padding: 5px; gap: 4px; border-radius: 21px; background-color: #121d27b7; }
.nav-link { flex: 1; min-height: 48px; border-radius: 15px; }
.nav-link, .nav-link:hover, .nav-link.current { background: transparent; border-color: transparent; }
.nav-link.current { color: #f4ffc9; }
.dock-lens { position: absolute; pointer-events: none; inset: 5px auto 5px 5px; width: calc((100% - 18px) / 3); translate: calc(var(--dock-index) * (100% + 4px)) 0; transition: translate .60s cubic-bezier(.27,.86,.27,1.14); }
.dock-lens i { display: block; width: 100%; height: 100%; border: 1px solid #ebffb683; border-radius: 15px; background: radial-gradient(ellipse at 18% -24%,#f5ffd185,transparent 60%),linear-gradient(155deg,#bffd6952,#769c3149 57%,#d6fb6845); box-shadow: inset 0 2px 3px #efffb87d,inset 1px -2px 6px #dbf78c62,0 2px 9px #0a120a8f,0 0 15px #c2ee5820; backdrop-filter: blur(7px) saturate(1.48); }
@supports (backdrop-filter: url('#glass-lens')) { .dock-lens i { backdrop-filter: blur(4px) saturate(1.48) url('#glass-lens'); } }
@media (prefers-reduced-motion: reduce) { .dock-lens { transition: none; } }
.coupon-list { display: grid; gap: 12px; margin-top: 24px; max-width: 678px; }
.coupon-card { display: grid; grid-template-columns: minmax(78px,108px) 1fr auto; align-items: center; gap: 16px; padding: 14px; border-radius: 13px; }
.coupon-value { align-self: stretch; display: grid; align-content: center; justify-items: center; border-right: 1px dashed #cce59163; padding: 7px 10px 7px 0; color: var(--accent); font-size: clamp(18px, 4vw, 32px); font-weight: 800; }
.coupon-value small { font-size: 11px; margin-top: 2px; }
.coupon-card h2 { font-size: 17px; }
.coupon-card p,.coupon-card small { color: #c3d2de; font-size: 12px; overflow-wrap: anywhere; }
.coupon-card p { margin: 4px 0; }
.coupon-card.used .coupon-value,.coupon-card.used .coupon-state { color: #a8b7c2; }
.coupon-state { align-self: center; font-size: 12px; color: var(--accent); }
.coupon-state a { display: inline-flex; align-items: center; min-height: 36px; border: 1px solid #b1cc7368; border-radius: 6px; padding: 0 8px; white-space: nowrap; }
.discount-line { display: block; margin-top: 3px; }
.discount-line[hidden] { display: none; }
button.text-link { margin-left: 6px; padding: 0; border: 0; background: none; text-decoration: underline; }
@media (max-width: 690px) {
  .workspace-bar .role-tag { display: none; }
  body:has(.workspace) .music-toggle { top: auto; bottom: calc(74px + env(safe-area-inset-bottom)); right: 12px; }
  .store-banner { align-items: flex-start; flex-direction: column; gap: 7px; }
}
@media (max-width: 550px) {
  .scene-image { background-position: 61% 19%; }
  .scene-light { background: radial-gradient(ellipse at 67% 22%,#a1ceff38,transparent 69%),linear-gradient(0deg,#080e16 0%,#090f17f1 21%,#090f176b 70%,#0a11185b 100%); }
  .cover-footer { min-height: 64px; align-items: flex-start; padding: 12px 0 24px; }
  .hero-copy h1 { font-size: clamp(52px, 14.5vw, 83px); }
  .hero-copy h1 small { letter-spacing: .1em; }
  .cover-header .header-tools,.workspace-bar .header-tools { gap: 6px; }
  .header-tool { min-height: 38px; font-size: 11px; padding: 0 7px; }
  .header-tool svg { width: 16px; }
  .notice-dot { left: 18px; }
  .coupon-card { gap: 9px; padding: 11px; grid-template-columns: 79px 1fr auto; }
  .bottom-nav.glass { margin-bottom: max(8px,env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { .scene-image, .scene-light::after { animation: none; translate: none; } }

.account-choice { position: relative; min-width: 0; margin: 13px 0 0; padding: 0; border: 0; }
.account-choice legend { margin-bottom: 10px; padding: 0; font-size: 13px; font-weight: 650; }
.account-choice .add-account { position: absolute; right: 0; top: -33px; min-height: 30px; padding-block: 4px; }
.account-choices { display: grid; gap: 6px; max-height: 174px; overflow: auto; padding: 2px; margin: -2px; }
.account-choice label.account-option { display: grid; grid-template: auto auto / 34px minmax(0,1fr) 16px; column-gap: 10px; align-items: center; margin: 0; padding: 9px 11px; border: 1px solid var(--line); border-radius: 11px; cursor: pointer; background: #0c151baf; transition: background .2s, border-color .2s; }
.account-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.account-option strong { overflow-wrap: anywhere; }
.account-option small { grid-column: 2; }
.account-avatar { display: grid; place-items: center; grid-row: 1 / 3; height: 34px; border-radius: 8px; color: var(--accent); background: #c8f56e19; }
.account-option i { grid-column: 3; grid-row: 1 / 3; height: 16px; border-radius: 50%; border: 1px solid #8c9b96; }
.account-option:has(:checked) { border-color: #cfff7082; background: #8eb84b1a; }
.account-option:has(:checked) i { border-color: var(--accent); background: radial-gradient(circle,var(--accent) 0 4px,transparent 5px); }
.account-option:has(:focus-visible) { outline: 2px solid var(--accent); }
.account-empty { padding: 12px; color: var(--muted); background: #0c151bb0; border-radius: 9px; }
html:has(#dialog[open] .checkout-step) { overflow: hidden; }
#dialog:has(.checkout-step) { width: min(500px, calc(100% - 20px)); max-height: min(92dvh, 840px); padding: clamp(14px, 4vw, 24px); overflow-x: hidden; overscroll-behavior: contain; border-radius: 22px; border-color: #455351; background: #171e21; }
#dialog:has(.checkout-step), .checkout-step .account-choices, .clock-wheel { scrollbar-width: none; }
#dialog:has(.checkout-step)::-webkit-scrollbar, .checkout-step .account-choices::-webkit-scrollbar, .clock-wheel::-webkit-scrollbar { display: none; }
.booking-product { display: flex; align-items: center; gap: 13px; padding: 10px 0 14px; margin-bottom: 16px; border-bottom: 1px solid #ffffff17; }
.booking-product img { width: 76px; height: 54px; object-fit: cover; border-radius: 9px; }
#dialog .booking-product h3 { margin: 0 0 4px; font-size: 17px; }
.booking-product p { font-size: 12px; color: var(--muted); }
.booking-time-picker { --clock-row: 34px; margin-top: 16px; padding: 15px clamp(8px, 2.6vw, 16px) 10px; border: 1px solid #3d4949; border-radius: 17px; color: #f2f5ef; background: linear-gradient(150deg,#252e2d,#202527 48%,#1e2325); font-variant-numeric: tabular-nums; }
.clock-head, .clock-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 3px; }
.clock-head strong { font-size: 16px; letter-spacing: .04em; }
.clock-head small, .clock-foot { color: #adbbb5; font-size: 11px; }
.date-rail { position: relative; isolation: isolate; display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); margin: 13px 0 9px; }
.date-rail::before { content: ''; position: absolute; z-index: -1; left: 0; top: 0; bottom: 0; width: calc(100% / 7); transform: translateX(calc(var(--day-index, 0) * 100%)); border-radius: 10px; background: linear-gradient(155deg,#e4f5ac,#bce48f); box-shadow: inset 0 1px 0 #fff9; transition: transform .32s cubic-bezier(.22,.8,.22,1); }
.date-node { min-width: 0; min-height: 50px; display: grid; place-content: center; gap: 2px; padding: 2px 0; border: 0; border-radius: 10px; background: transparent; color: #ced7d2; text-align: center; font-variant-numeric: tabular-nums; transition: color .18s; }
.date-node small { font-size: clamp(10px,2.8vw,11px); white-space: nowrap; }
.date-node b { font-size: 17px; line-height: 1.1; font-weight: 620; }
.date-node[aria-pressed=true] { color: #20301d; }
.date-node:focus-visible { outline-offset: -2px; outline-color: currentColor; }
.clock-face { --unit-h: 22px; position: relative; isolation: isolate; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); width: min(100%,320px); margin: 12px auto 4px; }
.clock-face::before { content: ''; position: absolute; z-index: -1; inset: calc(var(--unit-h) + var(--clock-row) * 2) 0 auto; height: var(--clock-row); border-radius: 9px; background: #ecf5e80a; }
.clock-column { min-width: 0; text-align: center; }
.clock-unit { display: block; height: var(--unit-h); color: #c7d0ca; font-size: 12px; }
.clock-wheel { height: calc(var(--clock-row) * 5); overflow: hidden auto; scroll-snap-type: y mandatory; overscroll-behavior-y: contain; touch-action: pan-y; user-select: none; cursor: ns-resize; mask-image: linear-gradient(transparent,#0009 17%,#000 39% 61%,#0009 83%,transparent); }
.clock-wheel:focus-visible { outline-offset: -2px; border-radius: 9px; }
.clock-wheel.dragging { scroll-snap-type: none; cursor: grabbing; }
.clock-wheel::before, .clock-wheel::after { content: ''; display: block; height: calc(var(--clock-row) * 2); }
.clock-wheel span { display: grid; place-items: center; height: var(--clock-row); scroll-snap-align: center; font: 400 23px/1 'Segoe UI',system-ui,sans-serif; font-variant-numeric: tabular-nums; color: #a2afa8; transition: color .12s, font-size .12s; }
.clock-wheel .current { color: white; font-size: 32px; font-weight: 550; }
.clock-colon { position: absolute; left: 50%; top: calc(var(--unit-h) + var(--clock-row) * 2.5); transform: translate(-50%,-52%); font-size: 25px; color: #b6c4b7; pointer-events: none; }
.clock-foot { padding-top: 8px; border-top: 1px solid #ffffff12; }
.clock-foot small { font-size: inherit; color: #97a59e; }
@media (max-height: 720px) { .booking-time-picker { --clock-row: 29px; } }
@media (prefers-reduced-motion: reduce) { .date-rail::before, .clock-wheel span, .date-node { transition: none; } }
.review-band { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; align-items: center; padding: 10px; margin-top: 12px; border: 1px solid var(--line); border-radius: 10px; background: #09151a70; }
.review-band small { color: var(--muted); }
.review-confirmations, .detail-actions, .proof-list { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.review-confirmations span { padding: 3px 8px; border-radius: 7px; color: var(--muted); background: #b5c5c019; font-size: 12px; }
.review-confirmations .confirmed { color: var(--accent); background: #b9ec6220; }
.review-action, .detail-actions, .proof-list, .tip-receipt { margin-top: 12px; }
.review-action input[type=file] { cursor: pointer; }
.review-action input::file-selector-button { padding: 6px 9px; margin-inline-end: 9px; border: 0; border-radius: 6px; background: #becf9a30; color: var(--text); }
.tip-receipt { display: flex; align-items: center; gap: 7px; color: var(--accent); }
.complaint-filed { color: var(--muted); font-size: 13px; }
form[data-form=order-action] .secondary.full { margin-top: 8px; }

.status.review { color: #ffd1d1; background: #5c1e2a; border: 1px solid #e45a6c91; box-shadow: 0 0 12px #e2385529; }
