/* ===== 24HG Market — Global Styles ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Share+Tech+Mono&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0a0a0c;
  --bg-card: #111116;
  --bg-card-hover: #18181f;
  --bg-surface: #0e0e12;
  --border: #1e1e26;
  --border-hover: #2a2a35;
  --text: #e8e8ec;
  --text-muted: #8a8a9a;
  --text-dim: #5a5a6a;
  --cyan: #00e5ff;
  --cyan-dim: rgba(0, 229, 255, 0.12);
  --cyan-glow: rgba(0, 229, 255, 0.3);
  --magenta: #e040fb;
  --magenta-dim: rgba(224, 64, 251, 0.12);
  --rarity-common: #6b7280;
  --rarity-uncommon: #22c55e;
  --rarity-rare: #3b82f6;
  --rarity-epic: #a855f7;
  --rarity-legendary: #f97316;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

a { color: var(--cyan); text-decoration: none; transition: color var(--transition); }
a:hover { color: #66f0ff; }

.mono { font-family: 'Share Tech Mono', monospace; }

/* ===== Navbar ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(10, 10, 12, 0.6);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background var(--transition);
}
.navbar.scrolled { background: rgba(10, 10, 12, 0.92); }
.navbar-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 64px;
}
.navbar-brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.1rem; color: var(--text);
  text-decoration: none;
}
.navbar-brand svg { width: 28px; height: 28px; }
.navbar-brand span { color: var(--cyan); }
.navbar-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.navbar-links a {
  color: var(--text-muted); font-size: 0.9rem; font-weight: 500;
  padding: 8px 16px; border-radius: var(--radius-sm);
  transition: all var(--transition); display: block;
}
.navbar-links a:hover, .navbar-links a.active { color: var(--text); background: rgba(255,255,255,0.05); }
.navbar-links a.active { color: var(--cyan); }
.navbar-actions { display: flex; align-items: center; gap: 12px; }
.nav-cart {
  position: relative; color: var(--text-muted); padding: 8px;
  border-radius: var(--radius-sm); transition: all var(--transition);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  text-decoration: none;
}
.nav-cart:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-cart svg { width: 20px; height: 20px; }
.cart-badge {
  position: absolute; top: 0; right: 0;
  background: var(--magenta); color: #fff; font-size: 0.6rem; font-weight: 700;
  width: 16px; height: 16px; border-radius: 50%;
  display: none; align-items: center; justify-content: center;
}
.cart-badge.visible { display: flex; }
.btn-signin {
  background: var(--cyan); color: var(--bg); font-weight: 600;
  font-size: 0.85rem; padding: 8px 20px; border-radius: var(--radius-sm);
  border: none; cursor: pointer; transition: all var(--transition);
  text-decoration: none; display: inline-block;
}
.btn-signin:hover { background: #33ebff; color: var(--bg); transform: translateY(-1px); box-shadow: 0 4px 16px var(--cyan-glow); }

.nav-toggle { display: none; background: none; border: none; color: var(--text); padding: 8px; cursor: pointer; }
.nav-toggle svg { width: 24px; height: 24px; }

/* ===== Layout ===== */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.page-content { padding-top: 64px; }
section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-label {
  display: inline-block; font-family: 'Share Tech Mono', monospace;
  font-size: 0.75rem; letter-spacing: 3px; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 12px;
  background: var(--cyan-dim); padding: 6px 16px; border-radius: 20px;
}
.section-title { font-size: 2.2rem; font-weight: 800; line-height: 1.2; margin-bottom: 12px; }
.section-subtitle { color: var(--text-muted); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 0.9rem;
  padding: 12px 28px; border-radius: var(--radius-sm); border: none;
  cursor: pointer; transition: all var(--transition); text-decoration: none;
}
.btn-primary { background: var(--cyan); color: var(--bg); }
.btn-primary:hover {
  background: #33ebff; color: var(--bg); transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--cyan-glow);
}
.btn-secondary { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--cyan); color: var(--cyan); background: var(--cyan-dim); }
.btn-magenta { background: var(--magenta); color: #fff; }
.btn-magenta:hover {
  background: #e866fc; color: #fff; transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(224,64,251,0.3);
}
.btn-sm { padding: 8px 18px; font-size: 0.82rem; }
.btn-lg { padding: 16px 36px; font-size: 1rem; }
.btn-block { display: flex; width: 100%; justify-content: center; }

/* ===== Item Cards ===== */
.item-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.item-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: all var(--transition); cursor: pointer; position: relative;
  text-decoration: none; color: var(--text);
}
.item-card:hover {
  transform: translateY(-4px); border-color: var(--border-hover);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5); color: var(--text);
}
.item-card-img {
  width: 100%; aspect-ratio: 1; background: var(--bg-surface);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.item-card-img .item-icon { font-size: 3.5rem; opacity: 0.85; }
.item-card-img .game-tag {
  position: absolute; top: 10px; left: 10px;
  font-size: 0.68rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.5px; padding: 4px 10px; border-radius: 6px;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(8px);
  color: var(--text-muted);
}
.rarity-border-common { border-top: 3px solid var(--rarity-common); }
.rarity-border-uncommon { border-top: 3px solid var(--rarity-uncommon); }
.rarity-border-rare { border-top: 3px solid var(--rarity-rare); }
.rarity-border-epic { border-top: 3px solid var(--rarity-epic); }
.rarity-border-legendary { border-top: 3px solid var(--rarity-legendary); }

.rarity-badge {
  position: absolute; top: 10px; right: 10px;
  font-size: 0.62rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; padding: 4px 10px; border-radius: 6px;
}
.rarity-common .rarity-badge { background: rgba(107,114,128,0.3); color: var(--rarity-common); }
.rarity-uncommon .rarity-badge { background: rgba(34,197,94,0.15); color: var(--rarity-uncommon); }
.rarity-rare .rarity-badge { background: rgba(59,130,246,0.15); color: var(--rarity-rare); }
.rarity-epic .rarity-badge { background: rgba(168,85,247,0.15); color: var(--rarity-epic); }
.rarity-legendary .rarity-badge { background: rgba(249,115,22,0.15); color: var(--rarity-legendary); }

.rarity-legendary .item-card-img::after {
  content: ''; position: absolute; top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: linear-gradient(45deg, transparent 40%, rgba(249,115,22,0.1) 50%, transparent 60%);
  animation: shimmer 3s ease-in-out infinite;
}
@keyframes shimmer {
  0%,100% { transform: translateX(-30%) translateY(-30%); }
  50% { transform: translateX(30%) translateY(30%); }
}

.item-card-body { padding: 16px; }
.item-card-name { font-weight: 600; font-size: 0.95rem; margin-bottom: 4px; }
.item-card-seller { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 10px; }
.item-card-footer { display: flex; align-items: center; justify-content: space-between; }
.item-card-price {
  font-family: 'Share Tech Mono', monospace; font-weight: 700;
  font-size: 1.05rem; color: var(--cyan);
}

/* ===== Categories ===== */
.category-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.category-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 20px;
  text-align: center; transition: all var(--transition); cursor: pointer;
  text-decoration: none; color: var(--text);
}
.category-card:hover {
  transform: translateY(-4px); border-color: var(--cyan);
  background: var(--bg-card-hover); color: var(--text);
  box-shadow: 0 8px 32px rgba(0,229,255,0.08);
}
.category-card .cat-icon { font-size: 2.5rem; margin-bottom: 12px; display: block; }
.category-card .cat-name { font-weight: 600; font-size: 0.95rem; margin-bottom: 4px; }
.category-card .cat-count { font-size: 0.8rem; color: var(--text-muted); font-family: 'Share Tech Mono', monospace; }

