/* ============================================================
   ORDER GRABBING PLATFORM — Main Stylesheet v2
   Mobile-first | Professional Design System
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,700;1,800&display=swap');

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  /* Brand */
  --red:          #D40000;
  --red-dark:     #9B0000;
  --red-mid:      #B80000;
  --red-light:    #FFF0F0;
  --red-glow:     rgba(212,0,0,0.28);
  --red-gradient: linear-gradient(145deg, #E50000 0%, #D40000 40%, #9B0000 100%);
  --red-gradient-hover: linear-gradient(145deg, #C80000 0%, #B00000 40%, #7A0000 100%);

  /* Neutrals */
  --black:        #111111;
  --black-soft:   #1E1E1E;
  --white:        #FFFFFF;
  --grey-bg:      #F7F8FA;
  --grey-card:    #FDFDFD;
  --grey-text:    #9CA3AF;
  --grey-border:  #EAECF0;
  --grey-dark:    #4B5563;
  --grey-mid:     #6B7280;

  /* Status */
  --success:      #16A34A;
  --success-light:#DCFCE7;
  --warning:      #D97706;
  --warning-light:#FEF3C7;
  --info:         #2563EB;
  --info-light:   #EFF6FF;

  /* Layout */
  --nav-height:   68px;
  --font:         'Montserrat', sans-serif;

  /* Radii */
  --radius:       16px;
  --radius-sm:    10px;
  --radius-lg:    24px;
  --radius-xl:    32px;

  /* Shadows */
  --shadow-xs:  0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow:     0 4px 16px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
  --shadow-md:  0 8px 24px rgba(0,0,0,0.10), 0 2px 8px rgba(0,0,0,0.06);
  --shadow-lg:  0 16px 40px rgba(0,0,0,0.14), 0 4px 12px rgba(0,0,0,0.08);
  --shadow-red: 0 6px 24px var(--red-glow), 0 2px 8px rgba(212,0,0,0.20);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: #E8ECF0;
  color: var(--black);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
input, button, select, textarea { font-family: var(--font); }

/* ── App Container ─────────────────────────────────────────── */
.app-wrap {
  max-width: 480px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--grey-bg);
  position: relative;
  overflow-x: hidden;
  box-shadow: 0 0 60px rgba(0,0,0,0.20);
}

/* ── Page Content ──────────────────────────────────────────── */
.page-content {
  padding-bottom: calc(var(--nav-height) + env(safe-area-inset-bottom, 0px) + 16px);
  min-height: 100vh;
}

.page-content.auth-page { padding-bottom: 0; }

/* ── Headers ───────────────────────────────────────────────── */
.red-header {
  background: var(--red-gradient);
  padding: 20px 20px 28px;
  position: relative;
}

.red-header-rounded {
  background: var(--red-gradient);
  padding: 20px 20px 44px;
  border-radius: 0 0 32px 32px;
  position: relative;
}

.header-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--white);
}

.header-back,
.header-action {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.22);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: background 0.2s;
}
.header-back:hover, .header-action:hover {
  background: rgba(255,255,255,0.28);
}

.header-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* ── Bottom Navigation ─────────────────────────────────────── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: calc(var(--nav-height) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--white);
  border-top: 1px solid var(--grey-border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 999;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.08);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1;
  cursor: pointer;
  color: var(--grey-text);
  text-decoration: none;
  padding: 8px 0;
  transition: color 0.2s;
  position: relative;
}

.nav-item.active { color: var(--red); }

.nav-item.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 2.5px;
  background: var(--red);
  border-radius: 0 0 4px 4px;
}

.nav-item i { font-size: 1.15rem; }

.nav-item span {
  font-size: 0.60rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

/* FAB Center Button */
.nav-fab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1;
  cursor: pointer;
  text-decoration: none;
  margin-top: -22px;
}

.nav-fab-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--red-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-red);
  color: var(--white);
  font-size: 1.35rem;
  border: 3px solid var(--white);
  transition: transform 0.2s, box-shadow 0.2s;
}

.nav-fab-circle:active { transform: scale(0.94); }

.nav-fab span {
  font-size: 0.60rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--red);
  letter-spacing: 0.6px;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 52px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: all 0.2s cubic-bezier(0.34,1.56,0.64,1);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background 0.15s;
}
.btn:active::after { background: rgba(0,0,0,0.08); }
.btn:active { transform: scale(0.98); }

.btn-red {
  background: var(--red-gradient);
  color: var(--white);
  box-shadow: var(--shadow-red);
}
.btn-red:hover { background: var(--red-gradient-hover); box-shadow: 0 8px 28px var(--red-glow); }

.btn-black {
  background: linear-gradient(145deg, #2A2A2A 0%, #111111 100%);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
.btn-black:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.35); }

.btn-outline {
  background: var(--white);
  color: var(--black);
  border: 1.5px solid var(--grey-border);
  box-shadow: var(--shadow-xs);
}
.btn-outline:hover { border-color: var(--grey-dark); }

.btn-outline-red {
  background: transparent;
  color: var(--red);
  border: 1.5px solid var(--red);
}

.btn-sm {
  height: 40px;
  font-size: 0.75rem;
  width: auto;
  padding: 0 18px;
  border-radius: var(--radius-sm);
}

