:root {
  --bg: #040814;
  --glass: rgba(8, 16, 34, .28);
  --glass-hover: rgba(12, 24, 50, .42);
  --glass-strong: rgba(8, 15, 32, .56);
  --card: rgba(8, 16, 34, .28);
  --border: rgba(255, 255, 255, .2);
  --border-glow: rgba(125, 211, 252, .62);
  --text: #ffffff;
  --muted: #e2e8f0;
  --muted2: #cbd5e1;
  --primary: #5855f6;
  --primary2: #0ea5e9;
  --cyan: #38bdf8;
  --gold: #fbbf24;
  --success: #10b981;
  --warn: #f59e0b;
  --danger: #ef4444;
  --radius: 20px;
  --veil: 0.22;
}
* {
  box-sizing: border-box; margin: 0; padding: 0;
  -webkit-tap-highlight-color: transparent;
  scrollbar-width: thin; scrollbar-color: rgba(125, 211, 252, .32) transparent;
}
html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
  padding-top: env(safe-area-inset-top, 0px);
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
.container { width: min(1340px, 94%); margin: 0 auto; position: relative; z-index: 2; }

/* ========== Fullscreen Fixed Hero Video & Ultra-Clear Veil ========== */
.video-bg-wrap {
  position: fixed; inset: 0; width: 100vw; height: 100vh;
  z-index: -2; overflow: hidden; pointer-events: none;
  background: #040814;
}
.video-bg-wrap video {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(1.1) contrast(1.03);
}
.video-veil {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1000px 600px at 50% 25%, rgba(4, 9, 22, calc(var(--veil) * 0.55)), rgba(4, 9, 22, calc(var(--veil) + 0.12)) 85%),
    linear-gradient(180deg, rgba(4, 9, 22, calc(var(--veil) * 0.7)) 0%, rgba(4, 9, 22, var(--veil)) 50%, rgba(4, 9, 22, calc(var(--veil) + 0.16)) 100%);
}

