/* ============================================================
   DROPVAULT.MARKET — PREMIUM CS2 MARKETPLACE
   Dark Navy + Amber Gold Design System
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700;800&family=Space+Mono:wght@400;700&display=swap');

:root {
  --navy-950: #04060f;
  --navy-900: #070b16;
  --navy-800: #0c1221;
  --navy-700: #111a2e;
  --navy-600: #172140;
  --navy-500: #1d2a52;

  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;

  --blue-400: #60a5fa;
  --blue-500: #3b82f6;
  --green-400: #34d399;
  --red-400:   #f87171;
  --pink-400:  #f472b6;

  --rarity-covert:        #eb4b4b;
  --rarity-classified:    #d32ce6;
  --rarity-restricted:    #8847ff;
  --rarity-milspec:       #4b69ff;
  --rarity-extraordinary: #ffd700;
  --rarity-common:        #b0b0b0;

  --text-100: #f1f5f9;
  --text-300: #94a3b8;
  --text-500: #64748b;

  --border:      rgba(255,255,255,0.07);
  --border-gold: rgba(251,191,36,0.4);

  --font-body: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'Space Mono', monospace;

  --r-sm:   8px;
  --r-md:   14px;
  --r-lg:   20px;
  --r-xl:   28px;
  --r-full: 9999px;

  --sidebar-w: 260px;
  --header-h:  64px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,.4);
  --shadow-md: 0 8px 24px rgba(0,0,0,.5);
  --shadow-lg: 0 16px 40px rgba(0,0,0,.65);
  --glow-amber: 0 0 20px rgba(251,191,36,.25);
  --glow-blue:  0 0 20px rgba(59,130,246,.25);
}

*,*::before,*::after { margin:0; padding:0; box-sizing:border-box; }

html { font-family: var(--font-body); font-size: 16px; }

body {
  background: var(--navy-950);
  color: var(--text-100);
  min-height: 100vh;
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(251,191,36,.07) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(59,130,246,.07) 0%, transparent 50%);
}

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--navy-900); }
::-webkit-scrollbar-thumb { background: var(--navy-600); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--amber-600); }

/* -------- LIVE ACTIVITY TICKER BAR -------- */
.live-ticker-bar {
  background: #03050a;
  border-bottom: 1px solid var(--border);
  height: 38px;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
  z-index: 45;
  user-select: none;
}

.ticker-label {
  background: linear-gradient(135deg, var(--amber-500), var(--amber-600));
  color: #000;
  font-size: .7rem;
  font-weight: 800;
  padding: 0 1rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: .4rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  flex-shrink: 0;
  z-index: 2;
  box-shadow: 4px 0 12px rgba(0,0,0,.5);
}

.ticker-track-wrap {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-track {
  display: inline-flex;
  gap: 1.5rem;
  animation: tickerScroll 45s linear infinite;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .78rem;
  color: var(--text-300);
  background: rgba(255,255,255,0.03);
  padding: .2rem .75rem;
  border-radius: var(--r-full);
  border: 1px solid var(--border);
}

.ticker-item img {
  width: 22px;
  height: 18px;
  object-fit: contain;
}

.ticker-item .t-user { font-weight: 700; color: var(--text-100); }
.ticker-item .t-price { color: var(--amber-400); font-family: var(--font-mono); font-weight: 700; }

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* -------- LAYOUT -------- */
.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  grid-template-rows: auto 1fr;
  min-height: 100vh;
}

/* -------- SIDEBAR -------- */
.sidebar {
  grid-row: 1 / -1;
  width: var(--sidebar-w);
  position: fixed;
  top: 0; left: 0; bottom: 0;
  background: var(--navy-900);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  z-index: 50;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1.5rem 1.25rem 1.25rem;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  cursor: pointer;
}

.logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--amber-500), var(--amber-400));
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .95rem; color: #000;
  box-shadow: var(--glow-amber);
  flex-shrink: 0;
}

.logo-text { font-weight: 800; font-size: 1.2rem; letter-spacing: -.5px; }
.logo-text span { color: var(--amber-500); }

.sidebar-section-label {
  padding: 1rem 1.25rem .4rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-500);
}

.sidebar-nav { padding: .25rem .75rem; display: flex; flex-direction: column; gap: .15rem; }