/* ── Cards ─────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  border: 1px solid rgba(0,0,0,0.04);
}

.card-dark {
  background: linear-gradient(145deg, #2A2A2A 0%, #111111 100%);
  border-radius: var(--radius);
  padding: 20px;
  color: var(--white);
}

.card-red {
  background: var(--red-gradient);
  border-radius: var(--radius);
  padding: 18px 20px;
  color: var(--white);
  box-shadow: var(--shadow-red);
}

.card-light-red {
  background: var(--red-light);
  border-radius: var(--radius);
  padding: 16px 18px;
  border: 1px solid rgba(212,0,0,0.08);
}

/* ── Inputs ────────────────────────────────────────────────── */
.input-group { margin-bottom: 16px; }

.input-label {
  font-size: 0.70rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--grey-dark);
  margin-bottom: 8px;
  display: block;
}

.input-wrap { position: relative; }

.input-wrap i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--grey-text);
  font-size: 1rem;
}

.form-input {
  width: 100%;
  height: 52px;
  background: var(--grey-bg);
  border: 1.5px solid var(--grey-border);
  border-radius: var(--radius-sm);
  padding: 0 16px 0 44px;
  font-size: 0.92rem;
  font-family: var(--font);
  color: var(--black);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.form-input:focus {
  border-color: var(--red);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(212,0,0,0.10);
}

.form-input.no-icon { padding: 0 16px; }

.form-input.dollar {
  padding-left: 36px;
  font-size: 1.1rem;
  font-weight: 700;
}

.input-dollar-prefix {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  font-weight: 800;
  color: var(--grey-text);
}

.input-eye {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: var(--grey-text);
  border: none;
  background: none;
  font-size: 1rem;
}

/* ── Badges / Pills ────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.badge-red    { background: var(--red); color: var(--white); }
.badge-red-outline { background: transparent; color: var(--red); border: 1.5px solid var(--red); }
.badge-white  { background: rgba(255,255,255,0.2); color: var(--white); border: 1px solid rgba(255,255,255,0.35); backdrop-filter: blur(4px); }
.badge-dark   { background: var(--black); color: var(--white); }
.badge-grey   { background: var(--grey-bg); color: var(--grey-mid); border: 1px solid var(--grey-border); }
.badge-green  { background: var(--success-light); color: #166534; }
.badge-warn   { background: var(--warning-light); color: #92400E; }

/* ── Tabs ──────────────────────────────────────────────────── */
.tabs {
  display: flex;
  border-bottom: 1px solid var(--grey-border);
  background: var(--white);
  padding: 0 20px;
}

.tab-item {
  flex: 1;
  text-align: center;
  padding: 14px 0;
  font-size: 0.70rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--grey-text);
  cursor: pointer;
  border-bottom: 2.5px solid transparent;
  transition: all 0.2s;
}

.tab-item.active {
  color: var(--red);
  border-bottom-color: var(--red);
}

/* ── Section Headers ───────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px 8px;
}

.section-header-icon {
  width: 30px;
  height: 30px;
  background: var(--red-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.section-header-title {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--black);
}

/* ── Order Journey Slider (Big Loot Cards) ──────────────────── */
#slots-journey {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 6px 20px 26px;
  scrollbar-width: none;
}
#slots-journey::-webkit-scrollbar { display: none; }

.loot-card {
  flex: 0 0 168px;
  height: 212px;
  border-radius: 22px;
  overflow: hidden;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform .2s, box-shadow .2s;
}

/* lid separator */
.loot-card::after {
  content: '';
  position: absolute;
  top: 46px; left: 0; right: 0;
  height: 1.5px;
  background: rgba(255,255,255,.18);
  pointer-events: none;
}

.lc-lid {
  padding: 12px 14px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.lc-num {
  font-size: .62rem;
  font-weight: 900;
  opacity: .75;
  letter-spacing: .5px;
}
.lc-badge {
  font-size: .48rem;
  font-weight: 900;
  letter-spacing: 1px;
  padding: 3px 7px;
  border-radius: 20px;
  text-transform: uppercase;
  background: rgba(255,255,255,.22);
}

.lc-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding-bottom: 14px;
}
.lc-icon      { font-size: 2.6rem; line-height: 1; }
.lc-status    { font-size: .76rem; font-weight: 900; letter-spacing: .8px; text-transform: uppercase; }
.lc-hint      { font-size: .62rem; font-weight: 600; opacity: .65; }

