/* ═══════════════════════════════════════════════════
   MINDCRYPT — Black & White Neon Glow
   Pure B&W with luminous white glows, floating hearts,
   mouse light trail, and premium effects
   ═══════════════════════════════════════════════════ */

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

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

:root {
  --bg: #0a0a0a;
  --bg-card: #111111;
  --bg-input: #161616;
  --bg-hover: #1c1c1c;
  --border: #222222;
  --border-strong: #333333;
  --text: #d0d0d0;
  --text-muted: #777777;
  --text-bright: #ffffff;
  --accent: #ffffff;
  --accent-hover: #e0e0e0;
  --accent-dim: #aaaaaa;
  --glow-white: 0 0 8px rgba(255,255,255,0.5), 0 0 20px rgba(255,255,255,0.2), 0 0 40px rgba(255,255,255,0.1);
  --glow-soft: 0 0 6px rgba(255,255,255,0.25), 0 0 15px rgba(255,255,255,0.1);
  --glow-btn: 0 0 10px rgba(255,255,255,0.4), 0 0 25px rgba(255,255,255,0.15), 0 0 50px rgba(255,255,255,0.05);
  --danger: #ff4466;
  --warning: #ffcc44;
  --success: #66ffaa;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-xs: 6px;
}

/* ── Mouse light effect ── */
#mouse-light {
  position: fixed;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 35%, transparent 70%);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  /* no transition — instant follow */
  mix-blend-mode: screen;
}

/* ── Floating hearts canvas ── */
#hearts-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ── Base ── */
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

body > * { position: relative; z-index: 1; }

::selection {
  background: #fff;
  color: #000;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #fff, #666);
  border-radius: 3px;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: all 0.25s;
}
a:hover {
  text-shadow: var(--glow-soft);
}

/* ── Keyframes ── */
@keyframes glowPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

@keyframes softBreath {
  0%, 100% { box-shadow: 0 0 5px rgba(255,255,255,0.08), 0 0 15px rgba(255,255,255,0.04); }
  50% { box-shadow: 0 0 12px rgba(255,255,255,0.15), 0 0 30px rgba(255,255,255,0.06); }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes borderPulse {
  0%, 100% { border-color: rgba(255,255,255,0.1); }
  50% { border-color: rgba(255,255,255,0.25); }
}

@keyframes floatGentle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes textGlow {
  0%, 100% { text-shadow: 0 0 6px rgba(255,255,255,0.3), 0 0 15px rgba(255,255,255,0.1); }
  50% { text-shadow: 0 0 12px rgba(255,255,255,0.6), 0 0 30px rgba(255,255,255,0.2), 0 0 50px rgba(255,255,255,0.1); }
}

/* ── Header ── */
.header, header {
  background: rgba(10,10,10,0.8);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(30px) saturate(1.5);
  box-shadow: 0 1px 0 rgba(255,255,255,0.04), 0 4px 30px rgba(0,0,0,0.5);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.logo { display: flex; flex-direction: column; }

.logo-main {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--text-bright);
  letter-spacing: 5px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: textGlow 4s ease-in-out infinite;
}

.logo-icon {
  height: 32px;
  width: auto;
  object-fit: contain;
  border-radius: var(--radius-xs);
  filter: drop-shadow(0 0 8px rgba(255,255,255,0.5)) brightness(1.1);
}

.logo-subtitle {
  font-size: 0.6rem;
  color: var(--accent-dim);
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-top: 2px;
}

/* ── Navigation ── */
.nav { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }

.nav-link {
  padding: 0.5rem 1.1rem;
  border: none;
  border-radius: var(--radius-sm);
  transition: all 0.3s;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.8rem;
  position: relative;
  overflow: hidden;
}

.nav-link::before { display: none; }

.nav-link:hover {
  color: var(--text-bright);
  background: rgba(255,255,255,0.05);
  text-shadow: var(--glow-soft);
}

.nav-link.active {
  background: #fff;
  color: #000;
  font-weight: 700;
  box-shadow: var(--glow-btn);
}

/* ── Buttons ── */
.btn {
  padding: 0.6rem 1.5rem;
  border: 1px solid rgba(255,255,255,0.3);
  background: transparent;
  color: var(--text-bright);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.3px;
}

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

.btn:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
  box-shadow: var(--glow-btn);
  transform: translateY(-2px);
}

.btn-danger {
  border-color: var(--danger);
  color: var(--danger);
}
.btn-danger:hover {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
  box-shadow: 0 0 15px rgba(255,68,102,0.5), 0 0 30px rgba(255,68,102,0.2);
}

.btn-outline {
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
}
.btn-outline:hover {
  border-color: #fff;
  color: var(--text-bright);
  background: transparent;
  box-shadow: var(--glow-soft);
}

.btn-small { padding: 0.35rem 0.75rem; font-size: 0.75rem; }