.nav-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .65rem .85rem;
  border-radius: var(--r-sm);
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-300);
  cursor: pointer;
  transition: all .2s ease;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
}

.nav-item:hover { background: var(--navy-700); color: var(--text-100); }
.nav-item.active { background: rgba(251,191,36,.12); color: var(--amber-400); }
.nav-item.active svg { color: var(--amber-500); }

.nav-item-count {
  margin-left: auto;
  background: var(--navy-700);
  color: var(--text-500);
  font-size: .72rem;
  font-weight: 700;
  padding: .1rem .4rem;
  border-radius: var(--r-full);
  font-family: var(--font-mono);
}

.nav-divider { height: 1px; background: var(--border); margin: .75rem 1.25rem; }

/* Sidebar Price Filter */
.sidebar-price-filter { padding: .5rem 1.25rem 1rem; }
.price-range-inputs { display: flex; gap: .5rem; align-items: center; }
.price-input {
  flex: 1;
  background: var(--navy-800);
  border: 1px solid var(--border);
  color: var(--text-100);
  padding: .45rem .6rem;
  border-radius: var(--r-sm);
  font-size: .85rem;
  font-family: var(--font-mono);
  font-weight: 700;
  width: 100%;
}
.price-input:focus { outline: none; border-color: var(--amber-500); }
.price-range-sep { color: var(--text-500); font-size: .8rem; }

/* Wear Filter (sidebar) */
.wear-filter-list { padding: .25rem 1.25rem 1rem; display: flex; flex-direction: column; gap: .2rem; }
.wear-chip {
  display: flex; align-items: center; justify-content: space-between;
  padding: .5rem .75rem;
  border-radius: var(--r-sm);
  font-size: .85rem; font-weight: 600;
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-300);
  transition: all .2s ease;
}
.wear-chip:hover { background: var(--navy-700); color: var(--text-100); border-color: var(--amber-500); }
.wear-chip.active { background: rgba(251,191,36,.12); color: var(--amber-400); border-color: var(--border-gold); }

/* Sidebar bottom actions */
.sidebar-bottom {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding: 1rem .75rem;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

/* -------- MAIN CONTENT -------- */
.main-content {
  grid-column: 2;
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* -------- TOP HEADER -------- */
.top-header {
  position: sticky;
  top: 0;
  height: var(--header-h);
  background: rgba(7,11,22,.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 1.75rem;
}

.search-wrap {
  flex: 1;
  max-width: 480px;
  position: relative;
}

.search-wrap svg {
  position: absolute; left: .85rem; top: 50%;
  transform: translateY(-50%);
  color: var(--text-500); width: 18px; height: 18px;
  pointer-events: none;
}

.search-input {
  width: 100%;
  background: var(--navy-800);
  border: 1px solid var(--border);
  padding: .6rem 1rem .6rem 2.5rem;
  border-radius: var(--r-full);
  color: var(--text-100);
  font-size: .9rem;
  font-family: var(--font-body);
  transition: border-color .2s;
}
.search-input::placeholder { color: var(--text-500); }
.search-input:focus { outline: none; border-color: var(--amber-500); }

.sort-select {
  background: var(--navy-800);
  border: 1px solid var(--border);
  color: var(--text-100);
  padding: .6rem 1rem;
  border-radius: var(--r-sm);
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
}

.header-divider { width: 1px; height: 28px; background: var(--border); margin: 0 .25rem; }

.listing-count {
  font-size: .88rem;
  font-weight: 700;
  color: var(--text-500);
  white-space: nowrap;
  font-family: var(--font-mono);
}
.listing-count span { color: var(--amber-400); }

.header-spacer { flex: 1; }

.btn-primary {
  background: linear-gradient(135deg, var(--amber-500), var(--amber-400));
  color: #000;
  border: none;
  padding: .6rem 1.2rem;
  border-radius: var(--r-sm);
  font-weight: 700; font-size: .9rem;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: .5rem;
  transition: all .2s;
  box-shadow: var(--glow-amber);
  white-space: nowrap;
}
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.1); box-shadow: 0 0 30px rgba(251,191,36,.4); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: var(--navy-800);
  color: var(--text-100);
  border: 1px solid var(--border);
  padding: .6rem 1.1rem;
  border-radius: var(--r-sm);
  font-weight: 600; font-size: .88rem;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: .5rem;
  transition: all .2s;
  white-space: nowrap;
}
.btn-secondary:hover { background: var(--navy-700); border-color: var(--amber-500); }

/* User Menu */
.user-dropdown-container { position: relative; }
.user-trigger {
  display: flex; align-items: center; gap: .65rem;
  background: var(--navy-800);
  border: 1px solid var(--border);
  padding: .3rem .9rem .3rem .35rem;
  border-radius: var(--r-full);
  cursor: pointer;
  transition: all .2s;
}
.user-trigger:hover { border-color: var(--amber-500); box-shadow: var(--glow-amber); }
.user-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber-500), var(--blue-400));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .82rem; color: #000;
}
.user-trigger-name { font-size: .88rem; font-weight: 700; }

