/* ============================================================
   TMZ - Geleceğin Platform Stylesheet
   Dark Theme | Neon Accents | Production Quality
   ============================================================ */

/* --- CSS Variables --- */
:root {
  /* Backgrounds */
  --bg-base: #0a0a0f;
  --bg-secondary: #111122;
  --bg-card: #1a1a2e;
  --bg-card-hover: #1f1f36;
  --bg-input: #0d0d1a;
  --bg-sidebar: #0e0e1a;
  --bg-navbar: rgba(10, 10, 15, 0.85);
  --bg-modal-overlay: rgba(0, 0, 0, 0.7);

  /* Accent Colors */
  --accent-primary: #00f0ff;
  --accent-primary-glow: rgba(0, 240, 255, 0.4);
  --accent-primary-dim: rgba(0, 240, 255, 0.15);
  --accent-gold: #ffd700;
  --accent-gold-glow: rgba(255, 215, 0, 0.4);
  --accent-green: #00ff88;
  --accent-green-glow: rgba(0, 255, 136, 0.4);
  --accent-red: #ff4466;
  --accent-red-glow: rgba(255, 68, 102, 0.4);
  --accent-warning: #ffaa33;

  /* Text */
  --text-primary: #e8e8f0;
  --text-secondary: #a0a0b8;
  --text-muted: #666680;
  --text-inverse: #0a0a0f;

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-default: rgba(255, 255, 255, 0.1);
  --border-glow: rgba(0, 240, 255, 0.3);
  --border-accent: rgba(0, 240, 255, 0.5);

  /* Typography */
  --font-heading: 'Orbitron', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-neon: 0 0 20px rgba(0, 240, 255, 0.3), 0 0 60px rgba(0, 240, 255, 0.1);
  --shadow-gold: 0 0 20px rgba(255, 215, 0, 0.3), 0 0 60px rgba(255, 215, 0, 0.1);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Layout */
  --sidebar-width: 260px;
  --navbar-height: 64px;
  --max-width: 1200px;
}

/* ============================================================
   1. RESET / BASE
   ============================================================ */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-base);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-gold);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

::selection {
  background: var(--accent-primary);
  color: var(--text-inverse);
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-base);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-card);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ============================================================
   2. NAVBAR
   ============================================================ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--navbar-height);
  background: var(--bg-navbar);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 1px 0 rgba(0, 240, 255, 0.08);
  z-index: 1000;
  transition: background var(--transition-base);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

.nav-logo span {
  color: var(--accent-primary);
  text-shadow: 0 0 10px var(--accent-primary-glow);
}

.nav-logo:hover {
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  position: relative;
}

.nav-link:hover {
  color: var(--accent-primary);
  background: var(--accent-primary-dim);
}

.nav-link.active {
  color: var(--accent-primary);
  background: var(--accent-primary-dim);
}

.nav-user-menu {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color var(--transition-fast);
}

.mobile-toggle:hover {
  color: var(--accent-primary);
}

/* ============================================================
   3. HERO SECTION
   ============================================================ */

.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--navbar-height);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(0, 240, 255, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(255, 215, 0, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(0, 255, 136, 0.04) 0%, transparent 50%),
    var(--bg-base);
  z-index: 0;
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.hero-particles::before,
.hero-particles::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 6px var(--accent-primary-glow);
  animation: floatUp 6s infinite ease-in-out;
}

.hero-particles::before {
  left: 10%;
  animation-delay: 0s;
}

.hero-particles::after {
  left: 30%;
  animation-delay: 2s;
}

@keyframes floatUp {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  100% {
    transform: translateY(-10vh) scale(1);
    opacity: 0;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 48px 24px;
  max-width: 800px;
}

.hero-stats-top {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 32px;
}

.hero-stat {
  text-align: center;
}

.hero-stat-icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 2px;
}

.hero-stat-value {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-primary);
  text-shadow: 0 0 10px var(--accent-primary-glow);
  display: block;
}

.hero-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--text-primary);
  text-shadow: 0 0 40px var(--accent-primary-glow);
}

.hero-title span {
  color: var(--accent-primary);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.7;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all var(--transition-base);
}

.hero-btn:hover {
  transform: scale(1.02);
}

.hero-btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), #00c4d9);
  color: var(--text-inverse);
  box-shadow: 0 0 30px var(--accent-primary-glow);
}

.hero-btn-primary:hover {
  box-shadow: 0 0 50px var(--accent-primary-glow);
  transform: scale(1.04);
}