/* ── Done ── */
.loot-card.lc-done {
  background: linear-gradient(160deg, #166534 0%, #16a34a 60%, #4ade80 100%);
  border: 2px solid #4ade80;
  box-shadow: 0 8px 24px rgba(74,222,128,.28);
  color: #fff;
  cursor: pointer;
}
.loot-card.lc-done:active { transform: scale(.95); }

/* ── Next ── */
.loot-card.lc-next {
  flex: 0 0 184px;
  height: 228px;
  background: linear-gradient(160deg, #78350f 0%, #b45309 45%, #f59e0b 100%);
  border: 2px solid #fcd34d;
  box-shadow: 0 0 0 5px rgba(252,211,77,.18), 0 12px 32px rgba(180,83,9,.55);
  color: #fff;
  animation: card-shake 1.3s ease-in-out infinite;
  z-index: 2;
}

/* ── Frozen ── */
.loot-card.lc-frozen {
  background: var(--red-gradient);
  border: 2px solid var(--red);
  box-shadow: var(--shadow-red);
  color: #fff;
}

/* ── Locked ── */
.loot-card.lc-locked {
  background: var(--red-gradient);
  border: 2px solid var(--red-dark);
  color: #fff;
  filter: brightness(0.32) saturate(0.6);
}
.loot-card.lc-locked .lc-lid,
.loot-card.lc-locked .lc-body {
  filter: brightness(3.1);
}

@keyframes card-shake {
  0%, 100% { transform: rotate(0deg) translateY(0); }
  15%       { transform: rotate(-2.5deg) translateY(-3px); }
  30%       { transform: rotate(2.5deg) translateY(-3px); }
  45%       { transform: rotate(-1.5deg) translateY(-2px); }
  60%       { transform: rotate(1.5deg) translateY(-2px); }
  75%       { transform: rotate(0deg) translateY(0); }
}

@keyframes card-open {
  0%   { transform: scale(.5) rotateY(90deg); opacity: 0; }
  55%  { transform: scale(1.08) rotateY(-4deg); opacity: 1; }
  100% { transform: scale(1) rotateY(0deg); opacity: 1; }
}
.card-open-anim {
  animation: card-open .46s cubic-bezier(.34,1.56,.64,1) forwards;
}

/* ── Product Grid ──────────────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 12px 16px;
}

.product-thumb {
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  background: var(--grey-bg);
  border: 1px solid var(--grey-border);
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s;
}

/* ── Menu List ─────────────────────────────────────────────── */
.menu-list {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.04);
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--grey-border);
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
  color: var(--black);
}

.menu-item:last-child { border-bottom: none; }
.menu-item:active { background: var(--grey-bg); }

.menu-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--grey-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grey-dark);
  font-size: 1rem;
  flex-shrink: 0;
}

.menu-text { flex: 1; min-width: 0; }
.menu-title { font-size: 0.88rem; font-weight: 700; }
.menu-sub   { font-size: 0.72rem; color: var(--grey-text); margin-top: 2px; }
.menu-chevron { color: var(--grey-border); font-size: 0.78rem; flex-shrink: 0; }

/* ── Info Box ──────────────────────────────────────────────── */
.info-box {
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.info-box.red   { background: var(--red-light); color: var(--red); border: 1px solid rgba(212,0,0,0.12); }
.info-box.grey  { background: var(--grey-bg); color: var(--grey-dark); border: 1px solid var(--grey-border); }

.info-box i { font-size: 1rem; margin-top: 1px; flex-shrink: 0; }

.info-box-title {
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.info-box-text {
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.55;
}

.info-box ul { padding-left: 16px; }
.info-box li { margin-bottom: 3px; }

/* ── Modals / Overlays ─────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.60);
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  backdrop-filter: blur(2px);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-sheet {
  background: var(--white);
  border-radius: 28px 28px 0 0;
  width: 100%;
  max-width: 480px;
  max-height: 95vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.38s cubic-bezier(0.32,0.72,0,1);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.modal-overlay.active .modal-sheet {
  transform: translateY(0);
}

.modal-full {
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 1000;
  overflow-y: auto;
  display: none;
  max-width: 480px;
  left: 50%;
  transform: translateX(-50%);
}

.modal-full.active { display: block; }

/* ── Loading Spinner ───────────────────────────────────────── */
.spinner-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--grey-border);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Empty State ───────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 60px 30px;
}

.empty-icon {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--grey-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  position: relative;
}

.empty-icon i { font-size: 2.2rem; color: var(--grey-border); }

.empty-search {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.9rem;
}

.empty-title { font-size: 1.1rem; font-weight: 800; margin-bottom: 10px; }
.empty-text  { font-size: 0.85rem; color: var(--grey-text); line-height: 1.6; margin-bottom: 24px; }

/* ── Toast ─────────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  width: calc(100% - 32px);
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: var(--black-soft);
  color: var(--white);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 0.84rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideDown 0.3s ease, fadeOut 0.3s ease 2.7s forwards;
  box-shadow: var(--shadow-md);
}

.toast.success { background: linear-gradient(135deg, #166534 0%, #15803D 100%); }
.toast.error   { background: var(--red-gradient); }
.toast.warning { background: linear-gradient(135deg, #92400E 0%, #B45309 100%); }

@keyframes slideDown { from { opacity:0; transform:translateY(-16px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeOut   { from { opacity:1; } to { opacity:0; pointer-events:none; } }

/* ── Upload Area ───────────────────────────────────────────── */
.upload-area {
  border: 2px dashed var(--grey-border);
  border-radius: var(--radius);
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  background: var(--grey-bg);
}

.upload-area:hover { border-color: var(--red); background: var(--red-light); }
.upload-area.has-file { border-color: var(--success); background: var(--success-light); }
.upload-area i { font-size: 2rem; color: var(--grey-text); margin-bottom: 8px; }
.upload-area p { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--grey-text); }

.upload-preview {
  width: 100%;
  max-height: 180px;
  object-fit: contain;
  border-radius: 8px;
  margin-top: 10px;
}

/* ── QR Code Box ───────────────────────────────────────────── */
.qr-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--grey-border);
}

.qr-box img {
  width: 180px;
  height: 180px;
  margin: 0 auto 12px;
  border: 1px solid var(--grey-border);
  border-radius: 8px;
  padding: 8px;
}