/* ===== Stats ===== */
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}
.stat-card {
  text-align: center; padding: 32px 20px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius);
}
.stat-number {
  font-family: 'Share Tech Mono', monospace; font-size: 2.5rem;
  font-weight: 700; color: var(--cyan); margin-bottom: 4px;
}
.stat-label { font-size: 0.9rem; color: var(--text-muted); }

/* ===== Steps ===== */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.step-card { text-align: center; padding: 36px 24px; }
.step-num {
  font-family: 'Share Tech Mono', monospace; font-size: 3rem;
  font-weight: 700; color: var(--cyan); opacity: 0.15; margin-bottom: 4px;
}
.step-icon { font-size: 2rem; margin-bottom: 16px; }
.step-title { font-weight: 700; font-size: 1.1rem; margin-bottom: 8px; }
.step-desc { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; }

/* ===== Hero ===== */
.hero {
  min-height: 80vh; display: flex; align-items: center; justify-content: center;
  text-align: center; position: relative; overflow: hidden;
  padding: 120px 24px 80px;
}
.hero::before {
  content: ''; position: absolute; top: -40%; left: -20%; width: 60%; height: 120%;
  background: radial-gradient(ellipse, rgba(0,229,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; bottom: -30%; right: -15%; width: 50%; height: 100%;
  background: radial-gradient(ellipse, rgba(224,64,251,0.04) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 720px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Share Tech Mono', monospace; font-size: 0.78rem;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--cyan); background: var(--cyan-dim);
  padding: 8px 20px; border-radius: 24px; margin-bottom: 24px;
}
.hero-badge .pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--cyan);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
.hero h1 { font-size: 3.6rem; font-weight: 900; line-height: 1.1; margin-bottom: 20px; }
.hero h1 .gradient {
  background: linear-gradient(135deg, var(--cyan), var(--magenta));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p { font-size: 1.15rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 36px; max-width: 540px; margin-left: auto; margin-right: auto; }
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--border); padding: 60px 0 32px;
  background: var(--bg-surface);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 48px;
}
.footer-brand .brand-name {
  font-weight: 700; font-size: 1.1rem; margin-bottom: 12px;
}
.footer-brand .brand-name span { color: var(--cyan); }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; max-width: 300px; }
.footer-col h4 { font-weight: 600; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; color: var(--text); }
.footer-col a { display: block; color: var(--text-muted); font-size: 0.9rem; padding: 4px 0; transition: color var(--transition); }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.82rem; color: var(--text-dim);
}
.footer-bottom a { color: var(--text-dim); }
.footer-bottom a:hover { color: var(--cyan); }