.hero-btn-outline {
  background: transparent;
  color: var(--accent-primary);
  border: 2px solid var(--accent-primary);
  box-shadow: 0 0 10px var(--accent-primary-dim);
}

.hero-btn-outline:hover {
  background: var(--accent-primary-dim);
  box-shadow: 0 0 30px var(--accent-primary-glow);
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  animation: bounce 2s infinite;
  cursor: pointer;
}

.hero-scroll::after {
  content: '';
  width: 2px;
  height: 24px;
  background: linear-gradient(to bottom, var(--accent-primary), transparent);
  border-radius: 1px;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

/* ============================================================
   4. BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: scale(1.02);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), #00c4d9);
  color: var(--text-inverse);
  box-shadow: 0 0 20px var(--accent-primary-dim);
}

.btn-primary:hover {
  box-shadow: 0 0 40px var(--accent-primary-glow), 0 4px 16px rgba(0, 240, 255, 0.2);
  background: linear-gradient(135deg, #33f3ff, #00e0f5);
}

.btn-outline {
  background: transparent;
  color: var(--accent-primary);
  border: 1px solid var(--accent-primary);
}

.btn-outline:hover {
  background: var(--accent-primary-dim);
  box-shadow: 0 0 20px var(--accent-primary-dim);
  color: var(--accent-primary);
}

.btn-success {
  background: linear-gradient(135deg, var(--accent-green), #00cc6a);
  color: var(--text-inverse);
  box-shadow: 0 0 20px var(--accent-green-glow);
}

.btn-success:hover {
  box-shadow: 0 0 40px var(--accent-green-glow), 0 4px 16px rgba(0, 255, 136, 0.2);
}

.btn-danger {
  background: linear-gradient(135deg, var(--accent-red), #e63950);
  color: #fff;
  box-shadow: 0 0 20px var(--accent-red-glow);
}

.btn-danger:hover {
  box-shadow: 0 0 40px var(--accent-red-glow), 0 4px 16px rgba(255, 68, 102, 0.2);
}

.btn-warning {
  background: linear-gradient(135deg, var(--accent-gold), #e6c200);
  color: var(--text-inverse);
  box-shadow: 0 0 20px var(--accent-gold-glow);
}

.btn-warning:hover {
  box-shadow: 0 0 40px var(--accent-gold-glow), 0 4px 16px rgba(255, 215, 0, 0.2);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-link {
  background: transparent;
  border: none;
  color: var(--accent-primary);
  padding: 4px 8px;
  font-weight: 500;
  box-shadow: none;
}

.btn-link:hover {
  background: var(--accent-primary-dim);
  transform: none;
  box-shadow: none;
  color: var(--accent-gold);
}

.btn-outline-danger {
  background: transparent;
  color: var(--accent-red);
  border: 1px solid var(--accent-red);
}

.btn-outline-danger:hover {
  background: rgba(255, 68, 102, 0.1);
  box-shadow: 0 0 20px var(--accent-red-glow);
  color: var(--accent-red);
}

/* ============================================================
   5. FORMS
   ============================================================ */

.form-group {
  margin-bottom: 20px;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-control {
  display: block;
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-primary);
  background: var(--bg-input);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  outline: none;
}

.form-control::placeholder {
  color: var(--text-muted);
}

.form-control:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-primary-dim), 0 0 15px var(--accent-primary-dim);
  background: #12122a;
}

.form-control:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-select {
  display: block;
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-primary);
  background: var(--bg-input);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666680' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-select:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-primary-dim), 0 0 15px var(--accent-primary-dim);
  background-color: #12122a;
}

.form-row {
  display: flex;
  gap: 16px;
}

.form-row > .form-group {
  flex: 1;
  margin-bottom: 0;
}

.form {
  width: 100%;
}

label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============================================================
   6. CARDS
   ============================================================ */

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
}

.card:hover {
  border-color: var(--border-default);
  box-shadow: var(--shadow-md);
}

.card-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.card-header h3, .card-header h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--text-primary);
}

.card-body {
  padding: 24px;
}

.content-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition-base);
}

.content-card:hover {
  border-color: var(--border-default);
  box-shadow: var(--shadow-md);
}

/* Product Cards */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition-base);
  position: relative;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: 0 0 30px var(--accent-primary-dim), var(--shadow-lg);
}