/* ========== Luxury Crystal Top Navbar ========== */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(16px) saturate(165%);
  -webkit-backdrop-filter: blur(16px) saturate(165%);
  background: rgba(6, 12, 28, .28);
  border-bottom: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .18);
}
.nav .container {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 66px; padding: 8px 0; gap: 10px;
}
.logo {
  display: inline-flex; align-items: center; gap: 11px;
  font-weight: 800; font-size: 1.22rem; letter-spacing: -.01em; flex-shrink: 0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .55);
}
.logo .store-name {
  background: linear-gradient(90deg, #ffffff 15%, #bae6fd 62%, #fde68a 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.logo-avatar {
  width: 40px; height: 40px; border-radius: 12px; object-fit: cover;
  border: 1.5px solid rgba(125, 211, 252, .7);
  box-shadow: 0 0 18px rgba(56, 189, 248, .35);
  background: #0b1329;
}

.nav-menu {
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap; justify-content: flex-end;
}
.nav-pill {
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 13px; border-radius: 999px;
  background: rgba(10, 18, 38, .34);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .22);
  color: #ffffff; font-size: .79rem; font-weight: 700;
  cursor: pointer; transition: .2s; white-space: nowrap;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .45);
}
.nav-pill:hover {
  border-color: var(--border-glow);
  background: rgba(18, 34, 68, .52);
  transform: translateY(-1px);
}
.nav-pill svg { width: 15px; height: 15px; flex-shrink: 0; }
.nav-tag {
  font-size: .65rem; font-weight: 800; color: #e0f2fe;
  padding: 1px 6px; border-radius: 999px; background: rgba(56, 189, 248, .22);
}
.nav-install {
  background: linear-gradient(135deg, rgba(168, 85, 247, .34), rgba(14, 165, 233, .34));
  border-color: rgba(192, 132, 252, .55);
  color: #f3e8ff;
}
.nav-wallet {
  background: rgba(16, 185, 129, .22);
  border-color: rgba(52, 211, 153, .5);
  color: #a7f3d0;
}
.nav-files {
  background: rgba(88, 85, 246, .28);
  border-color: rgba(165, 180, 252, .52);
  color: #eef2ff;
}
.nav-auth {
  background: linear-gradient(135deg, rgba(251, 191, 36, .3), rgba(245, 158, 11, .22));
  border-color: rgba(253, 224, 71, .62);
  color: #fef3c7;
}
.nav-user {
  background: rgba(14, 165, 233, .26);
  border-color: rgba(125, 211, 252, .55);
  color: #f0f9ff;
}
.nav-login {
  width: 36px; padding: 0; justify-content: center;
  background: rgba(244, 63, 94, .24);
  border-color: rgba(253, 164, 175, .48);
  color: #fecdd3;
}
.nav-bot {
  background: linear-gradient(135deg, #0ea5e9, #3b82f6);
  border: none; color: #fff;
  box-shadow: 0 4px 18px rgba(14, 165, 233, .42);
}
.count-dot {
  display: inline-grid; place-items: center;
  min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px;
  background: #38bdf8; color: #041022; font-size: .68rem; font-weight: 900;
  text-shadow: none;
}

/* ========== Ultra-Transparent Crystal Hero Banner ========== */
.hero-wrap { padding: 24px 0 12px; }
.hero-banner {
  position: relative; overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, .26);
  padding: 36px 42px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  background: linear-gradient(125deg, rgba(8, 16, 36, .24) 0%, rgba(16, 32, 68, .16) 52%, rgba(8, 16, 36, .28) 100%);
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
  box-shadow:
    0 20px 55px rgba(0, 0, 0, .28),
    inset 0 1px 0 rgba(255, 255, 255, .28);
}
.hero-content { position: relative; z-index: 1; max-width: 720px; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255, 255, 255, .92); color: #071022;
  font-size: .75rem; font-weight: 800;
  padding: 6px 15px; border-radius: 999px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
}
.hero-content h1 {
  font-size: clamp(1.75rem, 3.2vw, 2.6rem);
  font-weight: 800; line-height: 1.15; letter-spacing: -.02em;
  color: #ffffff; margin: 16px 0 12px;
  text-shadow: 0 4px 26px rgba(0, 0, 0, .72), 0 1px 4px rgba(0, 0, 0, .6);
}
.hero-content p {
  color: #f1f5f9; font-size: .96rem; line-height: 1.62; max-width: 630px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .75);
}
.hero-perks {
  display: flex; gap: 9px; flex-wrap: wrap; margin-top: 16px;
}
.perk-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px;
  background: rgba(8, 15, 32, .36);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .22);
  font-size: .75rem; font-weight: 700; color: #f0f9ff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .55);
}
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.btn-hero-light {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: 999px;
  background: linear-gradient(135deg, #ffffff, #e0f2fe);
  color: #071022; border: none;
  font-weight: 800; font-size: .87rem; cursor: pointer; transition: .22s;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .32);
}
.btn-hero-light:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(56, 189, 248, .4); }
.btn-hero-glass {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 999px;
  background: rgba(8, 15, 32, .38);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .32);
  color: #ffffff; font-weight: 700; font-size: .85rem;
  cursor: pointer; transition: .2s;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .5);
}
.btn-hero-glass:hover { background: rgba(16, 30, 62, .58); border-color: var(--cyan); }

.hero-mascot {
  position: relative; z-index: 1; flex-shrink: 0;
  width: 206px; height: 206px; border-radius: 30px;
  padding: 4px;
  background: linear-gradient(135deg, rgba(125, 211, 252, .9), rgba(192, 132, 252, .85), rgba(251, 191, 36, .9));
  box-shadow: 0 20px 50px rgba(0, 0, 0, .48), 0 0 36px rgba(56, 189, 248, .35);
  transition: transform .3s ease;
}
.hero-mascot:hover { transform: scale(1.03) rotate(1deg); }
.hero-mascot img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 26px; display: block;
  background: #070d1f;
}

/* ========== Catalog Header, Glass Search & Category Pills ========== */
.catalog-sec { padding: 22px 0 58px; }
.catalog-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 18px;
}
.catalog-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.3rem; font-weight: 800; color: #ffffff;
  text-shadow: 0 3px 16px rgba(0, 0, 0, .7);
}
.catalog-title svg { width: 23px; height: 23px; color: var(--cyan); filter: drop-shadow(0 2px 8px rgba(0,0,0,.5)); }