.wallet-address-box {
  background: var(--grey-bg);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  border: 1px solid var(--grey-border);
}

.wallet-address-text {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--grey-dark);
  word-break: break-all;
  flex: 1;
}

.copy-btn {
  background: var(--red-gradient);
  color: var(--white);
  border: none;
  border-radius: 6px;
  padding: 7px 14px;
  font-size: 0.70rem;
  font-weight: 800;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 2px 8px var(--red-glow);
}

/* ── Stats Row ─────────────────────────────────────────────── */
.stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 14px 16px;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.04);
}

.stat-label {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--grey-text);
  margin-bottom: 8px;
}

.stat-value {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--black);
  display: flex;
  align-items: center;
  gap: 6px;
}

.stat-value.red { color: var(--red); }
.stat-value i { font-size: 1rem; }

/* ── Order Card ────────────────────────────────────────────── */
.order-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--grey-border);
  background: var(--white);
  transition: background 0.15s;
}
.order-card:active { background: var(--grey-bg); }

.order-img {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--grey-bg);
  flex-shrink: 0;
  border: 1px solid var(--grey-border);
}

.order-info { flex: 1; min-width: 0; }
.order-name { font-size: 0.80rem; font-weight: 700; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order-price { font-size: 0.72rem; color: var(--grey-text); font-weight: 500; }
.order-right { text-align: right; flex-shrink: 0; }
.order-commission { font-size: 0.88rem; font-weight: 900; color: var(--success); }
.order-date { font-size: 0.65rem; color: var(--grey-text); margin-top: 4px; }

/* ── Two-Column Row ────────────────────────────────────────── */
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ── Price/Commission Cards ────────────────────────────────── */
.price-card {
  background: var(--grey-bg);
  border-radius: var(--radius-sm);
  padding: 16px 14px;
  text-align: center;
  border: 1px solid var(--grey-border);
}

.price-card-label {
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--grey-text);
  margin-bottom: 8px;
}

.price-card-value { font-size: 1.15rem; font-weight: 900; }

.commission-card {
  background: linear-gradient(135deg, #FFF0F0 0%, #FFE5E5 100%);
  border-radius: var(--radius-sm);
  padding: 16px 14px;
  text-align: center;
  border: 1px solid rgba(212,0,0,0.12);
}

.commission-card-label {
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-bottom: 8px;
}

.commission-card-value { font-size: 1.15rem; font-weight: 900; color: var(--red); }

/* ── Balance Summary ───────────────────────────────────────── */
.balance-summary {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  font-size: 0.82rem;
}

.balance-summary-label { color: var(--grey-text); font-weight: 500; }
.balance-summary-value { font-weight: 700; }
.balance-summary-value.red { color: var(--red); }

/* ── Step Number ───────────────────────────────────────────── */
.step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--red-gradient);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.step-label { font-size: 0.88rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }

/* ── Profile Header ────────────────────────────────────────── */
.profile-header {
  background: var(--red-gradient);
  padding: 32px 20px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.profile-header::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}

.profile-header::after {
  content: '';
  position: absolute;
  bottom: -30px; left: -30px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}

.avatar-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 14px;
}

.avatar {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(255,255,255,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.8);
  font-size: 2rem;
  overflow: hidden;
}

.avatar img { width: 100%; height: 100%; object-fit: cover; }

.avatar-cam {
  position: absolute;
  bottom: -6px; right: -6px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  font-size: 0.72rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.profile-name {
  font-size: 1.3rem;
  font-weight: 900;
  font-style: italic;
  color: var(--white);
  margin-bottom: 4px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.profile-id {
  font-size: 0.70rem;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.invite-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.30);
  border-radius: 999px;
  padding: 7px 16px;
  color: var(--white);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
}

/* ── Assets Card (Mine) ────────────────────────────────────── */
.assets-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0,0,0,0.04);
}

.assets-info {}
.assets-label { font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.8px; color: var(--grey-text); margin-bottom: 6px; }
.assets-value { font-size: 1.7rem; font-weight: 900; color: var(--black); letter-spacing: -0.5px; }

.assets-add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--red-gradient);
  color: var(--white);
  font-size: 1.4rem;
  font-weight: 300;
  text-decoration: none;
  box-shadow: 0 3px 10px var(--red-glow);
  flex-shrink: 0;
  transition: transform 0.2s, box-shadow 0.2s;
}
.assets-add-btn:active { transform: scale(0.92); }

/* ── Mine Stats ────────────────────────────────────────────── */
.mine-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.mine-stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.04);
}

.mine-stat-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.mine-stat-icon.green { background: var(--success-light); color: var(--success); }
.mine-stat-icon.blue  { background: var(--info-light); color: var(--info); }
.mine-stat-icon.red   { background: var(--red-light); color: var(--red); }

.mine-stat-label { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--grey-text); margin-bottom: 6px; }
.mine-stat-value { font-size: 1.1rem; font-weight: 900; color: var(--black); }

