/* ==========================================================================
   AdVantage Pro - Design System & Stylesheet (V5.1 - True High-Contrast Flat UI)
   Core Philosophy: Flat Design, High-Contrast (#FFD700 Yellow - Black - White),
   Functional & Dense (High Information Density: Kho, Đã bán, Tỷ lệ khiếu nại, Tốc độ IP)
   SOLVED: Zero washed-out colors on white background! All borders & text in Light mode are sharp & high contrast.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700;800;900&display=swap');

:root {
  /* Dark Theme Default Palette */
  --bg-primary: #09090b;       /* Deepest Carbon Black */
  --bg-secondary: #121215;     /* Dark Slate Gray */
  --bg-card: #18181c;          /* Solid Flat Charcoal */
  --bg-card-hover: #202026;
  --bg-table-header: #1f1f24;
  
  --text-primary: #ffffff;     /* Crisp Pure White */
  --text-secondary: #a1a1aa;   /* Light Slate Text */
  --text-muted: #71717a;
  
  --accent-yellow: #FFD700;    /* High-Contrast Vibrant Gold/Yellow */
  --accent-yellow-hover: #e6c200;
  --text-on-yellow: #000000;   /* Deep Black on Yellow CTA */
  --text-highlight: #FFD700;   /* Text color for numbers/highlights in dark mode */
  
  --danger-flat: #ef4444;      /* Solid Flat Red */
  --success-flat: #22c55e;     /* Solid Flat Green */
  --info-flat: #3b82f6;        /* Solid Flat Blue */
  --warning-flat: #f59e0b;     /* Solid Flat Amber */
  
  --border-flat: #27272a;      /* Sharp border in dark mode */
  --border-focus: #FFD700;
  --border-light: #3f3f46;
  
  --card-shadow: none;
  --card-shadow-hover: 0 0 0 1px var(--accent-yellow);
  
  --radius-none: 0px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  
  /* Fonts - Optimized for Vietnamese */
  --font-main: 'Be Vietnam Pro', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --transition-fast: 0.15s ease;
}

/* ==========================================================================
   LIGHT THEME OVERRIDES (CRITICAL FIX: NO WASHED OUT YELLOW ON WHITE!)
   In Light Mode:
   - Primary Background is Pure White (#ffffff)
   - All Borders become 2px SOLID BLACK (#000000) for striking contrast!
   - Numbers and highlights that were yellow in dark mode become SOLID DEEP BLACK (#000000) or BOLD GREEN/BLUE!
   - Cards get neo-brutalist flat shadow (box-shadow: 4px 4px 0px #000000) so they NEVER sink or wash into the background!
   ========================================================================== */
[data-theme="light"] {
  --bg-primary: #ffffff;
  --bg-secondary: #f3f4f6;     /* Crisp Light Gray for sections/navbar */
  --bg-card: #ffffff;          /* Pure White cards */
  --bg-card-hover: #fffef2;    /* Subtle yellow tint on card hover */
  --bg-table-header: #e5e7eb;
  
  --text-primary: #000000;     /* Pure Black text for maximum contrast */
  --text-secondary: #374151;   /* Dark Slate */
  --text-muted: #6b7280;
  
  --accent-yellow: #FFD700;    /* Keep vibrant yellow for SOLID backgrounds */
  --text-on-yellow: #000000;
  --text-highlight: #000000;   /* IN LIGHT MODE: Highlights MUST be solid black or dark, NEVER yellow text on white! */
  
  --danger-flat: #dc2626;      /* Darker red for light background readability */
  --success-flat: #16a34a;     /* Darker green for light background readability */
  --info-flat: #2563eb;        /* Darker blue */
  
  --border-flat: #000000;      /* Razor sharp 2px BLACK borders on white! */
  --border-focus: #000000;
  --border-light: #000000;
  
  --card-shadow: 3px 3px 0px #000000;         /* Neo-Brutalist Flat Shadow! */
  --card-shadow-hover: 5px 5px 0px #000000;   /* Deeper shadow on hover! */
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

button, input, textarea, select {
  font-family: inherit;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: var(--radius-sm); }
::-webkit-scrollbar-thumb:hover { background: var(--text-primary); }

/* Typography & Utility Classes */
h1, h2, h3, h4, h5, h6 {
  font-weight: 900;
  line-height: 1.2;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.mono-text { font-family: var(--font-mono); font-weight: 700; }

.text-yellow { color: var(--text-highlight) !important; }
.text-danger { color: var(--danger-flat) !important; }
.text-success { color: var(--success-flat) !important; }
.text-info { color: var(--info-flat) !important; }

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   Header / Navbar (Striking High Contrast in both themes)
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-secondary);
  border-bottom: 2px solid var(--border-flat);
  padding: 12px 0;
}
[data-theme="light"] .navbar {
  background: #ffffff;
  border-bottom: 3px solid #000000;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-yellow);
  color: #000000;
  border: 2px solid #000000;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 900;
  
}

.logo-text {
  font-size: 22px;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}
.logo-text span {
  color: #000000;
  background: var(--accent-yellow);
  padding: 2px 6px;
  border: 1.5px solid #000000;
  border-radius: var(--radius-sm);
  margin-left: 3px;
  font-weight: 900;
}