.product-card-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--accent-primary-dim);
  color: var(--accent-primary);
  border: 1px solid rgba(0, 240, 255, 0.2);
}

.product-card-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.product-card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  flex-grow: 1;
  line-height: 1.6;
}

.product-card-price {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: 16px;
}

.product-card-action {
  margin-top: auto;
}

/* Stat Cards */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  transition: all var(--transition-base);
  text-align: center;
}

.stat-card:hover {
  border-color: var(--border-default);
  box-shadow: var(--shadow-md);
}

.stat-card .stat-value {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent-primary);
  display: block;
  margin-bottom: 4px;
}

.stat-card .stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.stats-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.stats-row > .stat-card {
  flex: 1;
  min-width: 180px;
}

/* Balance Card */
.balance-card {
  background: linear-gradient(135deg, var(--bg-card), #1e1e3a);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.balance-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--accent-primary-dim), transparent 70%);
  border-radius: 50%;
}

.balance-card .balance-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.balance-card .balance-amount {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-primary);
  text-shadow: 0 0 10px var(--accent-primary-glow);
}

.balance-card .balance-sub {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 8px;
}

/* ============================================================
   7. AUTH
   ============================================================ */

.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(0, 240, 255, 0.05) 0%, transparent 60%),
    var(--bg-base);
}

.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 40px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
}

.auth-card-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-card-header h1 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.auth-card-header p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.auth-logo {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  display: inline-block;
}

.auth-logo span {
  color: var(--accent-primary);
  text-shadow: 0 0 10px var(--accent-primary-glow);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.auth-form .btn {
  margin-top: 8px;
}

.auth-card-footer {
  text-align: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.auth-card-footer a {
  color: var(--accent-primary);
  font-weight: 600;
}

.auth-card-footer a:hover {
  color: var(--accent-gold);
}

/* ============================================================
   8. PANEL LAYOUT
   ============================================================ */

.panel-layout {
  display: flex;
  min-height: 100vh;
  padding-top: var(--navbar-height);
}

.panel-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  padding: 32px;
  min-height: calc(100vh - var(--navbar-height));
  background: var(--bg-base);
}

/* ============================================================
   9. SIDEBAR
   ============================================================ */

.sidebar {
  position: fixed;
  top: var(--navbar-height);
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  z-index: 999;
  overflow-y: auto;
  transition: transform var(--transition-base);
}

.sidebar-header {
  padding: 20px 20px 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.sidebar-logo {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.sidebar-logo span {
  color: var(--accent-primary);
}

.sidebar-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.sidebar-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-primary), #00c4d9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-inverse);
  flex-shrink: 0;
}

.sidebar-user-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.sidebar-user-balance {
  font-size: 0.75rem;
  color: var(--accent-green);
  font-weight: 500;
}

.sidebar-user-role {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sidebar-nav {
  flex: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  border-left: 3px solid transparent;
  text-decoration: none;
}

.sidebar-link:hover {
  color: var(--text-primary);
  background: var(--accent-primary-dim);
}

.sidebar-link.active {
  color: var(--accent-primary);
  background: var(--accent-primary-dim);
  border-left-color: var(--accent-primary);
  font-weight: 600;
}

.sidebar-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border-subtle);
}

.sidebar-logout {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
}

.sidebar-logout:hover {
  color: var(--accent-red);
  background: rgba(255, 68, 102, 0.1);
}

/* ============================================================
   10. ADMIN SIDEBAR SPECIFIC
   ============================================================ */

.admin-sidebar {
  background: #0c0c1e;
  border-right-color: rgba(0, 240, 255, 0.1);
}

.admin-sidebar .sidebar-link.active {
  border-left-color: var(--accent-gold);
  color: var(--accent-gold);
  background: rgba(255, 215, 0, 0.08);
}

.admin-badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 215, 0, 0.15);
  color: var(--accent-gold);
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.admin-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-gold), #e6c200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-inverse);
  flex-shrink: 0;
  border: 2px solid rgba(255, 215, 0, 0.4);
}

/* ============================================================
   11. TABLES
   ============================================================ */

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  background: var(--bg-card);
}

.table thead {
  background: rgba(255, 255, 255, 0.02);
}

.table th {
  padding: 14px 16px;
  text-align: left;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-primary);
  vertical-align: middle;
}

.table tbody tr {
  transition: background var(--transition-fast);
}

.table tbody tr:hover {
  background: rgba(0, 240, 255, 0.03);
}

.table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.01);
}