/* ── Invite Link Box ───────────────────────────────────────── */
.invite-link-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--grey-bg);
  border: 1.5px solid var(--grey-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.invite-link-text {
  flex: 1;
  font-size: 0.72rem;
  color: var(--grey-dark);
  font-weight: 600;
  word-break: break-all;
}

.invite-link-copy {
  background: var(--red-gradient);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 0.82rem;
  box-shadow: 0 2px 8px var(--red-glow);
  transition: transform 0.2s;
  flex-shrink: 0;
}
.invite-link-copy:active { transform: scale(0.94); }

/* ── Support Card ──────────────────────────────────────────── */
.support-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-md);
  text-decoration: none;
  color: var(--black);
  border: 1px solid rgba(0,0,0,0.04);
}

.support-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #0088CC;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.4rem;
  flex-shrink: 0;
}

.support-text { flex: 1; }
.support-title { font-size: 0.95rem; font-weight: 800; margin-bottom: 3px; }
.support-sub   { font-size: 0.75rem; color: var(--grey-text); }
.support-handle { font-size: 0.78rem; font-weight: 800; color: var(--red); margin-top: 4px; }

/* ── FAQ Accordion ─────────────────────────────────────────── */
.faq-item { border-bottom: 1px solid var(--grey-border); overflow: hidden; }

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 700;
  transition: background 0.15s;
  user-select: none;
}

.faq-question:active { background: var(--grey-bg); }
.faq-question > i { color: var(--grey-text); transition: transform 0.25s ease; flex-shrink: 0; font-size: 0.85rem; }
.faq-item.open .faq-question > i { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding-bottom 0.3s ease;
  padding: 0 20px;
  padding-bottom: 0;
  font-size: 0.82rem;
  color: var(--grey-dark);
  line-height: 1.65;
}

/* ── Ledger Transaction Row ────────────────────────────────── */
.tx-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--grey-border);
  transition: background 0.15s;
}
.tx-item:active { background: var(--grey-bg); }

.tx-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.tx-icon.deposit    { background: var(--success-light); color: #166534; }
.tx-icon.withdrawal { background: var(--red-light); color: var(--red); }
.tx-icon.commission { background: var(--warning-light); color: #92400E; }
.tx-icon.admin      { background: var(--info-light); color: #1D4ED8; }

.tx-info { flex: 1; min-width: 0; }
.tx-title { font-size: 0.82rem; font-weight: 700; }
.tx-date  { font-size: 0.68rem; color: var(--grey-text); margin-top: 2px; }

.tx-amount { font-size: 0.92rem; font-weight: 900; text-align: right; }
.tx-amount.plus  { color: var(--success); }
.tx-amount.minus { color: var(--red); }

/* ── Combination Order Modal ───────────────────────────────── */
.combo-header {
  background: var(--red-gradient);
  padding: 32px 24px 26px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.combo-header::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 150px; height: 150px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}

.combo-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  border: 2px solid rgba(255,255,255,0.25);
}

.combo-icon-wrap i { font-size: 2rem; color: rgba(255,255,255,0.85); }

.combo-title {
  font-size: 1.65rem;
  font-weight: 900;
  font-style: italic;
  color: var(--white);
  text-transform: uppercase;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.combo-subtitle {
  font-size: 0.70rem;
  font-weight: 800;
  letter-spacing: 1.8px;
  color: rgba(255,255,255,0.8);
  text-transform: uppercase;
  margin-top: 8px;
}

.combo-event-badge {
  position: absolute;
  top: 20px; right: 20px;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.35);
  backdrop-filter: blur(4px);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 5px;
}

.combo-unlock-box {
  background: var(--red-light);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
  margin: 16px 0;
  border: 1px solid rgba(212,0,0,0.10);
}

.combo-unlock-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}

.combo-unlock-amount {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.combo-prices-row {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-top: 1px solid var(--grey-border);
  margin-top: 8px;
}

.combo-price-item { text-align: center; flex: 1; }
.combo-price-label { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--grey-text); font-weight: 800; margin-bottom: 6px; }
.combo-price-value { font-size: 1.1rem; font-weight: 900; }

.combo-warning {
  font-size: 0.70rem;
  color: var(--grey-text);
  font-style: italic;
  text-align: center;
  margin: 12px 0;
  line-height: 1.55;
}

/* ── Order Match Modal ─────────────────────────────────────── */
.order-product-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--grey-bg);
}

.order-platform-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(4px);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--black);
  box-shadow: var(--shadow-xs);
}

.order-product-name {
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.45;
  margin: 14px 0 16px;
  text-align: center;
  color: var(--black);
}

.match-badge {
  position: absolute;
  top: -1px; right: 20px;
  background: var(--red-gradient);
  color: var(--white);
  border-radius: 0 0 10px 10px;
  padding: 6px 14px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 4px 12px var(--red-glow);
}

.encrypted-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.68rem;
  color: var(--grey-text);
  font-weight: 700;
  margin: 14px 0;
  letter-spacing: 0.5px;
}

/* ── Home Quick Actions ────────────────────────────────────── */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 18px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.04);
}

.quick-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
  color: var(--black);
  transition: transform 0.2s;
}
.quick-action:active { transform: scale(0.92); }