/* Role Badge in Navbar */
.logo-badge {
  background: #000000;
  color: var(--accent-yellow);
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 800;
  padding: 4px 10px;
  border: 2px solid #000000;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}
[data-theme="light"] .logo-badge {
  background: #000000;
  color: #FFD700;
  border: 2px solid #000000;
  
}

/* Search Box in Navbar */
.search-box {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 2px solid var(--border-flat);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  width: 100%;
  max-width: 280px;
  position: relative;
  transition: var(--transition-fast);
}
[data-theme="light"] .search-box {
  background: #ffffff;
  border: 2px solid #000000;
  
}
.search-box:focus-within {
  border-color: var(--accent-yellow);
  
}
[data-theme="light"] .search-box:focus-within {
  
  border-color: #000000;
}
.search-icon {
  color: var(--text-secondary);
  font-size: 18px;
  margin-right: 8px;
}
.search-box input {
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 13.5px;
  font-weight: 700;
  width: 100%;
  outline: none;
}
.search-shortcut {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 800;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border: 1px solid var(--border-flat);
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}
[data-theme="light"] .search-shortcut {
  background: #f1f5f9;
  border: 1.5px solid #000000;
  color: #000000;
  
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
  border: 2px solid transparent;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  background: var(--bg-card);
  border-color: var(--border-flat);
}
[data-theme="light"] .nav-link:hover, [data-theme="light"] .nav-link.active {
  background: #ffffff;
  border: 2px solid #000000;
  
  color: #000000;
}

.admin-link {
  background: #000000 !important;
  color: #FFD700 !important;
  border: 2px solid #FFD700 !important;
  font-weight: 800;
}
[data-theme="light"] .admin-link {
  background: #000000 !important;
  color: #FFD700 !important;
  border: 2px solid #000000 !important;
  
}
.admin-link:hover {
  background: #ef4444 !important;
  color: #ffffff !important;
  border-color: #000000 !important;
}

.user-profile-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 2px solid var(--border-flat);
  padding: 5px 12px 5px 6px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--accent-yellow);
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 13px;
  border: 2px solid #000000;
}

.user-balance {
  color: var(--text-highlight);
  font-family: var(--font-mono);
  font-weight: 800;
}
[data-theme="light"] .user-balance {
  color: #16a34a; /* In light mode, money shows in crisp green, NOT washed out yellow! */
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Toggle Buttons */
.btn-toggle-lang, .btn-toggle-theme {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 2px solid var(--border-flat);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition-fast);
  outline: none;
  
}
.btn-toggle-lang:hover, .btn-toggle-theme:hover {
  background: var(--accent-yellow);
  color: #000000;
  border-color: #000000;
}

/* ==========================================================================
   Buttons (High Contrast: Yellow CTA, Solid Black/White)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition-fast);
  border: 2px solid transparent;
  outline: none;
  text-decoration: none;
}

/* Primary Action Button - Pure Yellow #FFD700 with Black Text & Black Border */
.btn-primary {
  background: var(--accent-yellow);
  color: #000000 !important;
  border: 2px solid #000000;
  font-weight: 900;
  
}
.btn-primary:hover {
  background: #e6c200;
  
  
}

/* Login Button in Navbar - Solid Black with Yellow Text in Light Mode! */
.btn-nav-login-flat {
  background: #000000;
  color: #FFD700 !important;
  border: 2px solid #000000;
  font-weight: 800;
  
}
.btn-nav-login-flat:hover {
  background: #27272a;
  color: #ffffff !important;
  
  
}

.btn-success {
  background: var(--success-flat);
  color: #ffffff !important;
  border: 2px solid #000000;
  font-weight: 800;
  
}
.btn-success:hover {
  background: #15803d;
  
  
}

.btn-danger-outline {
  background: #ffffff;
  color: var(--danger-flat) !important;
  border: 2px solid var(--danger-flat);
  font-weight: 800;
  
}
[data-theme="dark"] .btn-danger-outline {
  background: transparent;
}
.btn-danger-outline:hover {
  background: var(--danger-flat);
  color: #ffffff !important;
  border-color: #000000;
  
}

.btn-ghost {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 2px solid var(--border-flat);
  font-weight: 800;
  
}
.btn-ghost:hover {
  background: var(--accent-yellow);
  color: #000000 !important;
  border-color: #000000;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 13px;
}

.btn-logout {
  background: #fee2e2;
  border: 2px solid #000000;
  color: #dc2626;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
  
}
[data-theme="dark"] .btn-logout {
  background: rgba(239, 68, 68, 0.15);
  border-color: var(--danger-flat);
}
.btn-logout:hover {
  background: #dc2626;
  color: #ffffff !important;
  border-color: #000000;
}

/* ==========================================================================
   Hero Section (Striking High-Contrast Dashboard)
   ========================================================================== */
.hero-section {
  padding: 30px 0 24px;
  border-bottom: 2px solid var(--border-flat);
  background: var(--bg-secondary);
}
[data-theme="light"] .hero-section {
  background: #f8fafc;
  border-bottom: 3px solid #000000;
}

.policy-banner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #000000;
  border: 2px solid #000000;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  color: #FFD700;
  font-size: 13.5px;
  font-weight: 800;
  margin-bottom: 16px;
  
}
[data-theme="light"] .policy-banner {
  
}

.hero-title {
  font-size: 36px;
  max-width: 1000px;
  margin: 0 0 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.hero-title span {
  color: #000000;
  background: var(--accent-yellow);
  padding: 0 10px;
  border: 2px solid #000000;
  border-radius: var(--radius-sm);
  
  display: inline-block;
  margin: 4px 0;
}

.hero-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 800px;
  margin-bottom: 24px;
  font-weight: 600;
}