.search-box { position: relative; width: min(430px, 100%); }
.search-box svg {
  position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
  width: 17px; height: 17px; color: var(--cyan); pointer-events: none;
}
.search {
  width: 100%; padding: 11px 16px 11px 43px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .26);
  background: rgba(8, 15, 32, .34);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--text); font-size: .88rem; outline: none; transition: .2s;
}
.search::placeholder { color: #e2e8f0; opacity: .8; }
.search:focus { border-color: var(--cyan); background: rgba(8, 15, 32, .56); box-shadow: 0 0 0 3px rgba(56, 189, 248, .2); }

.chips {
  display: flex; gap: 9px; overflow-x: auto; padding-bottom: 8px;
  margin-bottom: 22px; scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 17px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(8, 15, 32, .32);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #f8fafc; font-weight: 800; font-size: .77rem;
  cursor: pointer; transition: .18s; white-space: nowrap;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .55);
}
.chip:hover { border-color: var(--cyan); background: rgba(16, 30, 62, .5); }
.chip.active {
  background: linear-gradient(90deg, rgba(59, 130, 246, .88), rgba(6, 182, 212, .88));
  border-color: #bae6fd; color: #ffffff;
  box-shadow: 0 4px 20px rgba(56, 189, 248, .42);
}

/* ========== Ultra-Transparent Luxury Product Cards ========== */
.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.card {
  border-radius: var(--radius);
  background: var(--glass);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, .24);
  overflow: hidden;
  display: flex; flex-direction: column;
  cursor: pointer; transition: .26s ease;
  box-shadow:
    0 12px 34px rgba(0, 0, 0, .28),
    inset 0 1px 0 rgba(255, 255, 255, .22);
}
.card:hover {
  transform: translateY(-5px);
  background: var(--glass-hover);
  border-color: rgba(125, 211, 252, .72);
  box-shadow:
    0 22px 46px rgba(0, 0, 0, .42),
    0 0 28px rgba(56, 189, 248, .24),
    inset 0 1px 0 rgba(255, 255, 255, .32);
}
.card.soldout { opacity: .65; }

.card-thumb {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  background: rgba(6, 12, 24, .4); overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}
.card-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  opacity: .92; transition: transform .38s ease, opacity .25s ease;
}
.card:hover .card-thumb img { transform: scale(1.05); opacity: 1; }

.card-cat-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(6, 12, 28, .66);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(125, 211, 252, .42);
  color: #bae6fd; font-size: .64rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .04em;
  max-width: calc(100% - 20px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.card-body {
  padding: 15px 16px 16px;
  display: flex; flex-direction: column; flex: 1;
}
.card-body h3 {
  font-size: .97rem; font-weight: 800; color: #ffffff;
  line-height: 1.35; margin-bottom: 6px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .65);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-body p.desc {
  color: #f1f5f9; opacity: .9; font-size: .79rem; line-height: 1.48;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .65);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 11px; flex: 1;
}

.card-vlist {
  display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 12px;
}
.v-pill {
  font-size: .68rem; font-weight: 700; padding: 3px 8px; border-radius: 7px;
  background: rgba(6, 12, 28, .42);
  border: 1px solid rgba(255, 255, 255, .18);
  color: #f1f5f9; white-space: nowrap;
}
.v-pill b { color: #7dd3fc; }

.card-meta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-bottom: 13px; padding-top: 9px;
  border-top: 1px solid rgba(255, 255, 255, .15);
}
.card-price-wrap small {
  display: block; font-size: .68rem; color: #e2e8f0; font-weight: 600; line-height: 1.1;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .6);
}
.card-price {
  color: #7dd3fc; font-weight: 800; font-size: .98rem; letter-spacing: -.01em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .65);
}
.card-price .sub-curr {
  color: #bae6fd; font-weight: 700; font-size: .79rem;
}
.stock-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 9px; border-radius: 999px;
  background: rgba(16, 185, 129, .24);
  border: 1px solid rgba(52, 211, 153, .55);
  color: #a7f3d0; font-size: .71rem; font-weight: 800; white-space: nowrap;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .45);
}
.stock-badge.out {
  background: rgba(239, 68, 68, .24);
  border-color: rgba(248, 113, 113, .55);
  color: #fecaca;
}
.btn-buy {
  width: 100%; padding: 10px 14px; border-radius: 12px; border: none;
  background: linear-gradient(90deg, rgba(88, 85, 246, .92) 0%, rgba(37, 137, 245, .92) 52%, rgba(20, 184, 212, .92) 100%);
  color: #ffffff; font-weight: 800; font-size: .84rem;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  cursor: pointer; transition: .2s;
  box-shadow: 0 6px 20px rgba(37, 137, 245, .32), inset 0 1px 0 rgba(255, 255, 255, .28);
}
.btn-buy:hover { filter: brightness(1.1); box-shadow: 0 8px 26px rgba(20, 184, 212, .48); }
.btn-buy.disabled { background: rgba(148, 163, 184, .25); color: #cbd5e1; box-shadow: none; }

/* ========== Quantity Stepper Control ========== */
.qty-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px; border-radius: 13px;
  background: rgba(6, 12, 28, .44);
  border: 1px solid rgba(255, 255, 255, .2);
  margin-bottom: 14px;
}
.qty-ctrl {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(4, 9, 20, .55); padding: 4px; border-radius: 10px;
  border: 1px solid rgba(125, 211, 252, .3);
}
.qty-btn {
  width: 34px; height: 34px; border-radius: 8px; border: none;
  background: rgba(56, 189, 248, .2); color: #fff;
  font-size: 1.15rem; font-weight: 800; cursor: pointer; transition: .15s;
  display: grid; place-items: center;
}
.qty-btn:hover:not(:disabled) { background: rgba(56, 189, 248, .42); }
.qty-btn:disabled { opacity: .35; cursor: not-allowed; }
.qty-input {
  width: 46px; text-align: center; border: none; background: transparent;
  font-weight: 800; font-size: 1rem; color: #fff; outline: none;
}