.quick-action-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.qa-vault   { background: #EFF6FF; color: #1D4ED8; }
.qa-orders  { background: #FEF3C7; color: #B45309; }
.qa-ledger  { background: #F3E8FF; color: #7C3AED; }
.qa-support { background: var(--success-light); color: #166534; }
.qa-invite  { background: #FFF7ED; color: #C2410C; }

.quick-action span {
  font-size: 0.60rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--grey-dark);
}

/* ── Home Header ───────────────────────────────────────────── */
.home-header {
  background: var(--red-gradient);
  padding: 20px 20px 72px;
  position: relative;
  overflow: hidden;
}

.home-header::before {
  content: '';
  position: absolute;
  top: -50px; right: -50px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}

.home-header::after {
  content: '';
  position: absolute;
  bottom: 10px; left: -60px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: rgba(0,0,0,0.06);
}

.home-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.home-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.home-avatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255,255,255,0.22);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(255,255,255,0.30);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--white);
  flex-shrink: 0;
}

.home-auth-label {
  font-size: 0.60rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.70);
  margin-bottom: 2px;
}

.home-username {
  font-size: 0.92rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: 0.5px;
}

.home-history-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.22);
  color: var(--white);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.home-history-btn:active { background: rgba(255,255,255,0.30); }

.home-welcome-text {
  font-size: 1.6rem;
  font-weight: 900;
  font-style: italic;
  color: var(--white);
  text-shadow: 0 2px 8px rgba(0,0,0,0.15);
  position: relative;
  z-index: 1;
}

/* ── Home Content (overlaps header) ───────────────────────── */
.home-content {
  padding: 0 16px 16px;
  margin-top: -44px;
  position: relative;
}

/* ── Banner Card ───────────────────────────────────────────── */
.banner-card {
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 4px;
  box-shadow: var(--shadow);
}

/* ── Grab START Button ─────────────────────────────────────── */
.start-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: calc(100% - 32px);
  margin: 0 16px;
  padding: 0 20px;
  height: 60px;
  background: var(--red-gradient);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  box-shadow: var(--shadow-red);
  transition: all 0.2s cubic-bezier(0.34,1.56,0.64,1);
  position: relative;
  overflow: hidden;
}

.start-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s ease;
}

.start-btn:not(:disabled):hover::before { left: 150%; }
.start-btn:not(:disabled):active { transform: scale(0.98); box-shadow: 0 2px 10px var(--red-glow); }

.start-btn-left {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.task-counter-badge {
  background: rgba(255,255,255,0.22);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.30);
  color: var(--white);
  font-size: 0.80rem;
  font-weight: 900;
  padding: 5px 12px;
  border-radius: 999px;
  letter-spacing: 0.5px;
}

.matching-engine-text {
  text-align: center;
  padding: 12px 20px 8px;
}

.matching-engine-text h3 {
  font-size: 0.80rem;
  font-weight: 800;
  color: var(--black);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 3px;
}

.matching-engine-text p {
  font-size: 0.70rem;
  color: var(--grey-text);
  font-weight: 500;
}

/* ── Order Progress Slots ──────────────────────────────────── */
.slots-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.slot-item {
  aspect-ratio: 1;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  transition: background 0.2s, color 0.2s;
}

.slot-done    { background: var(--success-light); color: var(--success); border: 1.5px solid #bbf7d0; }
.slot-current { background: var(--red-gradient); color: #fff; border: 1.5px solid var(--red); animation: slot-pulse 1.8s ease-in-out infinite; }
.slot-frozen  { background: var(--info-light); color: var(--info); border: 1.5px solid #bfdbfe; }
.slot-pending { background: var(--grey-bg); color: var(--grey-text); border: 1.5px solid var(--grey-border); }

@keyframes slot-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212,0,0,.35); }
  50%       { box-shadow: 0 0 0 5px rgba(212,0,0,.0); }
}

/* ── Utility Classes ───────────────────────────────────────── */
.mb-16  { margin-bottom: 16px; }
.mt-16  { margin-top: 16px; }
.mt-8   { margin-top: 8px; }
.text-xs  { font-size: 0.72rem; }
.text-grey { color: var(--grey-text); }
.fw-700   { font-weight: 700; }
.page-pad { padding: 16px; }

/* ── Scroll ────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--grey-border); border-radius: 4px; }

/* ── Auth Pages ────────────────────────────────────────────── */
.auth-page-wrap {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 0 24px 32px;
}

.auth-logo-section {
  text-align: center;
  padding: 48px 0 24px;
}

.auth-app-icon {
  width: 80px;
  height: 80px;
  border-radius: 22px;
  background: var(--red-light);
  border: 2px solid rgba(212,0,0,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  overflow: hidden;
}

.auth-app-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.auth-heading {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--black);
  margin: 12px 0 6px;
  letter-spacing: -0.5px;
}

.auth-subtext {
  font-size: 0.82rem;
  color: var(--grey-text);
  font-weight: 500;
  line-height: 1.55;
}

.auth-form-section {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.forgot-link {
  display: block;
  text-align: right;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--red);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: -4px 0 20px;
}

.auth-footer {
  text-align: center;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--grey-border);
}

.auth-footer p {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--grey-text);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}

.auth-footer a {
  font-size: 0.82rem;
  font-weight: 900;
  color: var(--red);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── Deposit Method Card ───────────────────────────────────── */
.deposit-method-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--red-gradient);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-red);
  position: relative;
  overflow: hidden;
}

.deposit-method-card::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
}

.deposit-method-info {}
.deposit-method-label { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,0.70); margin-bottom: 4px; }
.deposit-method-name  { font-size: 1rem; font-weight: 900; color: var(--white); letter-spacing: 0.5px; }