.table tbody tr:nth-child(even):hover {
  background: rgba(0, 240, 255, 0.04);
}

.table tbody tr:last-child td {
  border-bottom: none;
}

/* ============================================================
   12. ALERTS
   ============================================================ */

.alert {
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 16px;
  border: 1px solid transparent;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}

.alert:last-child {
  margin-bottom: 0;
}

.alert-success {
  background: rgba(0, 255, 136, 0.08);
  border-color: rgba(0, 255, 136, 0.2);
  color: var(--accent-green);
}

.alert-error {
  background: rgba(255, 68, 102, 0.08);
  border-color: rgba(255, 68, 102, 0.2);
  color: var(--accent-red);
}

.alert-warning {
  background: rgba(255, 170, 51, 0.08);
  border-color: rgba(255, 170, 51, 0.2);
  color: var(--accent-warning);
}

.alert-info {
  background: rgba(0, 240, 255, 0.08);
  border-color: rgba(0, 240, 255, 0.2);
  color: var(--accent-primary);
}

.alert-danger {
  background: rgba(255, 68, 102, 0.1);
  border-color: rgba(255, 68, 102, 0.3);
  color: var(--accent-red);
  font-weight: 600;
}

/* ============================================================
   13. BADGES
   ============================================================ */

.badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  line-height: 1.5;
  white-space: nowrap;
}

.badge-success {
  background: rgba(0, 255, 136, 0.12);
  color: var(--accent-green);
  border: 1px solid rgba(0, 255, 136, 0.25);
}

.badge-danger {
  background: rgba(255, 68, 102, 0.12);
  color: var(--accent-red);
  border: 1px solid rgba(255, 68, 102, 0.25);
}

.badge-warning {
  background: rgba(255, 170, 51, 0.12);
  color: var(--accent-warning);
  border: 1px solid rgba(255, 170, 51, 0.25);
}

.badge-info {
  background: rgba(0, 240, 255, 0.12);
  color: var(--accent-primary);
  border: 1px solid rgba(0, 240, 255, 0.25);
}

.badge-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  border: 1px solid var(--border-default);
}

/* ============================================================
   14. MODAL
   ============================================================ */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-modal-overlay);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 24px;
  animation: fadeIn 0.2s ease;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg), 0 0 40px var(--accent-primary-dim);
  animation: slideUp 0.3s ease;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  background: var(--bg-card);
  z-index: 1;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.modal-header h2, .modal-header h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--text-primary);
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  line-height: 1;
}

.modal-close:hover {
  color: var(--accent-red);
  background: rgba(255, 68, 102, 0.1);
}

.modal-body {
  padding: 24px;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ============================================================
   15. TABS
   ============================================================ */

.tabs {
  display: flex;
  border-bottom: 1px solid var(--border-subtle);
  gap: 0;
  margin-bottom: 24px;
}

.tab-btn {
  padding: 12px 24px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  font-family: var(--font-body);
  margin-bottom: -1px;
}

.tab-btn:hover {
  color: var(--text-secondary);
}

.tab-btn.active {
  color: var(--accent-primary);
  border-bottom-color: var(--accent-primary);
  font-weight: 600;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

/* ============================================================
   16. PAGE ELEMENTS
   ============================================================ */

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

.page-header h1 {
  font-size: 1.75rem;
}

.page-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition-fast);
  margin-bottom: 16px;
}

.back-link:hover {
  color: var(--accent-primary);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.section-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.products-section {
  margin-bottom: 48px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

/* Quick Actions */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
  text-align: center;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.85rem;
}

.action-btn:hover {
  transform: translateY(-2px);
  border-color: var(--border-default);
  box-shadow: var(--shadow-md);
}

.action-btn .icon {
  font-size: 1.75rem;
}

.action-deposit {
  border-color: rgba(0, 255, 136, 0.2);
}

.action-deposit:hover {
  border-color: var(--accent-green);
  box-shadow: 0 0 20px var(--accent-green-glow);
}

.action-withdraw {
  border-color: rgba(255, 68, 102, 0.2);
}

.action-withdraw:hover {
  border-color: var(--accent-red);
  box-shadow: 0 0 20px var(--accent-red-glow);
}

.action-orders {
  border-color: rgba(0, 240, 255, 0.2);
}

.action-orders:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 0 20px var(--accent-primary-glow);
}

.action-support {
  border-color: rgba(255, 215, 0, 0.2);
}