/* ========== Shared Buttons, Forms, Crystal Modals & Order Page ========== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 12px;
  border: 1px solid var(--border); background: rgba(255, 255, 255, .09);
  backdrop-filter: blur(12px);
  font-weight: 700; cursor: pointer; transition: .2s;
}
.btn:hover { transform: translateY(-1px); border-color: rgba(255, 255, 255, .38); background: rgba(255, 255, 255, .15); }
.btn-primary {
  background: linear-gradient(90deg, #5855f6 0%, #2589f5 55%, #14b8d4 100%);
  border: none; color: #fff; box-shadow: 0 8px 24px rgba(37, 137, 245, .36);
}
.btn-primary:hover { filter: brightness(1.08); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-sm { padding: 7px 12px; font-size: .8rem; border-radius: 9px; }
.btn-block { width: 100%; }
.btn-danger { background: rgba(239, 68, 68, .18); color: #fecaca; border-color: rgba(248, 113, 113, .48); }
.btn-danger:hover { background: rgba(239, 68, 68, .3); border-color: #f87171; }
.btn-success { background: var(--success); color: #04120a; border: none; }

.card-top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.p-icon {
  width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center;
  font-size: 1.4rem; font-weight: 800; color: #fff; background: var(--c, #3b82f6);
  flex-shrink: 0; border: 1px solid rgba(255, 255, 255, .2);
}
.cat { font-size: .74rem; color: #7dd3fc; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }

footer {
  position: relative; z-index: 2;
  border-top: 1px solid rgba(255, 255, 255, .16);
  padding: 24px 0; margin-top: 30px;
  color: #e2e8f0; font-size: .84rem;
  background: rgba(6, 12, 26, .32);
  backdrop-filter: blur(14px);
}
footer .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }

.modal-bg {
  position: fixed; inset: 0; background: rgba(3, 7, 18, .44);
  backdrop-filter: blur(8px); display: none; align-items: center; justify-content: center;
  z-index: 100; padding: 16px;
}
.modal-bg.open { display: flex; animation: fade .18s; }
.modal {
  width: min(550px, 100%); max-height: 90vh; overflow: auto;
  background: rgba(8, 16, 36, .62);
  backdrop-filter: blur(26px) saturate(175%);
  -webkit-backdrop-filter: blur(26px) saturate(175%);
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 24px; padding: 26px; position: relative; animation: pop .22s;
  box-shadow: 0 28px 70px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.modal-lg { width: min(720px, 100%); }
.modal-close {
  position: absolute; top: 14px; right: 14px; width: 35px; height: 35px;
  border-radius: 50%; border: 1px solid var(--border); background: rgba(6, 12, 28, .55);
  cursor: pointer; font-size: 1rem; color: #f8fafc; z-index: 3;
}
@keyframes fade { from { opacity: 0 } }
@keyframes pop { from { transform: scale(.96) translateY(8px); opacity: 0 } }

.auth-tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  padding: 5px; border-radius: 13px; background: rgba(5, 10, 24, .5);
  border: 1px solid var(--border); margin: 14px 0 18px;
}
.auth-tab {
  padding: 9px 12px; border-radius: 9px; border: none; background: transparent;
  font-weight: 800; font-size: .85rem; color: var(--muted2); cursor: pointer; transition: .18s;
}
.auth-tab.active {
  background: linear-gradient(90deg, #5855f6, #0ea5e9);
  color: #fff; box-shadow: 0 4px 14px rgba(14, 165, 233, .35);
}

.user-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 16px 18px; border-radius: 16px;
  background: linear-gradient(125deg, rgba(59, 130, 246, .24), rgba(16, 185, 129, .18));
  border: 1px solid rgba(125, 211, 252, .35);
  margin-bottom: 16px;
}
.user-avatar-lg {
  width: 48px; height: 48px; border-radius: 14px;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  display: grid; place-items: center; font-weight: 900; font-size: 1.25rem; color: #fff;
}
.vault-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px;
}
.v-stat {
  padding: 12px 14px; border-radius: 13px;
  background: rgba(6, 12, 26, .46); border: 1px solid var(--border);
}
.v-stat span { display: block; font-size: .75rem; color: var(--muted2); }
.v-stat b { font-size: 1.15rem; color: #fff; }

.order-card {
  padding: 16px; border-radius: 15px;
  background: rgba(6, 12, 26, .48);
  border: 1px solid var(--border);
  margin-bottom: 12px;
}
.order-card-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap;
  margin-bottom: 10px;
}
.delivery-box {
  background: rgba(16, 185, 129, .14);
  border: 1px solid rgba(52, 211, 153, .5);
  border-radius: 12px; padding: 13px 14px; margin-top: 10px;
}
.delivery-code {
  white-space: pre-wrap; word-break: break-all;
  font-family: ui-monospace, Consolas, monospace; font-size: .88rem;
  color: #ecfdf5; background: rgba(4, 9, 20, .62);
  padding: 10px 12px; border-radius: 9px; margin: 8px 0;
  border: 1px solid rgba(255, 255, 255, .1);
}

.modal-thumb {
  width: 100%; height: 145px; object-fit: cover; border-radius: 14px;
  margin-bottom: 14px; border: 1px solid var(--border);
}
.variants { display: grid; gap: 9px; margin: 14px 0 16px; }
.variant {
  display: flex; justify-content: space-between; align-items: center;
  padding: 13px 15px; border-radius: 13px;
  border: 1.5px solid var(--border); background: rgba(6, 12, 28, .44);
  cursor: pointer; transition: .15s;
}
.variant:hover { border-color: rgba(125, 211, 252, .55); }
.variant.active { border-color: #7dd3fc; background: rgba(14, 165, 233, .24); }
.variant.disabled { opacity: .45; cursor: not-allowed; }
.variant small { color: var(--muted2); display: block; font-size: .76rem; margin-top: 2px; }

.field { margin-bottom: 13px; }
.field label { display: block; font-size: .83rem; font-weight: 700; margin-bottom: 6px; color: #f1f5f9; }
.input {
  width: 100%; padding: 11px 14px; border-radius: 11px;
  border: 1px solid var(--border); background: rgba(5, 10, 24, .56);
  color: #fff; outline: none; transition: .2s;
}
.input:focus { border-color: var(--cyan); background: rgba(5, 10, 24, .75); box-shadow: 0 0 0 3px rgba(56, 189, 248, .2); }
textarea.input { resize: vertical; min-height: 86px; font-family: ui-monospace, Consolas, monospace; font-size: .86rem; }
.hint { color: var(--muted2); font-size: .77rem; margin-top: 4px; }
.alert { padding: 12px 14px; border-radius: 12px; font-size: .85rem; margin-bottom: 14px; }
.alert-error { background: rgba(239, 68, 68, .22); border: 1px solid rgba(248, 113, 113, .48); color: #fecaca; }
.alert-info { background: rgba(14, 165, 233, .18); border: 1px solid rgba(125, 211, 252, .4); color: #f0f9ff; }
.alert-success { background: rgba(16, 185, 129, .2); border: 1px solid rgba(52, 211, 153, .45); color: #d1fae5; }
.total {
  display: flex; justify-content: space-between; align-items: center;
  padding: 13px 0; border-top: 1px dashed rgba(255, 255, 255, .24); margin-top: 6px; margin-bottom: 12px;
}
.total b { font-size: 1.34rem; color: #7dd3fc; }

/* Order page */
.order-wrap { max-width: 530px; margin: 32px auto; }
.panel {
  background: var(--glass-strong);
  backdrop-filter: blur(22px) saturate(170%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 24px; padding: 26px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .42), inset 0 1px 0 rgba(255, 255, 255, .2);
}
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: .76rem; font-weight: 700; }
.st-pending { background: rgba(245, 158, 11, .22); color: #fde68a; border: 1px solid rgba(245, 158, 11, .42); }
.st-paid { background: rgba(14, 165, 233, .24); color: #bae6fd; border: 1px solid rgba(56, 189, 248, .42); }
.st-completed { background: rgba(16, 185, 129, .24); color: #a7f3d0; border: 1px solid rgba(52, 211, 153, .45); }
.st-expired, .st-cancelled, .st-failed, .st-creating { background: rgba(239, 68, 68, .22); color: #fecaca; border: 1px solid rgba(248, 113, 113, .42); }
.qr-box { background: #fff; border-radius: 18px; padding: 16px; width: 270px; max-width: 100%; margin: 16px auto; aspect-ratio: 1; display: grid; place-items: center; box-shadow: 0 12px 32px rgba(0,0,0,.38); }
.qr-box img { width: 100%; height: 100%; object-fit: contain; }
.countdown { text-align: center; font-size: 1.7rem; font-weight: 800; font-variant-numeric: tabular-nums; color: #7dd3fc; }
.row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(255, 255, 255, .14); font-size: .89rem; }
.row span:first-child { color: var(--muted2); }
.row span:last-child { text-align: right; font-weight: 600; word-break: break-all; }
.delivery { background: rgba(5, 10, 24, .68); border: 1px solid rgba(52, 211, 153, .5); border-radius: 14px; padding: 16px; white-space: pre-wrap; word-break: break-all; font-family: ui-monospace, Consolas, monospace; font-size: .9rem; margin: 12px 0; }
.big-icon { font-size: 3rem; text-align: center; margin: 10px 0; }
.pulse { animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .45 } }
.center { text-align: center; }
.muted { color: var(--muted2); }
.mt { margin-top: 16px; }
.spinner { width: 20px; height: 20px; border: 3px solid rgba(255, 255, 255, .2); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg) } }
.toast { position: fixed; bottom: 84px; left: 50%; transform: translateX(-50%); background: rgba(10, 19, 40, .92); backdrop-filter: blur(16px); border: 1px solid rgba(125, 211, 252, .5); padding: 11px 20px; border-radius: 999px; z-index: 250; font-weight: 700; font-size: .86rem; box-shadow: 0 12px 34px rgba(0, 0, 0, .55); white-space: nowrap; }

/* ========== Mobile App Floating Bottom Dock (Android & iOS) ========== */
.mobile-dock {
  display: none;
  position: fixed; left: 12px; right: 12px;
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  z-index: 70;
  background: rgba(8, 15, 34, .62);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 22px;
  padding: 7px 8px;
  box-shadow: 0 16px 42px rgba(0, 0, 0, .5);
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}
.dock-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  padding: 6px 4px; border-radius: 14px; border: none; background: transparent;
  color: #e2e8f0; font-size: .68rem; font-weight: 700; cursor: pointer; transition: .18s;
}
.dock-btn svg { width: 19px; height: 19px; }
.dock-btn:hover, .dock-btn.active {
  background: rgba(56, 189, 248, .22); color: #7dd3fc;
}

/* Install Guide Steps */
.inst-step {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 14px; border-radius: 14px;
  background: rgba(6, 12, 28, .48); border: 1px solid var(--border); margin-bottom: 10px;
}
.inst-num {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #5855f6, #0ea5e9);
  display: grid; place-items: center; font-weight: 800; font-size: .82rem;
}

/* Responsive Breakpoints */
@media (max-width: 1120px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  body.has-dock { padding-bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
  .mobile-dock { display: grid; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
  .hero-banner { padding: 24px 20px; flex-direction: column-reverse; text-align: center; gap: 18px; }
  .hero-perks, .hero-actions { justify-content: center; }
  .hero-mascot { width: 148px; height: 148px; border-radius: 24px; }
  .hero-mascot img { border-radius: 20px; }
  .hide-sm { display: none !important; }
  .vault-stats { grid-template-columns: 1fr; }
  .modal-bg { align-items: flex-end; padding: 0; }
  .modal {
    width: 100%; max-height: 88vh;
    border-radius: 26px 26px 0 0;
    padding: 22px 18px calc(24px + env(safe-area-inset-bottom, 0px));
  }
}
@media (max-width: 500px) {
  .grid { grid-template-columns: 1fr; }
  .nav-menu { gap: 5px; }
  .nav-pill { padding: 0 10px; font-size: .73rem; height: 33px; }
  .logo { font-size: 1.08rem; }
  .logo-avatar { width: 35px; height: 35px; }
}