.deposit-method-icon {
  font-size: 2.2rem;
  color: rgba(255,255,255,0.25);
  position: relative;
  z-index: 1;
}

/* ── Withdraw Balance Card ─────────────────────────────────── */
.withdraw-balance-card {
  background: linear-gradient(145deg, #1E1E1E 0%, #111111 100%);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  position: relative;
  overflow: hidden;
}

.withdraw-balance-card::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
}

.balance-left {}
.balance-label  { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,0.50); margin-bottom: 6px; }
.balance-amount { font-size: 1.7rem; font-weight: 900; color: var(--white); letter-spacing: -0.5px; margin-bottom: 10px; }

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.60rem;
  font-weight: 800;
  color: rgba(255,255,255,0.70);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.frozen-badge {
  text-align: center;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  padding: 12px 16px;
}

.frozen-badge-label { font-size: 0.60rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: rgba(255,255,255,0.50); margin-bottom: 4px; }
.frozen-badge-amount { font-size: 1rem; font-weight: 900; color: #93C5FD; }

/* ── mb-12 utility ─────────────────────────────────────────── */
.mb-12 { margin-bottom: 12px; }

/* ── Responsive (desktop) ──────────────────────────────────── */
@media (min-width: 520px) {
  .app-wrap { border-left: 1px solid var(--grey-border); border-right: 1px solid var(--grey-border); }
}

/* ════════════════════════════════════════════════════════
   PARCEL DELIVERY CARD STYLE
   ════════════════════════════════════════════════════════ */

.pc-card {
  flex: 0 0 162px;
  height: 206px;
  border-radius: 18px;
  scroll-snap-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: #fff;
  user-select: none;
  transition: transform .15s;
}

.pc-card.pc-next {
  flex: 0 0 180px;
  height: 224px;
  animation: parcel-shake 1.4s ease-in-out infinite;
  box-shadow: 0 0 0 4px rgba(204,0,0,.25), 0 12px 32px rgba(0,0,0,.5);
  z-index: 2;
}

.pc-card.pc-locked,
.pc-card.pc-next {
  background: linear-gradient(145deg,#7A4F2D 0%,#9E6535 35%,#7A4F2D 65%,#8C5A33 100%);
}

.pc-card.pc-locked {
  filter: brightness(0.28) saturate(0.5);
}

.pc-card.pc-done {
  background: linear-gradient(155deg,#14532d 0%,#16a34a 55%,#4ade80 100%);
  cursor: pointer;
  animation: parcel-open .55s cubic-bezier(.34,1.56,.64,1);
}

.pc-card.pc-frozen {
  background: var(--red-gradient);
  box-shadow: 0 4px 16px rgba(204,0,0,.4);
}

.pc-card.pc-locked::after,
.pc-card.pc-next::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg,transparent 0px,transparent 7px,rgba(0,0,0,.05) 7px,rgba(0,0,0,.05) 8px);
  pointer-events: none;
}

.pc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px 5px;
  position: relative;
  z-index: 1;
}

.pc-num { font-size:.62rem; font-weight:900; letter-spacing:.5px; opacity:.8; }

.pc-badge {
  font-size: .5rem;
  font-weight: 900;
  background: rgba(255,255,255,.22);
  border-radius: 4px;
  padding: 2px 6px;
  letter-spacing: .8px;
}

.pc-tape {
  height: 18px;
  background: rgba(255,228,120,.38);
  border-top: 1px solid rgba(255,215,70,.22);
  border-bottom: 1px solid rgba(255,215,70,.22);
  position: relative;
  z-index: 1;
  background-image: repeating-linear-gradient(90deg,transparent,transparent 18px,rgba(255,255,255,.04) 18px,rgba(255,255,255,.04) 19px);
}

.pc-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  position: relative;
  z-index: 1;
}

.pc-icon { font-size:2.2rem; line-height:1; }
.pc-card.pc-next .pc-icon { font-size:2.5rem; }

.pc-status { font-size:.74rem; font-weight:800; text-align:center; line-height:1.35; }
.pc-hint   { font-size:.6rem;  opacity:.78;    font-weight:600; text-align:center; }

.pc-barcode {
  height: 20px;
  position: relative;
  z-index: 1;
  background: repeating-linear-gradient(
    90deg,
    rgba(0,0,0,.6) 0px,  rgba(0,0,0,.6) 2px,
    transparent 2px,     transparent 4px,
    rgba(0,0,0,.45) 4px, rgba(0,0,0,.45) 5px,
    transparent 5px,     transparent 8px,
    rgba(0,0,0,.55) 8px, rgba(0,0,0,.55) 9px,
    transparent 9px,     transparent 12px,
    rgba(0,0,0,.5) 12px, rgba(0,0,0,.5) 14px,
    transparent 14px,    transparent 16px
  );
  opacity: .45;
}

@keyframes parcel-shake {
  0%,100% { transform: rotate(0deg) translateY(0); }
  8%  { transform: rotate(-2.5deg) translateY(-2px); }
  16% { transform: rotate( 2.5deg) translateY(-1px); }
  24% { transform: rotate(-1.8deg) translateY(-2px); }
  32% { transform: rotate( 1.8deg) translateY(-1px); }
  40% { transform: rotate(0deg) translateY(0); }
}