.action-support:hover {
  border-color: var(--accent-gold);
  box-shadow: 0 0 20px var(--accent-gold-glow);
}

/* Stat Icon (for dashboard stat cards) */
.stat-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  flex-shrink: 0;
}

.stat-info {
  flex: 1;
}

/* Quick Links */
.quick-link-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: all var(--transition-base);
  cursor: pointer;
}

.quick-link-card:hover {
  border-color: var(--border-default);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.quick-links {
  margin-bottom: 32px;
}

.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.welcome-section {
  margin-bottom: 32px;
}

.welcome-section h1,
.welcome-section h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.welcome-section p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ============================================================
   17. MESSAGES / THREAD
   ============================================================ */

.messages-thread {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 8px 0;
  max-height: 500px;
  overflow-y: auto;
}

.message-item {
  display: flex;
  flex-direction: column;
  max-width: 75%;
}

.message-user {
  align-self: flex-end;
}

.message-admin {
  align-self: flex-start;
}

.message-bubble {
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  line-height: 1.6;
  position: relative;
}

.message-user .message-bubble {
  background: linear-gradient(135deg, var(--accent-primary-dim), rgba(0, 240, 255, 0.08));
  border: 1px solid rgba(0, 240, 255, 0.15);
  color: var(--text-primary);
  border-radius: var(--radius-lg) var(--radius-lg) 4px var(--radius-lg);
}

.message-admin .message-bubble {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  color: var(--text-primary);
  border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 4px;
}

.message-sender {
  font-size: 0.7rem;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sender-badge {
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 1px 6px;
  border-radius: var(--radius-full);
}

.sender-admin {
  background: rgba(255, 215, 0, 0.15);
  color: var(--accent-gold);
}

.sender-user {
  background: rgba(0, 240, 255, 0.15);
  color: var(--accent-primary);
}

.message-text {
  color: var(--text-primary);
}

.message-time {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 6px;
  display: block;
}

/* ============================================================
   18. TRANSACTION TYPES
   ============================================================ */

.tx-type {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.type-deposit {
  color: var(--accent-green);
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.2);
}

.type-withdraw {
  color: var(--accent-red);
  background: rgba(255, 68, 102, 0.1);
  border: 1px solid rgba(255, 68, 102, 0.2);
}

.amount-positive {
  color: var(--accent-green);
  font-weight: 600;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.amount-negative {
  color: var(--accent-red);
  font-weight: 600;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

/* ============================================================
   19. PROFILE
   ============================================================ */

.profile-info {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.profile-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.profile-info-row:last-child {
  border-bottom: none;
}

.profile-info-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.profile-info-value {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  font-family: var(--font-mono);
}

/* ============================================================
   20. UTILITIES
   ============================================================ */

.text-center {
  text-align: center;
}

.text-muted {
  color: var(--text-muted);
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  text-align: center;
  color: var(--text-muted);
}

.empty-state .icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.4;
}

.empty-state h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 0.85rem;
  max-width: 360px;
}

.action-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-form {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-form .form-control {
  width: auto;
  min-width: 200px;
}

/* ============================================================
   19b. SIDEBAR TOGGLE BUTTON (Base - hidden on desktop)
   ============================================================ */
.sidebar-toggle-btn {
  display: none;
}

/* ============================================================
   21. MEDIA QUERIES - RESPONSIVE
   ============================================================ */

/* Tablet - 768px */
/* ============================================================
   20. RESPONSIVE - Small Desktop / Landscape Tablet (1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .panel-layout .sidebar {
    width: 220px;
  }
  .panel-layout .panel-content {
    margin-left: 220px;
  }
  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
  }
}

/* ============================================================
   21. RESPONSIVE - Tablet (768px)
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --navbar-height: 56px;
  }

  /* --- Base --- */
  body { font-size: 0.9rem; }
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.35rem; }
  h3 { font-size: 1.1rem; }
  .container { padding: 0 16px; }

  /* --- Navbar --- */
  .nav-container { padding: 0 16px; }
  .nav-links {
    position: fixed;
    top: var(--navbar-height);
    left: 0; right: 0;
    background: rgba(10, 10, 15, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    flex-direction: column;
    padding: 16px;
    gap: 6px;
    display: none;
    z-index: 999;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
  }
  .nav-links.open { display: flex; }
  .nav-link { width: 100%; padding: 14px 16px; border-radius: var(--radius-md); font-size: 1rem; }
  .nav-user-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--border-subtle);
    margin-top: 6px;
  }
  .nav-user-menu .nav-user-name {
    text-align: center;
    padding: 8px;
    font-size: 0.9rem;
  }
  .nav-user-menu .btn {
    width: 100%;
    justify-content: center;
  }
  .mobile-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
  }
  .mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s;
  }
  .mobile-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .mobile-toggle.active span:nth-child(2) { opacity: 0; }
  .mobile-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* --- Menu Overlay --- */
  .menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 998;
  }
  .menu-overlay.active { display: block; }

  /* --- Hero --- */
  .hero { min-height: 70vh; }
  .hero-content { padding: 32px 16px; }
  .hero-title { font-size: 2rem; }
  .hero-subtitle { font-size: 0.95rem; }
  .hero-stats-top { gap: 16px; flex-wrap: wrap; justify-content: center; }
  .hero-stat { flex: 0 0 auto; min-width: 90px; }
  .hero-stat-value { font-size: 1.1rem; }
  .hero-cta { flex-wrap: wrap; justify-content: center; }
  .hero-scroll { bottom: 16px; font-size: 0.65rem; }

  /* --- Panel Layout (Sidebar slide-over) --- */
  .panel-layout { position: relative; }
  .sidebar {
    position: fixed !important;
    top: 0 !important; left: 0; bottom: 0;
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    width: 280px !important;
    max-width: 85vw;
    box-shadow: 4px 0 30px rgba(0,0,0,0.5);
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 999;
    transition: opacity 0.3s;
  }
  .sidebar-overlay.active { display: block; }
  .panel-content {
    margin-left: 0 !important;
    padding: 16px;
    width: 100%;
  }

  /* --- Mobile Sidebar Toggle Button --- */
  .sidebar-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    cursor: pointer;
    margin-right: 12px;
    flex-shrink: 0;
  }
  .sidebar-toggle-btn:hover {
    border-color: var(--accent-primary);
    background: var(--accent-primary-dim);
  }

  /* --- Forms --- */
  .form-row { flex-direction: column; gap: 0; }
  .form-row .form-group { width: 100%; }
  .form-control, .form-select { padding: 12px 14px; font-size: 0.9rem; }
  label { font-size: 0.85rem; }

  /* --- Cards --- */
  .card-body { padding: 16px; }
  .content-card { padding: 16px; }
  .card-header { flex-wrap: wrap; gap: 12px; }
  .card-header h2 { font-size: 1.15rem; }

  /* --- Products --- */
  .products-section { padding: 60px 0; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
  .product-card { padding: 20px; }
  .product-card-title { font-size: 1rem; }
  .product-card-price { font-size: 1.25rem; }
  .section-title { font-size: 1.75rem; }

  /* --- Stats --- */
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stats-sm { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat-card { padding: 16px; }
  .stat-card .stat-value { font-size: 1.25rem; }
  .stat-card .stat-icon { width: 40px; height: 40px; }
  .stats-row { flex-direction: column; gap: 10px; }
  .stats-row > .stat-card { min-width: unset; flex: none; }

  /* --- Grids --- */
  .content-grid { grid-template-columns: 1fr; gap: 16px; }
  .quick-actions { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .action-btn { padding: 18px 12px; font-size: 0.85rem; }
  .quick-links-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .quick-link-card { padding: 16px; }

  /* --- Auth --- */
  .auth-container { padding: 24px 16px; min-height: calc(100vh - 56px); }
  .auth-card { padding: 28px 20px; border-radius: var(--radius-lg); max-width: 100%; }
  .auth-card-header h2 { font-size: 1.5rem; }
  .auth-logo { width: 40px; height: 40px; }

  /* --- Tables: Horizontal Scroll --- */
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -16px;
    padding: 0 16px;
  }
  .table { font-size: 0.8rem; min-width: 600px; }
  .table th, .table td { padding: 10px 12px; white-space: nowrap; }
  .table th { font-size: 0.7rem; }

  /* --- Page Header --- */
  .page-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .page-header h1 { font-size: 1.4rem; }
  .page-header p { font-size: 0.85rem; }
  .page-header-actions { width: 100%; flex-wrap: wrap; gap: 8px; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 12px; }

  /* --- Modals --- */
  .modal { max-width: 95%; margin: 20px; max-height: 85vh; }
  .modal-header { padding: 16px; }
  .modal-body { padding: 16px; max-height: calc(85vh - 70px); overflow-y: auto; }

  /* --- Messages/Thread --- */
  .message-item { max-width: 90%; }
  .message-bubble { padding: 14px; }
  .messages-thread { padding: 12px 0; }

  /* --- Balance --- */
  .balance-card { padding: 20px; }
  .balance-card .balance-amount { font-size: 1.6rem; }
  .balance-card .balance-label { font-size: 0.8rem; }

  /* --- Tabs --- */
  .tabs { gap: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .tab-btn { padding: 12px 16px; font-size: 0.85rem; flex: 1; text-align: center; white-space: nowrap; }

  /* --- Profile --- */
  .profile-info-row { flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 16px; }
  .profile-info-label { min-width: unset; font-size: 0.75rem; }

  /* --- Action Groups (Admin buttons) --- */
  .action-group { display: flex; flex-wrap: wrap; gap: 4px; }
  .action-group .btn { font-size: 0.72rem; padding: 6px 10px; }

  /* --- Filter Form --- */
  .filter-form { width: 100%; flex-direction: column; gap: 8px; }
  .filter-form select, .filter-form .form-select { width: 100%; }

  /* --- Welcome Section --- */
  .welcome-section { margin-bottom: 16px; }
  .welcome-section h1 { font-size: 1.4rem; }

  /* --- Quick Links --- */
  .quick-links h2 { font-size: 1.15rem; }

  /* --- Alerts --- */
  .alert { padding: 14px 16px; font-size: 0.85rem; }

  /* --- Empty State --- */
  .empty-state { padding: 40px 16px; }
  .empty-state h3 { font-size: 1rem; }
  .empty-state p { font-size: 0.85rem; }

  /* --- Navbar scrolled state --- */
  .navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.4); }

  /* --- Hero particles hide on mobile for performance --- */
  .hero-particles .particle:nth-child(n+8) { display: none; }
}