/* ===== Browse Page ===== */
.browse-layout { display: grid; grid-template-columns: 260px 1fr; gap: 32px; padding-top: 40px; }
.sidebar {
  position: sticky; top: 104px; align-self: start;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; max-height: calc(100vh - 120px); overflow-y: auto;
}
.sidebar h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 20px; }
.filter-group { margin-bottom: 20px; }
.filter-group label {
  display: block; font-size: 0.78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--text-muted); margin-bottom: 8px;
}
.filter-group select, .filter-group input[type="text"] {
  width: 100%; padding: 10px 12px; background: var(--bg-surface);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); font-family: 'Inter', sans-serif; font-size: 0.88rem;
  transition: border-color var(--transition); outline: none;
}
.filter-group select:focus, .filter-group input:focus { border-color: var(--cyan); }
.filter-group select option { background: var(--bg-card); }

.checkbox-group { display: flex; flex-direction: column; gap: 8px; }
.checkbox-item {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  font-size: 0.88rem; color: var(--text-muted); transition: color var(--transition);
}
.checkbox-item:hover { color: var(--text); }
.checkbox-item input[type="checkbox"] { accent-color: var(--cyan); width: 16px; height: 16px; cursor: pointer; }

.price-range { display: flex; align-items: center; gap: 8px; }
.price-range input[type="number"] {
  width: 100%; padding: 8px 10px; background: var(--bg-surface);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); font-family: 'Share Tech Mono', monospace; font-size: 0.85rem;
  outline: none;
}
.price-range input:focus { border-color: var(--cyan); }
.price-range span { color: var(--text-dim); font-size: 0.85rem; }

.btn-filter {
  width: 100%; padding: 10px; background: var(--cyan); color: var(--bg);
  font-weight: 600; font-size: 0.88rem; border: none; border-radius: var(--radius-sm);
  cursor: pointer; transition: all var(--transition); margin-top: 4px;
}
.btn-filter:hover { background: #33ebff; }
.btn-reset {
  width: 100%; padding: 10px; background: transparent; color: var(--text-muted);
  font-weight: 500; font-size: 0.85rem; border: 1px solid var(--border);
  border-radius: var(--radius-sm); cursor: pointer; transition: all var(--transition); margin-top: 8px;
}
.btn-reset:hover { border-color: var(--text-muted); color: var(--text); }

.browse-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px; flex-wrap: wrap; gap: 16px;
}
.browse-top .results-count { font-size: 0.9rem; color: var(--text-muted); white-space: nowrap; }
.browse-top .results-count strong { color: var(--text); }
.search-bar {
  display: flex; align-items: center; gap: 8px; flex: 1; max-width: 480px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 0 16px;
  transition: border-color var(--transition);
}
.search-bar:focus-within { border-color: var(--cyan); }
.search-bar svg { width: 18px; height: 18px; color: var(--text-muted); flex-shrink: 0; }
.search-bar input {
  flex: 1; padding: 12px 8px; background: none; border: none;
  color: var(--text); font-family: 'Inter', sans-serif; font-size: 0.9rem; outline: none;
}
.search-bar input::placeholder { color: var(--text-dim); }