@keyframes parcel-open {
  0%   { transform: scale(.75) rotateX(20deg); opacity:0; }
  55%  { transform: scale(1.06) rotateX(-2deg); opacity:1; }
  100% { transform: scale(1) rotateX(0deg); opacity:1; }
}

/* ════════════════════════════════════════════════════════
   SCRATCH & WIN CARD STYLE
   ════════════════════════════════════════════════════════ */

.sc-card {
  flex: 0 0 162px;
  height: 206px;
  border-radius: 14px;
  scroll-snap-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  user-select: none;
  border: 2px dashed rgba(255,255,255,.12);
  background: #1a1a1a;
}

.sc-card.sc-next {
  flex: 0 0 180px;
  height: 224px;
  border: 2px solid var(--red);
  animation: sc-glow-pulse 1.8s ease-in-out infinite;
  z-index: 2;
}

.sc-card.sc-locked {
  background: #111;
  filter: brightness(0.35);
}

.sc-card.sc-done {
  border: 2px solid #16a34a;
  background: #0a150a;
  animation: sc-pop .5s cubic-bezier(.34,1.56,.64,1);
  cursor: pointer;
}

.sc-card.sc-frozen {
  border: 2px solid var(--red);
  background: #1a0000;
}

.sc-head {
  background: var(--red-gradient);
  padding: 7px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.sc-card.sc-done   .sc-head { background: linear-gradient(90deg,#166534,#16a34a); }
.sc-card.sc-locked .sc-head { background: linear-gradient(90deg,#2a2a2a,#383838); }

.sc-num { font-size:.6rem; font-weight:900; color:#fff; letter-spacing:.5px; }

.sc-badge-next, .sc-badge-done {
  font-size: .5rem;
  font-weight: 900;
  background: rgba(255,255,255,.25);
  color: #fff;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: .8px;
}

.sc-badge-done { animation: sc-blink 1s step-end 4; }

.sc-body {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.sc-silver {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,#b8b8b8 0%,#d8d8d8 20%,#a0a0a0 40%,#cccccc 60%,#b0b0b0 80%,#d0d0d0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sc-silver.sc-shimmer {
  background: linear-gradient(135deg,#c8c8c8 0%,#f0f0f0 25%,#b0b0b0 50%,#e8e8e8 75%,#c0c0c0 100%);
  background-size: 300% 300%;
  animation: sc-shimmer-anim 2s linear infinite;
}

.sc-silver-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  text-align: center;
}

.sc-scratch-text {
  font-size: .66rem;
  font-weight: 900;
  color: #777;
  letter-spacing: .4px;
  line-height: 1.55;
  text-transform: uppercase;
}

.sc-revealed {
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg,#0a1a0a,#0d2b0d);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sc-wipe-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,#c8c8c8,#e0e0e0);
  animation: sc-wipe-anim .65s ease-out forwards;
  pointer-events: none;
  z-index: 2;
}

.sc-prize {
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 8px;
}

.sc-star {
  font-size: 1.5rem;
  color: #fbbf24;
  display: block;
  margin-bottom: 5px;
  animation: sc-spin-star .6s ease-out .55s both;
}

.sc-prize-amount {
  font-size: 1.25rem;
  font-weight: 900;
  color: #4ade80;
  line-height: 1;
}

.sc-prize-label {
  font-size: .58rem;
  font-weight: 800;
  color: #4ade80;
  letter-spacing: 1px;
  margin-top: 4px;
  text-transform: uppercase;
}

.sc-foot {
  background: rgba(0,0,0,.3);
  padding: 5px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.sc-ticket {
  font-size: .56rem;
  font-weight: 800;
  color: rgba(255,255,255,.45);
  letter-spacing: .5px;
  text-transform: uppercase;
}

.sc-card.sc-done .sc-ticket  { color: #4ade80; }
.sc-card.sc-next .sc-ticket  { color: var(--red); }

.sc-tdots { display:flex; gap:3px; }

.sc-tdot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--red);
  animation: sc-dot-blink 1s ease-in-out infinite;
}

.sc-tdot:nth-child(2) { animation-delay:.22s; }
.sc-tdot:nth-child(3) { animation-delay:.44s; }

@keyframes sc-shimmer-anim {
  0%   { background-position: 150% 0; }
  100% { background-position: -150% 0; }
}

@keyframes sc-glow-pulse {
  0%,100% { box-shadow: 0 0 10px rgba(204,0,0,.35), 0 0 0 3px rgba(204,0,0,.15); }
  50%      { box-shadow: 0 0 30px rgba(204,0,0,.7),  0 0 0 5px rgba(204,0,0,.3); }
}

@keyframes sc-wipe-anim {
  0%   { clip-path: inset(0 0% 0 0); }
  100% { clip-path: inset(0 100% 0 0); }
}

@keyframes sc-pop {
  0%   { transform: scale(.82) rotate(-1.5deg); opacity:0; }
  60%  { transform: scale(1.05) rotate(.5deg); opacity:1; }
  100% { transform: scale(1) rotate(0deg); }
}

@keyframes sc-spin-star {
  0%   { transform: scale(0) rotate(-180deg); opacity:0; }
  100% { transform: scale(1) rotate(0); opacity:1; }
}

@keyframes sc-dot-blink {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.25; transform:scale(.7); }
}

@keyframes sc-blink {
  0%,100% { opacity:1; }
  50%      { opacity:.3; }
}