.dropdown-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  width: 230px;
  background: var(--navy-800);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  padding: .5rem;
  display: none; flex-direction: column; gap: .15rem;
  z-index: 200;
}
.dropdown-menu.show { display: flex; animation: fadeSlide .15s ease; }

.dd-item {
  display: flex; align-items: center; gap: .65rem;
  padding: .6rem .8rem;
  border-radius: var(--r-sm);
  font-size: .88rem; font-weight: 600;
  color: var(--text-300);
  cursor: pointer;
  background: none; border: none; width: 100%; text-align: left;
  transition: all .15s;
}
.dd-item:hover { background: var(--navy-700); color: var(--text-100); }
.dd-item.danger { color: var(--red-400); }
.dd-item.danger:hover { background: rgba(248,113,113,.1); }
.dd-divider { height: 1px; background: var(--border); margin: .3rem 0; }

/* -------- SKIN GRID -------- */
.skins-container { flex: 1; padding: 1.75rem; }

.skins-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 1.25rem;
}

.skin-card {
  background: var(--navy-800);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: pointer;
  transition: all .25s cubic-bezier(.4,0,.2,1);
  position: relative;
  display: flex; flex-direction: column;
}

.skin-card:hover {
  transform: translateY(-5px);
  border-color: rgba(251,191,36,.4);
  box-shadow: 0 12px 28px rgba(0,0,0,.5), var(--glow-amber);
}

.card-rarity-stripe {
  height: 3px;
  width: 100%;
  background: var(--card-rarity-color, var(--amber-500));
}

.card-badges {
  position: absolute;
  top: .7rem; left: .7rem;
  display: flex; gap: .3rem;
  z-index: 2;
}

.card-wish-btn {
  position: absolute;
  top: .7rem; right: .7rem;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  border: 1px solid var(--border);
  color: var(--text-500);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: all .2s;
}
.card-wish-btn:hover { color: var(--pink-400); border-color: var(--pink-400); transform: scale(1.1); }
.card-wish-btn.active { color: var(--pink-400); background: rgba(244,114,182,0.15); border-color: var(--pink-400); }

.badge {
  font-size: .65rem;
  font-weight: 800;
  padding: .15rem .45rem;
  border-radius: 5px;
  text-transform: uppercase;
  font-family: var(--font-mono);
  letter-spacing: .02em;
}
.badge-st { background: linear-gradient(135deg,#ff5722,#ff8f00); color:#fff; }
.badge-wear { background: rgba(0,0,0,.6); border: 1px solid var(--border); color: var(--text-300); }

.card-img-area {
  height: 140px;
  display: flex; align-items: center; justify-content: center;
  padding: .75rem;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.03), transparent 70%);
}

.card-img-area img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.8));
  transition: transform .35s ease;
}
.skin-card:hover .card-img-area img { transform: scale(1.08) rotate(-3deg); }

.card-body { padding: .85rem .95rem; flex: 1; display: flex; flex-direction: column; gap: .5rem; }

.card-name {
  font-size: .88rem;
  font-weight: 700;
  color: var(--text-100);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Float bar */
.float-bar-wrap { display: flex; flex-direction: column; gap: .25rem; }
.float-bar-row { display: flex; justify-content: space-between; align-items: center; }
.float-label { font-size: .7rem; color: var(--text-500); font-family: var(--font-mono); }
.float-value { font-size: .7rem; font-weight: 700; color: var(--text-300); font-family: var(--font-mono); }
.float-track {
  height: 4px;
  background: rgba(255,255,255,.1);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.float-fill {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  background: linear-gradient(90deg, var(--green-400), var(--amber-400), var(--red-400));
  border-radius: 2px;
}
.float-pointer {
  position: absolute;
  top: 50%; transform: translate(-50%,-50%);
  width: 8px; height: 8px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(255,255,255,.7);
}

.card-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--amber-400);
  font-family: var(--font-mono);
}