.sort-select {
  padding: 10px 14px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text); font-size: 0.88rem;
  outline: none; cursor: pointer; font-family: 'Inter', sans-serif;
}
.sort-select option { background: var(--bg-card); }

.pagination {
  display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 48px;
}
.pagination button {
  padding: 8px 14px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-muted); font-size: 0.88rem;
  cursor: pointer; transition: all var(--transition); font-family: 'Inter', sans-serif;
}
.pagination button:hover { border-color: var(--cyan); color: var(--text); }
.pagination button.active { background: var(--cyan); color: var(--bg); border-color: var(--cyan); }
.pagination button:disabled { opacity: 0.3; cursor: not-allowed; }

/* ===== Item Detail ===== */
.item-detail { padding-top: 40px; }
.item-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.item-preview {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  font-size: 8rem; position: relative; overflow: hidden;
}
.item-breadcrumb {
  font-size: 0.82rem; color: var(--text-dim); margin-bottom: 16px;
  display: flex; align-items: center; gap: 6px;
}
.item-breadcrumb a { color: var(--text-muted); }
.item-breadcrumb a:hover { color: var(--cyan); }
.item-rarity-tag {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px;
  padding: 5px 14px; border-radius: 6px; margin-bottom: 12px;
}
.item-detail-name { font-size: 2rem; font-weight: 800; margin-bottom: 8px; }
.item-detail-game { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 20px; }
.item-detail-desc { color: var(--text-muted); line-height: 1.7; margin-bottom: 28px; font-size: 0.95rem; }
.item-detail-price {
  font-family: 'Share Tech Mono', monospace; font-size: 2.2rem;
  font-weight: 700; color: var(--cyan); margin-bottom: 24px;
}
.item-detail-price .coin-label { font-size: 1rem; color: var(--text-muted); font-family: 'Inter', sans-serif; margin-left: 6px; }
.item-actions { display: flex; gap: 12px; margin-bottom: 32px; flex-wrap: wrap; }

.seller-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
}
.seller-card h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 12px; }
.seller-info { display: flex; align-items: center; gap: 12px; }
.seller-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--magenta));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.1rem; color: var(--bg); flex-shrink: 0;
}
.seller-name { font-weight: 600; font-size: 0.95rem; }
.seller-rating { color: var(--text-muted); font-size: 0.85rem; }
.seller-rating .stars { color: #fbbf24; }

.price-history {
  margin-top: 32px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
}
.price-history h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 16px; }
.history-row {
  display: flex; justify-content: space-between; padding: 8px 0;
  border-bottom: 1px solid var(--border); font-size: 0.88rem;
}
.history-row:last-child { border-bottom: none; }
.history-row .date { color: var(--text-muted); }
.history-row .price { font-family: 'Share Tech Mono', monospace; color: var(--cyan); }

/* ===== Sell Page ===== */
.sell-layout { display: grid; grid-template-columns: 1fr 380px; gap: 40px; padding-top: 40px; align-items: start; }
.sell-form {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
}
.sell-form h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 24px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: 0.85rem; font-weight: 600;
  margin-bottom: 8px; color: var(--text);
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 14px; background: var(--bg-surface);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); font-family: 'Inter', sans-serif; font-size: 0.9rem;
  outline: none; transition: border-color var(--transition);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--cyan); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group select option { background: var(--bg-card); }
.form-hint { font-size: 0.78rem; color: var(--text-dim); margin-top: 4px; }

.upload-zone {
  border: 2px dashed var(--border); border-radius: var(--radius);
  padding: 40px; text-align: center; cursor: pointer;
  transition: all var(--transition);
}
.upload-zone:hover { border-color: var(--cyan); background: var(--cyan-dim); }
.upload-zone .upload-icon { font-size: 2.5rem; margin-bottom: 8px; }
.upload-zone p { color: var(--text-muted); font-size: 0.9rem; }
.upload-zone .upload-hint { font-size: 0.78rem; color: var(--text-dim); margin-top: 4px; }