/* ============================================================
   22. RESPONSIVE - Mobile (480px)
   ============================================================ */
@media (max-width: 480px) {
  :root { --navbar-height: 52px; }
  body { font-size: 0.85rem; }

  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }
  h3 { font-size: 1rem; }
  h4 { font-size: 0.95rem; }

  .container { padding: 0 12px; }

  /* --- Navbar --- */
  .nav-logo { font-size: 1rem; gap: 6px; }
  .nav-logo-icon { width: 26px; height: 26px; }
  .nav-links { padding: 12px; gap: 2px; }
  .nav-link { padding: 12px 14px; font-size: 0.9rem; }
  .nav-user-menu .btn { font-size: 0.85rem; padding: 10px 16px; }

  /* --- Hero --- */
  .hero { min-height: 65vh; }
  .hero-content { padding: 24px 12px; }
  .hero-title { font-size: 1.6rem; }
  .hero-subtitle { font-size: 0.85rem; }
  .hero-stats-top { gap: 10px; }
  .hero-stat { min-width: 70px; padding: 4px; }
  .hero-stat-value { font-size: 1rem; }
  .hero-stat-label { font-size: 0.65rem; letter-spacing: 0.5px; }
  .hero-cta { flex-direction: column; gap: 10px; width: 100%; }
  .hero-btn { width: 100%; padding: 14px 20px; font-size: 0.9rem; }
  .hero-scroll { display: none; }
  .hero-stat-icon { font-size: 1.2rem; }

  /* --- Buttons --- */
  .btn { padding: 10px 16px; font-size: 0.82rem; }
  .btn-lg { padding: 12px 20px; font-size: 0.9rem; }
  .btn-sm { padding: 6px 12px; font-size: 0.72rem; }
  .btn-block { width: 100%; }

  /* --- Cards --- */
  .card-body { padding: 14px; }
  .content-card { padding: 14px; }
  .card-header { gap: 8px; }
  .card-header h2 { font-size: 1.05rem; }

  /* --- Products --- */
  .products-section { padding: 40px 0; }
  .products-grid { grid-template-columns: 1fr; gap: 12px; }
  .product-card { padding: 18px; }
  .product-card-title { font-size: 0.95rem; }
  .product-card-desc { font-size: 0.8rem; }
  .product-card-price { font-size: 1.15rem; }
  .product-card-badge { font-size: 0.65rem; padding: 3px 8px; top: 12px; right: 12px; }
  .section-title { font-size: 1.5rem; }
  .section-desc { font-size: 0.85rem; }

  /* --- Stats --- */
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .stats-sm { grid-template-columns: 1fr 1fr; gap: 8px; }
  .stat-card { padding: 14px; }
  .stat-card .stat-value { font-size: 1.15rem; }
  .stat-card .stat-label { font-size: 0.7rem; }
  .stat-card .stat-icon { width: 36px; height: 36px; }
  .stat-card .stat-icon svg { width: 20px; height: 20px; }

  /* --- Grids --- */
  .quick-actions { grid-template-columns: 1fr 1fr; gap: 8px; }
  .action-btn { padding: 16px 10px; font-size: 0.8rem; gap: 6px; }
  .action-btn svg { width: 20px; height: 20px; }
  .quick-links-grid { grid-template-columns: 1fr; gap: 8px; }
  .quick-link-card { padding: 14px; font-size: 0.85rem; }

  /* --- Panel --- */
  .panel-content { padding: 12px; }
  .sidebar { width: 100%; max-width: 280px; }
  .sidebar-toggle-btn { width: 36px; height: 36px; }

  /* --- Auth --- */
  .auth-container { padding: 16px 8px; }
  .auth-card { padding: 22px 14px; }
  .auth-card-header h2 { font-size: 1.3rem; }
  .auth-card-header p { font-size: 0.8rem; }
  .auth-logo { width: 36px; height: 36px; }
  .auth-form { gap: 14px; }
  .auth-card-footer { font-size: 0.82rem; }

  /* --- Tables --- */
  .table { font-size: 0.72rem; min-width: 480px; }
  .table th { font-size: 0.65rem; letter-spacing: 0.5px; }
  .table th, .table td { padding: 8px 10px; }

  /* --- Page Header --- */
  .page-header { gap: 8px; }
  .page-header h1 { font-size: 1.25rem; }
  .page-header p { font-size: 0.8rem; }
  .page-header-actions { gap: 6px; }
  .page-header-actions .btn { font-size: 0.78rem; padding: 8px 14px; }
  .back-link { font-size: 0.8rem; }

  /* --- Modals --- */
  .modal { max-width: 100%; margin: 0; border-radius: 16px 16px 0 0; max-height: 90vh; align-self: flex-end; }
  .modal-header { padding: 14px; }
  .modal-header h2 { font-size: 1.1rem; }
  .modal-body { padding: 14px; }
  .modal-close { font-size: 1.3rem; }

  /* --- Forms --- */
  .form-group { margin-bottom: 14px; }
  .form-control, .form-select { padding: 10px 12px; font-size: 0.85rem; }
  label { font-size: 0.8rem; margin-bottom: 4px; }

  /* --- Messages/Thread --- */
  .message-item { max-width: 95%; }
  .message-bubble { padding: 12px; }
  .message-sender { font-size: 0.7rem; }
  .message-text { font-size: 0.85rem; }
  .message-time { font-size: 0.6rem; }

  /* --- Balance Card --- */
  .balance-card { padding: 18px; }
  .balance-card .balance-amount { font-size: 1.35rem; }
  .balance-card .balance-label { font-size: 0.72rem; }

  /* --- Tabs --- */
  .tab-btn { padding: 10px 12px; font-size: 0.78rem; }

  /* --- Profile --- */
  .profile-info-row { padding: 10px 12px; }

  /* --- Action Groups --- */
  .action-group .btn { font-size: 0.68rem; padding: 5px 8px; }

  /* --- Alerts --- */
  .alert { padding: 12px 14px; font-size: 0.8rem; border-radius: var(--radius-md); }

  /* --- Badges --- */
  .badge { font-size: 0.65rem; padding: 2px 8px; }

  /* --- Empty State --- */
  .empty-state { padding: 32px 12px; }
  .empty-state h3 { font-size: 0.95rem; }
  .empty-state svg { width: 48px; height: 48px; }

  /* --- Welcome --- */
  .welcome-section { margin-bottom: 12px; }
  .welcome-section h1 { font-size: 1.25rem; }

  /* --- Filter --- */
  .filter-form select { font-size: 0.8rem; padding: 8px 12px; }

  /* --- Tx types --- */
  .tx-type { font-size: 0.7rem; padding: 2px 8px; }
  .amount-positive, .amount-negative { font-size: 0.8rem; }

  /* --- Hide scroll indicator on mobile --- */
  .hero-scroll { display: none; }

  /* --- Sidebar footer --- */
  .sidebar-footer .sidebar-link { font-size: 0.82rem; padding: 10px 16px; }
}