/* High-Density System Status Pills (NEVER WASHED OUT!) */
.hero-stat-pills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.stat-pill {
  background: var(--bg-card);
  border: 2px solid var(--border-flat);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  
}
[data-theme="light"] .stat-pill {
  background: #ffffff;
  border: 2px solid #000000;
  
}
.stat-pill-label { color: var(--text-muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }

/* IN LIGHT MODE: Values are solid black or colored, NEVER yellow text on white! */
.stat-pill-val {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 900;
  color: var(--text-highlight);
}
[data-theme="light"] .stat-pill-val {
  color: #000000 !important;
}

/* ==========================================================================
   HOMEPAGE SHOWCASE (Striking Neo-Brutalist Cards)
   ========================================================================== */
.showcase-section {
  padding: 36px 0 44px;
}

.section-header-box {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--border-flat);
  padding-bottom: 14px;
  flex-wrap: wrap;
  gap: 14px;
}
[data-theme="light"] .section-header-box {
  border-bottom: 3px solid #000000;
}

.section-main-title {
  font-size: 26px;
  font-weight: 900;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-sub-desc {
  color: var(--text-secondary);
  font-size: 14.5px;
  margin-top: 4px;
  font-weight: 600;
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #dc2626;
  color: #ffffff;
  padding: 4px 10px;
  border: 2px solid #000000;
  border-radius: var(--radius-sm);
  font-size: 11.5px;
  font-weight: 900;
  font-family: var(--font-mono);
  text-transform: uppercase;
  
}

/* High-Density Showcase Cards Grid */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 20px;
}

.ad-showcase-card {
  background: var(--bg-card);
  border: 2px solid var(--border-flat);
  border-radius: var(--radius-sm);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: var(--transition-fast);
  
}
[data-theme="light"] .ad-showcase-card {
  background: #ffffff;
  border: 2px solid #000000;
  
}
.ad-showcase-card:hover {
  
  
}

.ad-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1.5px solid var(--border-flat);
}

.ad-card-brand {
  font-size: 15px;
  font-weight: 900;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.ad-card-format-pill {
  background: #000000;
  color: #FFD700;
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 800;
  padding: 3px 8px;
  border: 1.5px solid #000000;
  border-radius: var(--radius-sm);
}
[data-theme="light"] .ad-card-format-pill {
  
}

.ad-card-title {
  font-size: 19px;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.35;
}

.ad-card-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 18px;
  line-height: 1.5;
  font-weight: 500;
}

/* FUNCTIONAL DENSE DATA TABLE INSIDE CARD */
.dense-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: var(--bg-secondary);
  border: 1.5px solid var(--border-flat);
  padding: 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
  font-size: 12px;
}
[data-theme="light"] .dense-metrics-grid {
  background: #f8fafc;
  border: 1.5px solid #000000;
}

.dense-metric-box { display: flex; flex-direction: column; gap: 2px; }
.metric-label { font-size: 10.5px; color: var(--text-muted); font-weight: 800; text-transform: uppercase; }