.listing-preview { position: sticky; top: 104px; }
.listing-preview h3 { font-size: 1rem; font-weight: 600; margin-bottom: 16px; color: var(--text-muted); }

/* ===== Cart Page ===== */
.cart-layout { padding-top: 40px; max-width: 800px; margin: 0 auto; }
.cart-empty {
  text-align: center; padding: 80px 20px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius);
}
.cart-empty .empty-icon { font-size: 4rem; margin-bottom: 16px; opacity: 0.4; }
.cart-empty h2 { font-size: 1.3rem; margin-bottom: 8px; }
.cart-empty p { color: var(--text-muted); margin-bottom: 24px; }

.cart-items { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.cart-item {
  display: flex; align-items: center; gap: 16px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px; transition: all var(--transition);
}
.cart-item:hover { border-color: var(--border-hover); }
.cart-item-img {
  width: 72px; height: 72px; border-radius: var(--radius-sm);
  background: var(--bg-surface); display: flex; align-items: center;
  justify-content: center; font-size: 2rem; flex-shrink: 0;
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-weight: 600; font-size: 0.95rem; margin-bottom: 4px; }
.cart-item-meta { font-size: 0.82rem; color: var(--text-muted); }
.cart-item-price {
  font-family: 'Share Tech Mono', monospace; font-weight: 700;
  font-size: 1.1rem; color: var(--cyan); flex-shrink: 0;
}
.cart-item-remove {
  background: none; border: none; color: var(--text-dim);
  cursor: pointer; padding: 8px; border-radius: var(--radius-sm);
  transition: all var(--transition); flex-shrink: 0;
}
.cart-item-remove:hover { color: #ef4444; background: rgba(239,68,68,0.1); }
.cart-item-remove svg { width: 18px; height: 18px; }

.cart-summary {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
}
.cart-summary-row {
  display: flex; justify-content: space-between; padding: 8px 0;
  font-size: 0.9rem; color: var(--text-muted);
}
.cart-summary-row.total {
  border-top: 1px solid var(--border); margin-top: 8px; padding-top: 16px;
  font-size: 1.1rem; font-weight: 700; color: var(--text);
}
.cart-summary-row.total .amount {
  font-family: 'Share Tech Mono', monospace; color: var(--cyan); font-size: 1.3rem;
}

/* ===== Scroll Animations ===== */
.fade-in {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }

/* ===== Page Header (reusable) ===== */
.page-header {
  padding: 100px 24px 40px; text-align: center;
  background: linear-gradient(180deg, rgba(0,229,255,0.03) 0%, transparent 100%);
}
.page-header h1 { font-size: 2.4rem; font-weight: 800; margin-bottom: 8px; }
.page-header p { color: var(--text-muted); font-size: 1.05rem; }

/* ===== Toast ===== */
.toast-container {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  display: flex; flex-direction: column; gap: 8px;
}
.toast {
  background: var(--bg-card); border: 1px solid var(--cyan);
  border-radius: var(--radius); padding: 14px 20px;
  display: flex; align-items: center; gap: 10px;
  font-size: 0.88rem; box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  transform: translateX(120%); transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}
.toast.show { transform: translateX(0); }
.toast .toast-icon { color: var(--cyan); font-size: 1.1rem; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .browse-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; max-height: none; }
  .item-detail-grid { grid-template-columns: 1fr; }
  .sell-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .hero h1 { font-size: 2.4rem; }
  .hero p { font-size: 1rem; }
  section { padding: 56px 0; }
  .section-title { font-size: 1.7rem; }
  .item-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .category-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .navbar-links { display: none; }
  .navbar-links.open {
    display: flex; flex-direction: column; position: absolute;
    top: 64px; left: 0; right: 0; background: rgba(10,10,12,0.96);
    backdrop-filter: blur(20px); padding: 16px; border-bottom: 1px solid var(--border);
  }
  .nav-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .browse-top { flex-direction: column; align-items: stretch; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 1.9rem; }
  .container { padding: 0 16px; }
  .item-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .item-card-body { padding: 12px; }
  .item-card-name { font-size: 0.85rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-number { font-size: 1.8rem; }
}