.card-buy-btn {
  margin-top: auto;
  width: 100%;
  background: rgba(251,191,36,.1);
  border: 1px solid rgba(251,191,36,.25);
  color: var(--amber-400);
  padding: .55rem;
  border-radius: var(--r-sm);
  font-weight: 700; font-size: .88rem;
  cursor: pointer;
  transition: all .2s;
  font-family: var(--font-body);
}
.card-buy-btn:hover { background: var(--amber-500); border-color: var(--amber-500); color: #000; }

/* -------- DRAWERS -------- */
.drawer-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(6px);
  z-index: 300;
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
.drawer-backdrop.active { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed; top: 0; right: -500px; bottom: 0;
  width: 100%; max-width: 460px;
  background: var(--navy-900);
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  z-index: 310;
  display: flex; flex-direction: column;
  transition: right .35s cubic-bezier(.16,1,.3,1);
}
.drawer.open { right: 0; }

.drawer-hd {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.drawer-title { font-size: 1.1rem; font-weight: 800; display: flex; align-items: center; gap: .5rem; }

.close-btn {
  width: 32px; height: 32px;
  background: var(--navy-800); border: 1px solid var(--border);
  border-radius: 50%; color: var(--text-300);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1.1rem; transition: all .2s;
}
.close-btn:hover { color: var(--text-100); border-color: var(--amber-500); }

.drawer-body { flex: 1; overflow-y: auto; padding: 1.5rem; }
.drawer-footer { border-top: 1px solid var(--border); padding: 1.25rem 1.5rem; background: var(--navy-900); }

/* Item detail drawer */
.item-preview-card {
  background: var(--navy-800);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  text-align: center;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}
.item-preview-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, var(--rarity-glow, rgba(251,191,36,.12)), transparent 70%);
}
.item-preview-img { width: 220px; height: 140px; object-fit: contain; filter: drop-shadow(0 12px 20px rgba(0,0,0,.8)); margin: 0 auto 1rem; display: block; }
.item-preview-name { font-size: 1.05rem; font-weight: 800; margin-bottom: .35rem; }
.item-preview-price { font-size: 1.7rem; font-weight: 800; color: var(--amber-400); font-family: var(--font-mono); }

/* Timeline Stepper */
.steps { padding-left: 1.75rem; position: relative; margin-bottom: 1.5rem; }
.steps::before {
  content: '';
  position: absolute; left: 7px; top: 12px; bottom: 12px;
  width: 2px; background: var(--border);
}
.step { position: relative; margin-bottom: 1.5rem; }
.step-dot {
  position: absolute; left: -1.75rem; top: 2px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--navy-900); border: 2px solid var(--border);
  transition: all .3s;
}
.step.done .step-dot { background: var(--amber-500); border-color: var(--amber-500); box-shadow: 0 0 12px rgba(251,191,36,.5); }
.step-name { font-size: .95rem; font-weight: 800; margin-bottom: .15rem; }
.step-desc { font-size: .82rem; color: var(--text-300); }

/* -------- MODALS -------- */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.8);
  backdrop-filter: blur(10px);
  z-index: 400;
  display: none; align-items: center; justify-content: center;
  padding: 1.5rem;
}
.modal-overlay.active { display: flex; animation: fadeSlide .2s ease; }