.btn-success {
  border-color: var(--success);
  color: var(--success);
}
.btn-success:hover {
  background: var(--success);
  color: #000;
  box-shadow: 0 0 15px rgba(102,255,170,0.5);
}

.btn-secondary {
  border-color: var(--border-strong);
  color: var(--text-muted);
}
.btn-secondary:hover {
  border-color: #aaa;
  color: #fff;
  box-shadow: var(--glow-soft);
}

/* ── Forms ── */
.form-group { margin-bottom: 1.25rem; }

.form-group label, label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
}

input, textarea, select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-bright);
  font-family: var(--font-body);
  font-size: 0.875rem;
  transition: all 0.3s;
  margin-bottom: 12px;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: rgba(255,255,255,0.5);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.08), var(--glow-soft);
}

input::placeholder, textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.5;
}

/* ── Cards ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 24px;
  position: relative;
  animation: fadeInUp 0.4s ease-out;
}

.card::before { display: none; }

.card:hover {
  border-color: rgba(255,255,255,0.15);
  box-shadow: 0 0 30px rgba(255,255,255,0.03), 0 10px 40px rgba(0,0,0,0.3);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.card-title {
  font-size: 1rem;
  color: var(--text-bright);
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.card-title::before, .card-title::after { display: none; }

/* ── Layout ── */
.container { max-width: 1200px; margin: 0 auto; padding: 2rem; }
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.page { display: none; }
.page.active { display: block; animation: fadeInUp 0.35s ease-out; }

/* ── Products ── */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(135deg, transparent 30%, rgba(255,255,255,0.4) 50%, transparent 70%);
  background-size: 300% 300%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
  z-index: 1;
  pointer-events: none;
}
.product-card::after { display: none; }

.product-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 
    0 0 20px rgba(255,255,255,0.06),
    0 20px 50px rgba(0,0,0,0.4);
  border-color: rgba(255,255,255,0.2);
}
.product-card:hover::before { opacity: 1; animation: shimmer 2s linear infinite; }

.product-image {
  width: 100%;
  height: 170px;
  object-fit: cover;
  background: var(--bg-input);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 2.5rem;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.product-image::after { display: none; }

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), filter 0.5s;
  filter: brightness(0.9);
}

.product-card:hover .product-image img {
  transform: scale(1.1);
  filter: brightness(1.05);
}

.product-content {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-title {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  color: var(--text-bright);
  font-weight: 700;
}

.product-price {
  font-size: 1.4rem;
  color: #fff;
  font-weight: 800;
  text-shadow: var(--glow-soft);
}

.product-seller {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}
.product-seller a { color: #fff; font-weight: 600; }
.product-seller a:hover { text-shadow: var(--glow-soft); }

.product-actions { margin-top: 1rem; display: flex; gap: 0.5rem; }

/* ── Stars ── */
.stars { color: var(--warning); font-size: 1rem; text-shadow: 0 0 8px rgba(255,204,68,0.5); }
.stars-small { font-size: 0.875rem; }
.star-input { display: flex; gap: 0.25rem; }
.star-input span { cursor: pointer; font-size: 1.5rem; color: var(--border-strong); transition: all 0.2s; }
.star-input span.active, .star-input span:hover { 
  color: var(--warning); 
  text-shadow: 0 0 12px rgba(255,204,68,0.6);
  transform: scale(1.2);
}

/* ── Profile ── */
.profile-header {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 2rem;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.profile-header::before { display: none; }
.profile-header::after {
  content: '';
  position: absolute;
  top: -1px; left: -1px; right: -1px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
}

.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: var(--radius);
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.2);
  box-shadow: var(--glow-soft);
  transition: all 0.3s;
}
.profile-avatar:hover {
  box-shadow: var(--glow-white);
  transform: scale(1.05);
  border-color: rgba(255,255,255,0.5);
}

.profile-info { flex: 1; }
.profile-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-bright);
  margin-bottom: 0.5rem;
  text-shadow: var(--glow-soft);
}
.profile-rating { font-size: 1rem; color: var(--warning); margin-bottom: 0.75rem; }
.profile-bio { color: var(--text-muted); font-size: 0.875rem; line-height: 1.6; }
.profile-stats { display: flex; gap: 2.5rem; margin-top: 1.25rem; }
.profile-stat { text-align: center; }
.profile-stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  text-shadow: var(--glow-soft);
}
.profile-stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ── Reviews ── */
.review-card {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  margin-bottom: 0.75rem;
  transition: all 0.25s;
}
.review-card:hover {
  border-color: rgba(255,255,255,0.15);
  background: var(--bg-hover);
  box-shadow: 0 0 15px rgba(255,255,255,0.02);
}
.review-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.review-author { font-weight: 700; color: var(--text-bright); font-size: 0.875rem; }
.review-date { font-size: 0.7rem; color: var(--text-muted); }
.review-comment { color: var(--text-muted); font-size: 0.875rem; line-height: 1.5; }
.review-product { font-size: 0.7rem; color: var(--accent-dim); margin-top: 0.5rem; font-weight: 600; }