/* In Light mode, values in card tables must be solid black or strong colors, NEVER washed out! */
.metric-val { font-family: var(--font-mono); font-size: 13.5px; font-weight: 900; color: var(--text-primary); }
[data-theme="light"] .metric-val { color: #000000 !important; }
.val-green { color: #16a34a !important; font-weight: 900; }
.val-red { color: #dc2626 !important; font-weight: 900; }
.val-blue { color: #2563eb !important; font-weight: 900; }

.ad-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1.5px solid var(--border-flat);
  gap: 10px;
  flex-wrap: wrap;
}

/* Visit Website CTA Button inside Card */
.btn-visit-website {
  background: var(--accent-yellow);
  color: #000000 !important;
  font-weight: 900;
  font-size: 13.5px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 2px solid #000000;
  transition: var(--transition-fast);
  
}
.btn-visit-website:hover {
  background: #e6c200;
  
  
}

/* Report Button */
.btn-report {
  background: #ffffff;
  color: #dc2626 !important;
  border: 2px solid #dc2626;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
[data-theme="dark"] .btn-report {
  background: #18181c;
  color: #ef4444 !important;
  border: 1px solid #ef4444;
}
.btn-report:hover {
  background: #dc2626 !important;
  color: #ffffff !important;
  border-color: #000000;
  
}

/* ==========================================================================
   AD BOOKING WIZARD (Neo-Brutalist Layout)
   ========================================================================== */
.studio-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  padding-bottom: 50px;
}
@media (max-width: 1080px) { .studio-layout { grid-template-columns: 1fr; } }

.glass-panel, .preview-card, .summary-card {
  background: var(--bg-card);
  border: 2px solid var(--border-flat);
  border-radius: var(--radius-sm);
  padding: 24px;
  
}
[data-theme="light"] .glass-panel, [data-theme="light"] .preview-card, [data-theme="light"] .summary-card {
  background: #ffffff;
  border: 2px solid #000000;
  
}

.wizard-progress { display: flex; justify-content: space-between; margin-bottom: 28px; border-bottom: 2px solid var(--border-flat); padding-bottom: 16px; }
.step-indicator { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.step-num { width: 32px; height: 32px; border-radius: var(--radius-sm); background: var(--bg-secondary); border: 2px solid var(--border-flat); display: flex; align-items: center; justify-content: center; font-weight: 900; font-family: var(--font-mono); color: var(--text-secondary); }

.step-indicator.active .step-num { background: var(--accent-yellow); color: #000000; border: 2px solid #000000;  }
.step-indicator.completed .step-num { background: var(--success-flat); color: #ffffff; border: 2px solid #000000; }

.step-label { font-size: 13.5px; font-weight: 800; color: var(--text-secondary); }
.step-indicator.active .step-label { color: var(--text-primary); font-weight: 900; }

.step-title { font-size: 22px; font-weight: 900; margin-bottom: 6px; text-transform: uppercase; }
.step-desc { color: var(--text-secondary); font-size: 14px; margin-bottom: 22px; font-weight: 600; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.col-full { grid-column: span 2; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } .col-full { grid-column: span 1; } }

.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form-label { font-size: 13.5px; font-weight: 800; color: var(--text-primary); display: flex; justify-content: space-between; }
.form-control {
  background: var(--bg-secondary);
  border: 2px solid var(--border-flat);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  font-weight: 600;
}
[data-theme="light"] .form-control { background: #ffffff; border: 2px solid #000000; }
.form-control:focus {
  border-color: #000000;
  
}

/* Format Cards */
.format-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-bottom: 22px; }
.format-card {
  background: var(--bg-secondary);
  border: 2px solid var(--border-flat);
  border-radius: var(--radius-sm);
  padding: 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
[data-theme="light"] .format-card { background: #ffffff; border: 2px solid #000000; }
.format-card:hover {   }
.format-card.selected {
  background: #fffef2;
  border: 2.5px solid #000000;
  
}
[data-theme="dark"] .format-card.selected { background: #18181c; border-color: var(--accent-yellow);  }

.format-icon { font-size: 24px; }
.format-name { font-weight: 900; font-size: 15px; color: var(--text-primary); }
.format-price { font-size: 14px; font-family: var(--font-mono); color: #16a34a; font-weight: 900; }
[data-theme="dark"] .format-price { color: var(--accent-yellow); }
.format-desc { font-size: 12.5px; color: var(--text-muted); line-height: 1.4; font-weight: 600; }

/* Template Themes */
.template-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 6px; }
.template-item {
  height: 55px; border-radius: var(--radius-sm); border: 2px solid var(--border-flat);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px; color: #fff;
}
.template-item.selected { border: 3px solid #000000;  }

.range-slider-container { background: var(--bg-secondary); border: 2px solid var(--border-flat); padding: 18px; border-radius: var(--radius-sm); margin-bottom: 20px; }
[data-theme="light"] .range-slider-container { background: #f8fafc; border: 2px solid #000000; }
.range-slider { width: 100%; height: 8px; background: #000000; border-radius: 0px; outline: none; -webkit-appearance: none; margin: 12px 0; }
.range-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; background: var(--accent-yellow); border: 2px solid #000000; cursor: pointer;  }

.wizard-actions { display: flex; justify-content: space-between; margin-top: 24px; padding-top: 16px; border-top: 2px solid var(--border-flat); }

/* ==========================================================================
   Sidebar Preview & Summary
   ========================================================================== */
.preview-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.preview-tag { font-weight: 900; font-size: 14px; color: var(--text-primary); display: flex; align-items: center; gap: 6px; }

.preview-device-toggle { display: flex; background: var(--bg-secondary); border: 2px solid var(--border-flat); border-radius: var(--radius-sm); padding: 2px; }
[data-theme="light"] .preview-device-toggle { border: 2px solid #000000; }
.device-btn { background: transparent; border: none; color: var(--text-muted); font-size: 11.5px; font-weight: 800; padding: 4px 10px; cursor: pointer; }
.device-btn.active { background: #000000; color: #FFD700; }

.mock-ad-container { border: 2px solid #000000; border-radius: var(--radius-sm); padding: 20px; color: white; position: relative;  }
.mock-ad-badge { display: inline-block; background: #000000; color: #FFD700; font-size: 11px; font-weight: 900; font-family: var(--font-mono); padding: 4px 8px; border: 1.5px solid #000000; margin-bottom: 10px; }
.mock-ad-brand { font-size: 13px; font-weight: 900; margin-bottom: 4px; }
.mock-ad-title { font-size: 17px; font-weight: 900; line-height: 1.3; margin-bottom: 8px; }
.mock-ad-desc { font-size: 13px; opacity: 0.95; line-height: 1.4; margin-bottom: 16px; font-weight: 500; }
.mock-ad-cta { background: var(--accent-yellow); color: #000000 !important; font-weight: 900; font-size: 13px; padding: 8px 16px; border-radius: var(--radius-sm); display: inline-flex; align-items: center; gap: 6px; border: 2px solid #000000;  }

.summary-title { font-size: 18px; font-weight: 900; margin-bottom: 16px; text-transform: uppercase; }
.summary-row { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--text-secondary); margin-bottom: 10px; font-weight: 700; }
.summary-val { font-weight: 800; color: var(--text-primary); font-family: var(--font-mono); }
.summary-row.total { border-top: 2px solid var(--border-flat); padding-top: 14px; margin-top: 14px; font-size: 15px; font-weight: 900; color: var(--text-primary); }
.price-highlight { font-size: 24px; font-weight: 900; font-family: var(--font-mono); color: #16a34a; }
[data-theme="dark"] .price-highlight { color: var(--accent-yellow); }

.promo-box { display: flex; gap: 8px; margin-top: 16px; }
.promo-input { flex: 1; background: var(--bg-secondary); border: 2px solid var(--border-flat); border-radius: var(--radius-sm); padding: 8px 12px; color: var(--text-primary); font-size: 13px; font-family: var(--font-mono); outline: none; text-transform: uppercase; font-weight: 800; }
[data-theme="light"] .promo-input { background: #ffffff; border: 2px solid #000000; }
.promo-btn { background: #000000; color: #FFD700; border: 2px solid #000000; padding: 8px 16px; border-radius: var(--radius-sm); font-weight: 900; cursor: pointer;  }

/* ==========================================================================
   Campaign Management Section
   ========================================================================== */
.management-section { padding: 30px 0 50px; }
.filter-tabs { display: flex; gap: 10px; margin-bottom: 22px; flex-wrap: wrap; }
.filter-tab {
  background: var(--bg-card);
  border: 2px solid var(--border-flat);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  
}
[data-theme="light"] .filter-tab { background: #ffffff; border: 2px solid #000000;  }
.filter-tab:hover { background: var(--bg-secondary); color: var(--text-primary); }
.filter-tab.active { background: #000000; color: #FFD700; border: 2px solid #000000;  }

.campaigns-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 20px; }
.campaign-mgr-card {
  background: var(--bg-card);
  border: 2px solid var(--border-flat);
  border-radius: var(--radius-sm);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  
}
[data-theme="light"] .campaign-mgr-card { background: #ffffff; border: 2px solid #000000;  }

.mgr-card-header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 10px; border-bottom: 1.5px solid var(--border-flat); }
.mgr-id-badge { background: #000000; color: #FFD700; font-size: 12px; font-weight: 900; font-family: var(--font-mono); padding: 3px 8px; border: 1.5px solid #000000; }

.status-badge { font-size: 11.5px; font-weight: 900; font-family: var(--font-mono); padding: 3px 8px; border: 1.5px solid #000000; border-radius: var(--radius-sm); display: inline-flex; align-items: center; gap: 4px; text-transform: uppercase; }
.status-active { background: #16a34a; color: #ffffff; }
.status-paused { background: #f59e0b; color: #000000; }

.mgr-brand-name { font-weight: 900; font-size: 16px; color: var(--text-primary); }
.mgr-ad-title { font-size: 14px; color: var(--text-secondary); margin: 6px 0 10px; line-height: 1.4; font-weight: 600; }
.mgr-website-link { font-size: 13px; font-family: var(--font-mono); color: #2563eb; text-decoration: none; font-weight: 800; word-break: break-all; }
[data-theme="dark"] .mgr-website-link { color: var(--accent-yellow); }

.mgr-stats-box {
  background: var(--bg-secondary);
  border: 1.5px solid var(--border-flat);
  padding: 12px;
  border-radius: var(--radius-sm);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  text-align: center;
}
[data-theme="light"] .mgr-stats-box { background: #f8fafc; border: 1.5px solid #000000; }

.stat-item { display: flex; flex-direction: column; gap: 2px; }
.stat-label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; font-weight: 800; }
.stat-value { font-size: 14px; font-weight: 900; font-family: var(--font-mono); color: var(--text-primary); }

.mgr-card-actions { display: flex; gap: 8px; margin-top: 16px; padding-top: 12px; border-top: 1.5px solid var(--border-flat); flex-wrap: wrap; }
.btn-action {
  flex: 1;
  background: var(--bg-secondary);
  border: 2px solid var(--border-flat);
  color: var(--text-primary);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
[data-theme="light"] .btn-action { background: #ffffff; border: 2px solid #000000;  }
.btn-action:hover { background: var(--accent-yellow); color: #000000 !important; border-color: #000000; }
.btn-action.delete-btn { flex: 0 0 40px; color: #dc2626; border-color: #dc2626; }
.btn-action.delete-btn:hover { background: #dc2626; color: #ffffff !important; border-color: #000000; }

/* Admin Dashboard Specific Badges and Actions */
.admin-metric-card {
  background: var(--bg-card);
  padding: 20px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border-flat);
  
}
[data-theme="light"] .admin-metric-card { background: #ffffff; border: 2px solid #000000;  }

.admin-badge-reported {
  background: #dc2626;
  color: #ffffff;
  padding: 3px 8px;
  border: 1.5px solid #000000;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 900;
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.btn-take-down { background: #dc2626; color: #ffffff !important; border: 2px solid #000000; padding: 8px 14px; border-radius: var(--radius-sm); font-weight: 900; font-size: 13px; cursor: pointer;  }
.btn-take-down:hover { background: #b91c1c; }

.btn-approve { background: #16a34a; color: #ffffff !important; border: 2px solid #000000; padding: 8px 14px; border-radius: var(--radius-sm); font-weight: 900; font-size: 13px; cursor: pointer;  }
.btn-approve:hover { background: #15803d; }

/* ==========================================================================
   Modals & Chat Widget (Neo-Brutalist Flat)
   ========================================================================== */
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.85); z-index: 9999; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.show { display: flex; }

.modal-box, .custom-modal-box, .exit-modal {
  background: var(--bg-card);
  border: 3px solid #000000;
  border-radius: var(--radius-sm);
  max-width: 550px;
  width: 100%;
  padding: 28px;
  position: relative;
  
}
[data-theme="light"] .modal-box, [data-theme="light"] .custom-modal-box, [data-theme="light"] .exit-modal { background: #ffffff; border: 3px solid #000000;  }

.modal-title { font-size: 22px; font-weight: 900; margin-bottom: 8px; text-transform: uppercase; }
.modal-desc { font-size: 14px; color: var(--text-secondary); margin-bottom: 20px; font-weight: 600; }
.modal-close-btn { background: transparent; border: none; color: var(--text-muted); font-size: 28px; cursor: pointer; position: absolute; top: 16px; right: 16px; font-weight: 900; }

#exit-intent-modal-overlay .modal-box, #exit-intent-modal-overlay .custom-modal-box, #exit-intent-modal-overlay .exit-modal { border: 3px solid #dc2626;  }

.btn-demo-login {
  background: var(--bg-secondary);
  border: 2px solid var(--border-flat);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: var(--transition-fast);
  color: var(--text-primary);
  width: 100%;
  
}
[data-theme="light"] .btn-demo-login { background: #ffffff; border: 2px solid #000000;  }
.btn-demo-login:hover { background: #fffef2; border-color: #000000;   }

/* 24/7 AI Chat Widget */
.chat-widget-container { position: fixed; bottom: 20px; right: 20px; z-index: 10000; display: flex; flex-direction: column; align-items: flex-end; }
.chat-toggle-btn { width: 56px; height: 56px; border-radius: var(--radius-sm); background: var(--accent-yellow); color: #000000; border: 2.5px solid #000000; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 24px; position: relative; font-weight: 900;  }
.chat-badge { position: absolute; top: -6px; right: -6px; background: #dc2626; color: #fff; font-size: 11px; font-family: var(--font-mono); font-weight: 900; width: 22px; height: 22px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; border: 2px solid #000000; }

.chat-window { width: 360px; height: 480px; background: var(--bg-card); border: 3px solid #000000; border-radius: var(--radius-sm); display: none; flex-direction: column; overflow: hidden; margin-bottom: 12px;  }
.chat-window.show { display: flex; }
.chat-window.chat-expanded { width: 640px !important; height: 85vh !important; max-width: calc(100vw - 40px) !important; max-height: calc(100vh - 40px) !important; bottom: 0 !important; }
[data-theme="light"] .chat-window { background: #ffffff; border: 3px solid #000000; }

.chat-header { background: #000000; color: #ffffff; padding: 14px 16px; border-bottom: 3px solid var(--accent-yellow); display: flex; justify-content: space-between; align-items: center; }
.chat-bot-avatar { width: 32px; height: 32px; border-radius: var(--radius-sm); background: var(--accent-yellow); color: #000000; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 900; border: 1.5px solid #000000; }
.chat-close-btn { background: transparent; border: none; color: #ffffff; font-size: 26px; cursor: pointer; font-weight: 900; }

.chat-messages { flex: 1; padding: 14px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.message { max-width: 80%; display: flex; flex-direction: column; gap: 2px; }
.bot-msg { align-self: flex-start; }
.user-msg { align-self: flex-end; }
.msg-bubble { padding: 10px 14px; border-radius: 14px; font-size: 14px; line-height: 1.5; font-weight: 500; display: flex; flex-direction: column; gap: 4px; box-shadow: 0 1px 2px rgba(0,0,0,0.1); }
.bot-msg .msg-bubble { background: #333; color: #fff; border: 1px solid #444; border-bottom-left-radius: 2px; }
[data-theme="light"] .bot-msg .msg-bubble { background: #f3f4f6; color: #000; border: 1px solid #e5e7eb; }
.user-msg .msg-bubble { background: #8b5cf6; color: #fff; border-bottom-right-radius: 2px; }
.msg-time { font-size: 10.5px; opacity: 0.7; align-self: flex-end; font-family: var(--font-mono); font-weight: 500; }

.chat-quick-questions { padding: 8px 12px; background: var(--bg-secondary); border-top: 2px solid var(--border-flat); display: flex; gap: 6px; overflow-x: auto; white-space: nowrap; }
[data-theme="light"] .chat-quick-questions { background: #e5e7eb; border-top: 2px solid #000000; }
.quick-pill { background: #000000; border: 1.5px solid #000000; color: #FFD700; font-size: 11.5px; font-weight: 800; padding: 4px 10px; border-radius: var(--radius-sm); cursor: pointer; }
.quick-pill:hover { background: var(--accent-yellow); color: #000000; }

.chat-input-area { padding: 10px; background: var(--bg-card); border-top: 2px solid var(--border-flat); display: flex; gap: 8px; }
[data-theme="light"] .chat-input-area { background: #ffffff; border-top: 2px solid #000000; }
.chat-input { flex: 1; background: var(--bg-secondary); border: 2px solid var(--border-flat); border-radius: var(--radius-sm); padding: 8px 12px; color: var(--text-primary); font-size: 13.5px; outline: none; font-weight: 600; }
[data-theme="light"] .chat-input { background: #f3f4f6; border: 2px solid #000000; }
.chat-send-btn { width: 38px; height: 38px; border-radius: var(--radius-sm); background: var(--accent-yellow); color: #000000; border: 2px solid #000000; cursor: pointer; font-weight: 900;  }

/* ==========================================================================
   Footer
   ========================================================================== */
.main-footer { background: var(--bg-secondary); border-top: 3px solid #000000; padding: 40px 0 20px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; margin-bottom: 30px; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h4 { font-size: 15px; font-weight: 900; text-transform: uppercase; margin-bottom: 14px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: var(--text-secondary); text-decoration: none; font-size: 14px; font-weight: 700; }
.footer-links a:hover { color: #2563eb; }
[data-theme="dark"] .footer-links a:hover { color: var(--accent-yellow); }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 2px solid var(--border-flat); color: var(--text-muted); font-size: 12.5px; font-family: var(--font-mono); font-weight: 700; }

/* Toast */
#toast-container { position: fixed; top: 20px; right: 20px; z-index: 100000; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--bg-card); border: 2.5px solid #000000; padding: 14px 18px; border-radius: var(--radius-sm); display: flex; align-items: center; gap: 12px; min-width: 320px; max-width: 420px;  font-weight: 800; }
[data-theme="light"] .toast { background: #ffffff; }

/* Color Themes for Ad Cards (Flat Colors) */
.bg-t1 { border-left: 6px solid #2563eb !important; }
.bg-t2 { border-left: 6px solid #eab308 !important; }
.bg-t3 { border-left: 6px solid #16a34a !important; }
.bg-t4 { border-left: 6px solid #9333ea !important; }
.bg-t5 { border-left: 6px solid #ea580c !important; }
.bg-t6 { border-left: 6px solid #475569 !important; }

/* ==========================================================================
   DIRECTORY & REVIEW PLATFORM STYLES (V5.2)
   ========================================================================== */
.cat-tab {
  background: var(--bg-primary);
  color: var(--text-primary);
  border: 2px solid var(--border-flat);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 800;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: var(--transition-fast);
  
}
.cat-tab:hover {
  background: var(--bg-secondary);
  
  
}
.cat-tab.active {
  background: var(--accent-yellow) !important;
  color: #000000 !important;
  border: 2px solid #000000 !important;
  
  
}

.dir-card, .dir-row-card {
  transition: var(--transition-fast);
}
.dir-card:hover, .dir-row-card:hover {
  
  
}
.dir-card.sponsored:hover {
  
}

/* ==========================================================================
   STANDARDIZED PHOSPHOR VECTOR ICONS & NEO-BRUTALIST FAVICON LOGO BOXES
   ========================================================================== */
.ph-bold, .ph-fill {
  vertical-align: -0.125em;
  display: inline-block;
  font-style: normal;
}

.site-avatar-box {
  width: 68px;
  height: 68px;
  background: var(--bg-secondary);
  border: 3px solid var(--border-flat);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  
  overflow: hidden;
  flex-shrink: 0;
  padding: 8px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.site-avatar-box:hover {
  
  
}

[data-theme="light"] .site-avatar-box {
  background: #ffffff;
  border: 3px solid #000000;
  
}

[data-theme="light"] .site-avatar-box:hover {
  
}

.site-avatar-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.12));
}

/* ==========================================================================
   RESPONSIVE & ADAPTIVE SUITE FOR PC, TABLETS & MOBILE PHONES (V5.3)
   Ensure 100% perfect layouts on iPhone/Android small screens up to 4K PC displays!
   ========================================================================== */

/* 1. Tablet & Moderate Screen Adaptation (768px - 1024px) */
@media (max-width: 1024px) {
  .nav-content {
    flex-wrap: wrap !important;
  }
  .showcase-grid, .campaigns-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)) !important;
    gap: 16px;
  }
  .studio-layout {
    grid-template-columns: 1fr !important;
  }
}

/* 2. Mobile Phone Optimization (< 768px) */
@media (max-width: 768px) {
  .container {
    padding: 0 14px !important;
  }
  
  /* Navbar / Header Adaptation */
  .navbar {
    padding: 10px 0 !important;
  }
  .nav-content { flex-direction: row !important; flex-wrap: wrap !important; align-items: center !important; justify-content: space-between !important; gap: 6px !important; } 
  .logo { order: 1 !important; justify-content: flex-start !important; text-align: left !important; flex: 0 1 auto !important; gap: 4px !important; } 
  .logo-text { font-size: 16px !important; letter-spacing: 0 !important; }
  .logo-text span { font-size: 16px !important; }
  .logo-icon { width: 28px !important; height: 28px !important; }
  .logo-icon i { font-size: 20px !important; }
  .nav-actions { order: 2 !important; flex: 0 1 auto !important; justify-content: flex-end !important; width: auto !important; flex-wrap: nowrap !important; gap: 4px !important; } 
  .search-box { order: 3 !important; width: 100% !important; max-width: 100% !important; flex: 0 0 100% !important; margin-top: 4px !important; } 
  #current-lang-code, #theme-text { display: none !important; } 
  .btn-toggle-lang, .btn-toggle-theme { display: none !important; } 
  .btn-login, .btn-register { padding: 4px 8px !important; font-size: 11px !important; border-width: 1.5px !important; gap: 4px !important; }
  .btn-mobile-menu { padding: 4px 6px !important; border-width: 1.5px !important; height: 28px !important; }
  .btn-mobile-menu i { font-size: 16px !important; }

  /* Hero & Section Typography */
  .hero-title {
    font-size: 24px !important;
    line-height: 1.35 !important;
    text-align: center !important;
  }
  .hero-subtitle {
    font-size: 14px !important;
    text-align: center !important;
  }
  .hero-stat-pills {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .stat-pill {
    padding: 12px 14px !important;
  }
  
  .section-header-box {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
  }
  .section-main-title {
    font-size: 20px !important;
  }

  /* Swipeable Category & Filter Tabs on Mobile */
  .filter-tabs {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    padding-bottom: 8px !important;
    gap: 8px !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
  }
  .filter-tabs::-webkit-scrollbar {
    display: none !important;
  }
  .cat-tab, .filter-tab {
    flex-shrink: 0 !important;
    font-size: 13px !important;
    padding: 8px 14px !important;
  }

  /* 1-Column Grid for Cards on Mobile (No Horizontal Scrolling!) */
  .showcase-grid, .campaigns-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .ad-showcase-card, .campaign-mgr-card, .dir-card, .dir-row-card {
    padding: 16px !important;
  }
  .ad-card-top, .mgr-card-header {
    flex-wrap: wrap !important;
    gap: 8px !important;
  }
  .ad-card-title {
    font-size: 17px !important;
  }
  .site-avatar-box {
    width: 56px !important;
    height: 56px !important;
    padding: 6px !important;
  }
  .site-avatar-img {
    width: 38px !important;
    height: 38px !important;
  }

  /* Dense Table inside Card on Mobile */
  .dense-metrics-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 6px !important;
    padding: 10px !important;
  }
  .metric-label {
    font-size: 9.5px !important;
  }
  .metric-val {
    font-size: 12.5px !important;
  }

  /* Buttons inside Cards on Mobile */
  .ad-card-footer,  .mgr-btn-group {
    flex-direction: column !important;
  }
  .ad-card-footer, .mgr-card-actions {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
  }
  .btn-visit-website, .btn-report, .btn-action, .btn-take-down, .btn-approve {
    width: 100% !important;
    justify-content: center !important;
  }

  /* Ad Booking Wizard & Form Grids */
  .form-grid {
    grid-template-columns: 1fr !important;
  }
  .col-full {
    grid-column: span 1 !important;
  }
  .format-grid {
    grid-template-columns: 1fr !important;
  }
  .template-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
  .wizard-actions {
    flex-direction: column-reverse !important;
    gap: 10px !important;
  }
  .wizard-actions .btn {
    width: 100% !important;
    justify-content: center !important;
  }

  /* Modals & Chat Widget on Mobile */
  .modal-box, .custom-modal-box, .exit-modal {
    padding: 18px !important;
    width: calc(100% - 24px) !important;
    margin: 12px !important;
    max-height: 88vh !important;
    overflow-y: auto !important;
  }
  .chat-window {
    width: calc(100vw - 28px) !important;
    right: 14px !important;
    bottom: 80px !important;
    height: 420px !important;
  }
  .chat-toggle-btn {
    width: 50px !important;
    height: 50px !important;
    font-size: 20px !important;
  }

  /* Footer Adaptation */
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    text-align: center !important;
  }
  .footer-links {
    align-items: center !important;
  }
}

/* 3. Small Mobile Phones Optimization (< 480px - iPhone SE / Compact Android) */
@media (max-width: 480px) {
  .dense-metrics-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
  .dense-metric-box {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-bottom: 1px dashed var(--border-flat) !important;
    padding-bottom: 4px !important;
  }
  .dense-metric-box:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
  }
  .nav-link {
    flex: 1 1 100% !important;
  }
  .mgr-stats-box {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
}

/* Brutalist Buttons & Badges */
.btn-brutal-primary {
  background: var(--accent-yellow);
  color: #000;
  border: 2px solid #000;
  font-weight: 900;
  padding: 10px 16px;
  
  cursor: pointer;
  text-transform: uppercase;
  font-size: 12.5px;
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
}
.btn-brutal-primary:hover {
  
  
}

.btn-brutal-secondary {
  background: var(--bg-primary);
  color: var(--text-primary);
  border: 2px solid var(--border-flat);
  font-weight: 800;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 12.5px;
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  
}
[data-theme="light"] .btn-brutal-secondary {
  border: 2px solid #000;
  
}
.btn-brutal-secondary:hover {
  
  
}
[data-theme="light"] .btn-brutal-secondary:hover {
  
}

.badge-vip {
  background: #000;
  color: var(--accent-yellow);
  font-size: 10px;
  font-weight: 900;
  padding: 3px 8px;
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
  border: 1.5px solid #000;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Authentication Buttons in Header */
.btn-login {
  border: 2px solid var(--border-flat);
  background: var(--bg-primary);
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-weight: 800;
  border-radius: var(--radius-sm);
  font-size: 14px;
  white-space: nowrap;
  box-shadow: 2px 2px 0px #000;
  transition: all 0.2s ease;
}
[data-theme="light"] .btn-login {
  border: 2px solid #000;
  color: #000;
}
.btn-login:hover {
  background: var(--bg-secondary);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0px #000;
}
.btn-login:active {
  transform: translate(0, 0);
  box-shadow: 0px 0px 0px #000;
}

.btn-register {
  border: 2px solid #000;
  background: var(--accent-yellow);
  color: #000;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-weight: 800;
  border-radius: var(--radius-sm);
  font-size: 14px;
  white-space: nowrap;
  box-shadow: 2px 2px 0px #000;
  transition: all 0.2s ease;
}
.btn-register:hover {
  background: #facc15;
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0px #000;
}
.btn-register:active {
  transform: translate(0, 0);
  box-shadow: 0px 0px 0px #000;
}

/* Sub-Navbar Links for Flat Design */
.sub-nav-link {
  color: var(--text-primary);
  background: var(--bg-secondary);
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
  padding: 6px 14px;
  border: 2px solid var(--border-flat);
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background-color 0.15s, color 0.15s;
}
.sub-nav-link:hover, .sub-nav-link.active {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
}
.sub-nav-link.text-danger {
  color: var(--danger-flat);
  border-color: var(--danger-flat);
  background: transparent;
}
.sub-nav-link.text-danger:hover {
  background: var(--danger-flat);
  color: #fff;
}

/* Responsive Header Navigation */
@media (max-width: 768px) {
  .desktop-only-actions {
    display: none !important;
  }
  .btn-mobile-menu {
    display: flex !important;
  }
}

/* Hide Scrollbar Utility */
.hide-scrollbar {
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}
.hide-scrollbar::-webkit-scrollbar {
  display: none; /* Chrome, Safari and Opera */
}