.modal {
  background: var(--navy-800);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  width: 100%; max-width: 460px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.modal-lg { max-width: 520px; }

.modal-hd {
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.modal-bd { padding: 1.75rem; }

/* Auth modal tabs */
.auth-tabs { display: flex; background: var(--navy-900); border-radius: var(--r-sm); padding: 4px; margin-bottom: 1.5rem; }
.auth-tab {
  flex: 1; background: none; border: none;
  color: var(--text-300); padding: .55rem;
  border-radius: var(--r-sm); font-weight: 700; font-size: .85rem;
  cursor: pointer; transition: all .2s; font-family: var(--font-body);
}
.auth-tab.active { background: var(--navy-800); color: var(--text-100); }

/* Form Elements */
.form-group { margin-bottom: 1.1rem; }
.form-label { display: flex; justify-content: space-between; align-items: center; font-size: .8rem; font-weight: 700; color: var(--text-300); margin-bottom: .4rem; text-transform: uppercase; letter-spacing: .04em; }
.form-label a { color: var(--amber-400); text-decoration: none; font-weight: 600; text-transform: none; }
.form-input {
  width: 100%;
  background: var(--navy-900);
  border: 1px solid var(--border);
  color: var(--text-100);
  padding: .72rem 1rem;
  border-radius: var(--r-sm);
  font-size: .95rem;
  font-family: var(--font-body);
  transition: border-color .2s;
}
.form-input:focus { outline: none; border-color: var(--amber-500); }
.form-input.error { border-color: var(--red-400); }
.form-error { font-size: .8rem; color: var(--red-400); margin-top: .35rem; font-weight: 600; }

.btn-social {
  width: 100%; padding: .8rem; border-radius: var(--r-sm);
  border: 1px solid var(--border); background: var(--navy-900);
  color: var(--text-100); font-weight: 700; font-size: .92rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: .75rem;
  transition: all .2s; margin-bottom: .75rem; font-family: var(--font-body);
  text-decoration: none;
}
.btn-social:hover { background: var(--navy-700); border-color: var(--amber-500); }
.btn-social.steam-btn { background: #171a21; border-color: #2a475e; color: #66c0f4; }
.btn-social.steam-btn:hover { border-color: #66c0f4; background: #1d222e; }

.divider { display: flex; align-items: center; gap: 1rem; margin: 1rem 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.divider-text { font-size: .8rem; color: var(--text-500); font-weight: 700; }

/* WHOP checkout box */
.checkout-summary {
  display: flex; align-items: center; gap: 1rem;
  background: var(--navy-900); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 1rem;
  margin-bottom: 1.25rem;
}
.checkout-summary img { width: 60px; height: 48px; object-fit: contain; }

.checkout-card-box { background: var(--navy-900); border: 1px solid var(--border); border-radius: var(--r-md); padding: 1.25rem; margin-bottom: 1.25rem; }

.row-flex { display: flex; gap: .75rem; }
.row-flex .form-group { flex: 1; }

.total-row { display: flex; justify-content: space-between; align-items: center; padding: .75rem 0; border-top: 1px solid var(--border); margin-top: .5rem; }
.total-label { color: var(--text-300); font-size: .9rem; }
.total-amount { font-size: 1.3rem; font-weight: 800; color: var(--amber-400); font-family: var(--font-mono); }

/* Orders drawer */
.orders-section-hd {
  font-size: .78rem; font-weight: 800; color: var(--text-500);
  text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: .65rem; margin-top: 1rem;
}
.order-item {
  background: var(--navy-800); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: .9rem 1.1rem;
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: .75rem;
  cursor: pointer;
  transition: all .2s ease;
}
.order-item:hover {
  background: var(--navy-700);
  border-color: rgba(251,191,36,.4);
  transform: translateX(3px);
}
.order-item img { width: 56px; height: 44px; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(0,0,0,.6)); }
.order-item-info { flex: 1; min-width: 0; }
.order-item-name { font-size: .92rem; font-weight: 700; color: var(--text-100); margin-bottom: .25rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order-item-meta { font-size: .82rem; color: var(--text-300); font-family: var(--font-mono); display: flex; align-items: center; gap: .5rem; }
.order-item-meta .o-id { color: var(--amber-400); font-weight: 700; }
.order-item-meta .o-price { color: var(--green-400); font-weight: 700; }
.order-status-badge {
  font-size: .75rem; font-weight: 800; padding: .25rem .65rem;
  border-radius: var(--r-full); font-family: var(--font-mono);
  white-space: nowrap;
}
.status-pending { background: rgba(251,191,36,.18); color: var(--amber-400); border: 1px solid rgba(251,191,36,.4); }
.status-delivered { background: rgba(52,211,153,.18); color: var(--green-400); border: 1px solid rgba(52,211,153,.4); }

/* -------- ORDER DETAIL MODAL -------- */
.order-detail-card {
  background: var(--navy-900);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}
.order-detail-img-wrap {
  text-align: center;
  padding: 1rem 0;
  background: radial-gradient(circle at 50% 50%, rgba(251,191,36,0.1), transparent 70%);
  border-radius: var(--r-md);
  margin-bottom: 1rem;
}
.order-detail-img {
  max-width: 200px;
  max-height: 130px;
  object-fit: contain;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.8));
}
.order-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .6rem 0;
  border-bottom: 1px solid var(--border);
  font-size: .88rem;
}
.order-detail-row:last-child { border-bottom: none; }
.order-detail-label { color: var(--text-500); font-weight: 600; }
.order-detail-val { color: var(--text-100); font-weight: 700; font-family: var(--font-mono); }

/* Admin panel */
.alert-card {
  background: var(--navy-800); border: 1px solid rgba(248,113,113,.35);
  border-radius: var(--r-md); padding: 1.15rem;
  margin-bottom: 1rem;
}
.alert-title { color: var(--red-400); font-weight: 800; font-size: .92rem; margin-bottom: .4rem; }
.alert-trade-url { background: var(--navy-900); border: 1px solid var(--border); border-radius: var(--r-sm); padding: .5rem .75rem; font-size: .8rem; font-family: var(--font-mono); word-break: break-all; color: var(--text-300); margin: .6rem 0; }

/* Toasts */
.toast-wrap { position: fixed; bottom: 1.75rem; right: 1.75rem; z-index: 500; display: flex; flex-direction: column; gap: .5rem; }
.toast {
  background: var(--navy-800); border: 1px solid var(--border);
  padding: .9rem 1.25rem; border-radius: var(--r-md);
  box-shadow: var(--shadow-lg); font-size: .9rem; font-weight: 600;
  display: flex; align-items: center; gap: .6rem;
  animation: slideInRight .3s ease;
  max-width: 340px;
}
.toast.success { border-color: rgba(52,211,153,.5); }
.toast.error   { border-color: rgba(248,113,113,.5); }
.toast.info    { border-color: rgba(251,191,36,.5); }

/* -------- FOOTER -------- */
.site-footer {
  background: var(--navy-900);
  border-top: 1px solid var(--border);
  margin-left: var(--sidebar-w);
}
.footer-inner {
  display: flex;
  gap: 3rem;
  padding: 3rem 2rem 2rem;
  max-width: 1200px;
}
.footer-brand { flex: 0 0 260px; }
.footer-logo { display: flex; align-items: center; gap: .65rem; margin-bottom: .85rem; }
.footer-tagline { font-size: .88rem; color: var(--text-300); line-height: 1.6; margin-bottom: .9rem; }
.footer-disclaimer {
  font-size: .72rem; color: var(--text-500); line-height: 1.6;
  padding: .65rem .85rem; background: var(--navy-800); border-radius: var(--r-sm);
  border: 1px solid var(--border);
}
.footer-links { display: flex; gap: 3rem; flex: 1; }
.footer-col { display: flex; flex-direction: column; gap: .5rem; }
.footer-col-title {
  font-size: .72rem; font-weight: 800; color: var(--text-500);
  text-transform: uppercase; letter-spacing: .1em; margin-bottom: .25rem;
}
.footer-link {
  font-size: .88rem; color: var(--text-300); text-decoration: none;
  font-weight: 500; transition: color .15s;
}
.footer-link:hover { color: var(--amber-400); }
.footer-bar {
  border-top: 1px solid var(--border);
  padding: 1rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
  font-size: .8rem; color: var(--text-500); font-weight: 600;
}

/* -------- LEGAL CONTENT -------- */
.legal-content { line-height: 1.7; color: var(--text-300); font-size: .9rem; }
.legal-content p { margin-bottom: .85rem; }
.legal-content h3 {
  font-size: .95rem; font-weight: 800; color: var(--text-100);
  margin: 1.25rem 0 .5rem; padding-bottom: .4rem;
  border-bottom: 1px solid var(--border);
}
.legal-content strong { color: var(--text-100); }

/* Animations */
@keyframes fadeSlide { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: translateX(0); } }

/* Responsive */
@media (max-width: 900px) {
  :root { --sidebar-w: 0px; }
  .sidebar { display: none; }
  .main-content { margin-left: 0; }
  .skins-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .site-footer { margin-left: 0; }
  .footer-inner { flex-direction: column; gap: 2rem; }
  .footer-brand { flex: none; }
  .footer-links { flex-wrap: wrap; gap: 2rem; }
}