/* ── Wallet ── */
.balance-display {
  display: flex;
  gap: 2rem;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
  animation: softBreath 5s ease-in-out infinite;
}
.balance-display::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px; right: -1px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #fff, transparent);
}
.balance-display::after { display: none; }

.balance-item h3 {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1.5px;
}
.balance-item .amount {
  font-size: 1.75rem;
  color: var(--text-bright);
  font-weight: 800;
  text-shadow: var(--glow-soft);
}
.balance-item .usd-value { font-size: 0.8rem; color: var(--text-muted); }

/* ── Tables ── */
table { width: 100%; border-collapse: collapse; }
th, td { padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
th {
  color: #fff;
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
  background: var(--bg-input);
  text-shadow: var(--glow-soft);
}
tr { transition: all 0.2s; }
tr:hover { background: var(--bg-hover); }
td { font-size: 0.875rem; }

/* ── Badges ── */
.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  font-size: 0.65rem;
  font-weight: 600;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-pending { background: rgba(255,204,68,0.12); color: var(--warning); }
.badge-approved { background: rgba(102,255,170,0.1); color: var(--success); }
.badge-rejected { background: rgba(255,68,102,0.1); color: var(--danger); }
.badge-admin { 
  background: #fff; 
  color: #000; 
  font-weight: 700;
  box-shadow: var(--glow-soft);
}
.badge-digital { background: rgba(102,255,170,0.1); color: var(--success); }

.admin-badge {
  background: #fff;
  color: #000;
  padding: 2px 10px;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 999px;
  box-shadow: var(--glow-soft);
}

/* ── Tabs ── */
.tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.tab {
  padding: 0.6rem 1.25rem;
  cursor: pointer;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.25s;
  margin-bottom: -1px;
}
.tab::before { display: none; }

.tab:hover {
  color: var(--text-bright);
}

.tab.active {
  color: #fff;
  border-bottom-color: #fff;
  text-shadow: var(--glow-soft);
}

.tab-content { display: none; }
.tab-content.active { display: block; }

.percent-buttons { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.percent-buttons .btn { min-width: 55px; }

/* ── Alerts ── */
.alert {
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid;
  font-weight: 500;
  font-size: 0.8rem;
}
.alert::before { display: none; }
.alert-success { 
  background: rgba(102,255,170,0.05); 
  border-color: rgba(102,255,170,0.2); 
  color: var(--success);
}
.alert-error { 
  background: rgba(255,68,102,0.05); 
  border-color: rgba(255,68,102,0.2); 
  color: var(--danger);
}
.alert-warning { 
  background: rgba(255,204,68,0.05); 
  border-color: rgba(255,204,68,0.2); 
  color: var(--warning);
}
.alert-info { background: rgba(255,255,255,0.02); border-color: var(--border); color: var(--text-muted); }

/* ── Banners ── */
.impersonation-banner {
  background: #fff;
  color: #000;
  padding: 0.4rem 1rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.75rem;
  box-shadow: var(--glow-btn);
}

.dev-banner {
  background: var(--bg-input);
  color: var(--text-muted);
  padding: 0.3rem 1rem;
  text-align: center;
  font-size: 0.7rem;
  border-bottom: 1px solid var(--border);
}

/* ── Modal ── */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(15px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.modal-overlay.active { display: flex; }

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  box-shadow: 
    0 25px 60px rgba(0,0,0,0.7),
    0 0 60px rgba(255,255,255,0.03);
  animation: modalSlide 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.modal::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px; right: -1px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #fff, transparent);
}

@keyframes modalSlide {
  from { transform: translateY(-20px) scale(0.95); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.modal-header { margin-bottom: 1.5rem; }
.modal-title {
  font-size: 1.1rem;
  color: var(--text-bright);
  font-weight: 700;
  text-shadow: var(--glow-soft);
}

/* ── Info Page ── */
.info-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  line-height: 1.8;
  font-size: 0.9rem;
  white-space: pre-wrap;
  color: var(--text-muted);
}

.hidden { display: none !important; }

/* ── Page headers ── */
.page-header { margin-bottom: 2rem; }
.page-header h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-bright);
  margin-bottom: 0.5rem;
  text-shadow: var(--glow-soft);
}
.page-header h2::after { display: none; }
.page-header p {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ── Chat/Messages ── */
.conversation-item {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.25s;
  margin-bottom: 0.5rem;
}
.conversation-item:hover {
  border-color: rgba(255,255,255,0.15);
  background: var(--bg-hover);
  box-shadow: 0 0 20px rgba(255,255,255,0.02);
}
.conversation-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border);
}
.conversation-info { flex: 1; }
.conversation-name { font-weight: 700; color: var(--text-bright); font-size: 0.875rem; }
.conversation-preview {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}
.conversation-time { font-size: 0.65rem; color: var(--text-muted); }
.unread-badge {
  background: #fff;
  color: #000;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  box-shadow: var(--glow-soft);
}

.chat-container {
  display: flex;
  flex-direction: column;
  height: 500px;
  max-height: 70vh;
}
.chat-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
}
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 0;
}
.message-bubble {
  max-width: 75%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
  word-wrap: break-word;
  font-size: 0.875rem;
}
.message-bubble.sent {
  background: #fff;
  color: #000;
  margin-left: auto;
  font-weight: 600;
  border-bottom-right-radius: 4px;
  box-shadow: var(--glow-soft);
}
.message-bubble.received {
  background: var(--bg-input);
  border: 1px solid var(--border);
  margin-right: auto;
  color: var(--text);
  border-bottom-left-radius: 4px;
}
.message-time {
  font-size: 0.6rem;
  opacity: 0.5;
  margin-top: 0.2rem;
}
.message-product-context {
  font-size: 0.65rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 0.2rem 0.5rem;
  margin-bottom: 0.4rem;
  border-radius: var(--radius-xs);
}
.chat-input-container {
  display: flex;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.chat-input-container input { flex: 1; }

/* ── Category badges ── */
.category-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  font-size: 0.65rem;
  font-weight: 600;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.category-badge.software { 
  background: rgba(255,255,255,0.06); color: #fff; border-color: rgba(255,255,255,0.15); 
}
.category-badge.crypto { 
  background: rgba(255,204,68,0.08); color: var(--warning); border-color: rgba(255,204,68,0.2);
}
.category-badge.accounts { 
  background: rgba(255,255,255,0.04); color: var(--accent-dim); border-color: rgba(255,255,255,0.1);
}
.category-badge.guides { 
  background: rgba(102,255,170,0.06); color: var(--success); border-color: rgba(102,255,170,0.15);
}

/* ── Stats (admin) ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 30px;
  background: transparent;
  border: none;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: all 0.35s;
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: '';
  position: absolute;
  bottom: -1px; left: -1px; right: -1px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #fff, transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.stat-card:hover {
  border-color: rgba(255,255,255,0.2);
  box-shadow: 0 4px 25px rgba(255,255,255,0.04);
  transform: translateY(-3px);
}
.stat-card:hover::after { opacity: 1; }

.stat-value {
  color: #fff;
  font-size: 1.75rem;
  font-weight: 800;
  text-shadow: var(--glow-soft);
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 500;
  margin-top: 4px;
}

/* ── Status ── */
.status-pending { color: var(--warning); font-weight: 600; }
.status-approved { color: var(--success); font-weight: 600; }
.status-rejected { color: var(--danger); font-weight: 600; }

/* ── Settings ── */
.settings-section {
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border);
}
.settings-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.settings-section h3 {
  margin-bottom: 20px;
  color: var(--text-bright);
  font-size: 1rem;
  font-weight: 700;
}

.color-preset-btn {
  padding: 6px 14px;
  border: 1px solid var(--border);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  transition: all 0.2s;
  border-radius: var(--radius-sm);
}
.color-preset-btn:hover { 
  border-color: #fff; 
  box-shadow: var(--glow-soft);
}

#page-auth h2 { animation: none; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .header, header { flex-direction: column; gap: 0.75rem; padding: 0.75rem 1rem; }
  header .container { flex-direction: column; }
  .nav { flex-wrap: wrap; justify-content: center; }
  .balance-display { flex-direction: column; gap: 1.5rem; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .profile-header { flex-direction: column; align-items: center; text-align: center; }
  .profile-stats { justify-content: center; }
  .chat-container { height: 400px; }
  .tabs { justify-content: center; }
  table { font-size: 0.75rem; }
  th, td { padding: 6px 8px; }
  .logo-main { font-size: 1rem; }
}

/* ── Daily Message SMS Popup ── */
@keyframes slideInRight {
  from { transform: translateX(120%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.daily-msg-popup {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 220px;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  z-index: 200;
  animation: slideInRight 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  box-shadow: 0 0 20px rgba(255,255,255,0.06), 0 8px 30px rgba(0,0,0,0.5);
}

.daily-msg-close {
  position: absolute;
  top: 6px;
  right: 10px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 2px 6px;
  line-height: 1;
  transition: color 0.2s;
  width: auto;
}
.daily-msg-close:hover { color: var(--text-bright); }

.daily-msg-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.daily-msg-text {
  font-size: 0.82rem;
  color: var(--text);
  line-height: 1.5;
}
