/* OneDollarOneAd - Trust Blue x Bold Design System */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;600;700&display=swap');

:root {
  --primary: #2457D6;      /* Trust Blue */
  --secondary: #16A6A1;    /* Teal */
  --bg-top: #BFE3FF;
  --bg-mid: #E3F3FF;
  --bg-bottom: #FFFFFF;
  --surface: #EEF8FF;     /* cards, inputs wrappers, tables, modals, dropdowns, sidebar */
  --header-bg: #CFE9FF;   /* top header bar, mobile menu */
  --tint: #E3F3FF;        /* light accents and the pale parts of the hero illustration */
  --ink: #182230;          /* text, borders, hard shadows */
  --muted: #4A5568;        /* secondary text */
  --success: #1A7F4B;
  --warning: #B45309;
  --danger: #C62828;
  --border: 2px solid var(--ink);
  --radius: 10px;
  --shadow: 4px 4px 0 var(--ink);   /* hard offset shadow, no blur */
  --shadow-sm: 2px 2px 0 var(--ink);
  --shadow-hover: 2px 2px 0 var(--ink);
  --font: 'Space Grotesk', system-ui, -apple-system, sans-serif;
}

/* RTL Support */
[dir="rtl"] {
  --shadow: -4px 4px 0 var(--ink);
  --shadow-sm: -2px 2px 0 var(--ink);
  --shadow-hover: -2px 2px 0 var(--ink);
  text-align: right;
}

/* Base Reset & Typography */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: #FFFFFF;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  font-family: var(--font);
  background: linear-gradient(180deg, #BFE3FF 0%, #E3F3FF 45%, #FFFFFF 100%) no-repeat top;
  background-size: 100% 900px;
  background-color: #FFFFFF;
  min-height: 100vh;
  color: var(--ink);
  line-height: 1.5;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
}

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 48px;
}

@media (max-width: 768px) {
  .container {
    padding-inline: 20px;
  }
}

/* Typography Scale */
h1, h2, h3, h4, h5, h6 {
  color: var(--ink);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.hero-title {
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.04;
  margin-bottom: 20px;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 8px;
}

.section-desc {
  font-size: 16px;
  color: var(--muted);
}

/* Teal Highlight Block (Exact Spec) */
.highlight-block, .teal-block {
  background: var(--secondary);
  border: 2px solid var(--ink);
  padding: 0 12px;
  transform: rotate(-1.5deg);
  display: inline-block;
  color: var(--ink);
  font-weight: 700;
  border-radius: 4px;
  box-shadow: 2px 2px 0 var(--ink);
  line-height: 1.15;
}

[dir="rtl"] .highlight-block, [dir="rtl"] .teal-block {
  transform: rotate(1.5deg);
  box-shadow: -2px 2px 0 var(--ink);
}

/* Buttons Component */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  background: var(--surface);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translate(2px, 2px);
  box-shadow: var(--shadow-hover);
  color: var(--ink);
}

[dir="rtl"] .btn:hover {
  transform: translate(-2px, 2px);
}

.btn:active {
  transform: translate(4px, 4px);
  box-shadow: none;
}

[dir="rtl"] .btn:active {
  transform: translate(-4px, 4px);
}

.btn:disabled, .btn[disabled] {
  opacity: 0.5;
  pointer-events: none;
  box-shadow: none;
}

/* Button Variants */
.btn-primary {
  background: var(--primary);
  color: #FFFFFF !important;
  border: var(--border);
}

.btn-primary:hover {
  background: #1b44ab;
  color: #FFFFFF !important;
}

.btn-secondary {
  background: var(--secondary);
  color: var(--ink) !important;
  border: var(--border);
}

.btn-secondary:hover {
  background: #138c88;
  color: var(--ink) !important;
}

.btn-outline, .btn-neutral {
  background: var(--surface);
  color: var(--ink) !important;
  border: var(--border);
}

.btn-outline:hover, .btn-neutral:hover {
  background: var(--tint);
}

.btn-post-ad {
  background: var(--primary);
  color: #FFFFFF !important;
  border: var(--border);
  padding: 10px 18px;
  font-size: 15px;
  box-shadow: var(--shadow);
}

.btn-post-ad:hover {
  background: #1b44ab;
  color: #FFFFFF !important;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 14px;
  box-shadow: 2px 2px 0 var(--ink);
}

.btn-lg {
  padding: 16px 28px;
  font-size: 18px;
  box-shadow: var(--shadow);
}

/* Cards Component */
.card, .ad-card, .stat-card, .step-card, .cat-card, .why-card {
  background: var(--surface);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.ad-card {
  display: flex;
  flex-direction: column;
}

.ad-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

[dir="rtl"] .ad-card:hover {
  transform: translate(2px, -2px);
  box-shadow: -6px 6px 0 var(--ink);
}

/* Ad Card Media & Details */
.ad-card-media {
  position: relative;
  height: 150px;
  border-bottom: 2px solid var(--ink);
  background: var(--tint);
  overflow: hidden;
}

.ad-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ad-card-media-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tint);
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
}

.ad-card-badge {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  background: var(--surface);
  border: 2px solid var(--ink);
  color: var(--ink);
  padding: 3px 8px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
}

.ad-card-price {
  position: absolute;
  bottom: 10px;
  inset-inline-end: 10px;
  background: var(--primary);
  color: #FFFFFF;
  border: 2px solid var(--ink);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 2px 2px 0 var(--ink);
}

.ad-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.ad-card-category {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ad-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ad-card-title a {
  color: var(--ink);
  text-decoration: none;
}
.ad-card-title a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.ad-card-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.45;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.ad-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 2px solid var(--ink);
  padding-top: 12px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

/* Inputs, Selects, Textareas */
.form-control, input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="url"], select, textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--surface);
  border: var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: outline 0.1s ease;
}

.form-control:focus, input:focus, select:focus, textarea:focus {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

.form-label, label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.form-hint {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

.form-error {
  border-color: var(--danger) !important;
  color: var(--danger);
  font-size: 13px;
  margin-top: 4px;
}

/* Search Bar Card Component */
.search-bar-wrap, .search-card {
  background: var(--surface);
  border: var(--border);
  border-radius: var(--radius);
  padding: 8px;
  box-shadow: var(--shadow);
}

.search-form {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 8px;
  align-items: center;
}

.search-input-group {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border-inline-end: 2px solid var(--ink);
}

.search-input-group:last-child {
  border-inline-end: none;
}

.search-input-group input, .search-input-group select {
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  padding: 10px 0;
  background: transparent;
  font-size: 15px;
  color: var(--ink);
  font-weight: 600;
}

/* Category Chips & Filter Pills */
.filter-pill, .cat-pill, .tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--surface);
  border: var(--border);
  border-radius: 99px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 2px 2px 0 var(--ink);
  cursor: pointer;
  transition: transform 0.1s ease;
}

.filter-pill:hover, .cat-pill:hover {
  background: var(--tint);
}

.filter-pill.active, .cat-pill.active {
  background: var(--secondary);
  color: var(--ink);
}

/* Badges Component */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 99px;
  border: var(--border);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--surface);
  color: var(--ink);
}

.badge-published, .badge-active, .badge-success {
  background: #D1FADF;
  color: var(--success);
}

.badge-pending, .badge-submitted, .badge-under_review, .badge-warning {
  background: #FEF0C7;
  color: var(--warning);
}

.badge-approved_payment_pending {
  background: var(--tint);
  color: var(--primary);
}

.badge-rejected, .badge-danger, .badge-suspended {
  background: #FEE4E2;
  color: var(--danger);
}

.badge-verified {
  background: var(--tint);
  color: var(--primary);
}

.badge-paused, .badge-draft {
  background: var(--tint);
  color: var(--muted);
}

/* Header */
.site-header {
  background: var(--header-bg);
  border-bottom: var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-sponsor-bar {
  background: var(--ink);
  color: #FFFFFF;
  text-align: center;
  padding: 6px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  border-bottom: 1px solid var(--ink);
}

.header-sponsor-link {
  color: #FFFFFF;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

.header-sponsor-link:hover {
  color: var(--secondary);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 20px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.site-logo .desktop-logo {
  display: block;
  height: 40px;
  width: auto;
  object-fit: contain;
}

.site-logo .mobile-logo {
  display: none;
  height: 38px;
  width: auto;
  object-fit: contain;
}

@media (max-width: 640px) {
  .site-logo .desktop-logo {
    display: none;
  }
  .site-logo .mobile-logo {
    display: block;
  }
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-nav a {
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  padding: 6px 2px;
}

.header-nav a:hover, .header-nav a.active {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Language Selector Dropdown */
.lang-selector {
  position: relative;
  display: inline-block;
}

.lang-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: var(--border);
  box-shadow: 2px 2px 0 var(--ink);
  padding: 8px 14px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}

.lang-menu {
  display: none;
  position: absolute;
  top: 100%;
  inset-inline-end: 0;
  margin-top: 8px;
  background: var(--surface);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: 4px 4px 0 var(--ink);
  min-width: 250px;
  max-width: 320px;
  max-height: 380px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  z-index: 1000;
  padding: 6px 0;
}

.lang-menu::-webkit-scrollbar {
  width: 8px;
}
.lang-menu::-webkit-scrollbar-track {
  background: var(--tint);
  border-radius: 4px;
}
.lang-menu::-webkit-scrollbar-thumb {
  background: var(--ink);
  border-radius: 4px;
  border: 1px solid var(--surface);
}
.lang-menu::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

.lang-menu.show {
  display: block;
}

.lang-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.lang-menu a:hover {
  background: var(--tint);
  color: var(--primary);
}

/* Benefits Strip Component (Exact Spec: dark ink bg, white text) */
.benefits-strip {
  background: var(--ink);
  color: #FFFFFF;
  border-top: var(--border);
  border-bottom: var(--border);
  padding: 16px 0;
  margin-block: 40px;
}

.benefits-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.benefit-dot {
  width: 8px;
  height: 8px;
  background: var(--secondary);
  border-radius: 50%;
  display: inline-block;
}

/* Hero Section */
.hero-section {
  padding: 56px 0 24px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-left {
  display: flex;
  flex-direction: column;
}

.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Hero Embedded Animated Logo (Vector, Transparent, Looping) */
.hero-animated-logo-wrap {
  width: 100%;
  max-width: 360px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}

.hero-animated-logo {
  width: 100%;
  max-width: 360px;
  height: auto;
  display: block;
  background: transparent;
}

.hero-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--tint);
  border: var(--border);
  box-shadow: 2px 2px 0 var(--ink);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 20px;
  align-self: flex-start;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 28px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
}

/* Category Grid & Cards */
.cat-cards-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.cat-card {
  padding: 20px 14px;
  text-align: center;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.cat-card:hover {
  background: var(--tint);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

.cat-geom-shape {
  width: 44px;
  height: 44px;
  border: 2px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 2px 2px 0 var(--ink);
}

.cat-shape-square { background: var(--primary); border-radius: 4px; }
.cat-shape-circle { background: var(--secondary); border-radius: 50%; }
.cat-shape-tint { background: var(--tint); border-radius: 8px; }
.cat-shape-rotated { background: var(--secondary); transform: rotate(45deg); border-radius: 4px; }
.cat-shape-rotated svg { transform: rotate(-45deg); }
.cat-shape-arch { background: var(--primary); border-radius: 22px 22px 4px 4px; }

.cat-card-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

.cat-card-count {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

/* Step Cards (How It Works) */
.how-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-card {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.step-card-1 {
  background: var(--primary);
  color: #FFFFFF;
}
.step-card-1 h3, .step-card-1 .step-num {
  color: #FFFFFF !important;
}
.step-card-1 p {
  color: #E0E7FF !important;
}

.step-card-2 {
  background: var(--secondary);
  color: var(--ink);
}

.step-card-3 {
  background: var(--surface);
  color: var(--ink);
}

.step-num {
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 16px;
  display: block;
}

.step-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.step-desc {
  font-size: 15px;
  line-height: 1.5;
}

/* Why Grid */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.why-card {
  padding: 28px;
}

.why-icon-box {
  width: 48px;
  height: 48px;
  border: var(--border);
  box-shadow: 2px 2px 0 var(--ink);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tint);
  margin-bottom: 16px;
}

.why-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.why-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

/* Tables Component (Dashboards / Admin) */
.table-wrap {
  background: var(--surface);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow-x: auto;
}

.dash-table {
  width: 100%;
  border-collapse: collapse;
  text-align: start;
  font-size: 14px;
}

.dash-table th {
  background: var(--ink);
  color: #FFFFFF;
  padding: 14px 18px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: var(--border);
}

.dash-table td {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(24, 34, 48, 0.2);
  color: var(--ink);
  background: var(--surface);
}

.dash-table tr:last-child td {
  border-bottom: none;
}

.dash-table tr:hover td {
  background: var(--tint);
}

/* Stat Cards (Dashboards) */
.stat-card {
  padding: 22px;
  display: flex;
  flex-direction: column;
}

.stat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.stat-geom-icon {
  width: 32px;
  height: 32px;
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat-val {
  font-size: 36px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 4px;
}

.stat-sub {
  font-size: 13px;
  color: var(--muted);
}

/* Dashboard Sidebar & Nav */
.dash-layout {
  display: flex;
  min-height: calc(100vh - 72px);
}

.dash-sidebar {
  width: 280px;
  background: var(--surface);
  border-inline-end: var(--border);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  gap: 24px;
}

.dash-nav-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 10px;
  padding-inline-start: 6px;
}

.dash-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius);
  color: var(--ink);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.1s ease;
}

.dash-nav-link:hover {
  background: var(--tint);
  border: var(--border);
}

.dash-nav-link.active {
  background: var(--primary);
  color: #FFFFFF !important;
  border: var(--border);
  box-shadow: 2px 2px 0 var(--ink);
}

.dash-main {
  flex-grow: 1;
  padding: 36px 48px;
  overflow-y: auto;
}

@media (max-width: 992px) {
  .dash-layout {
    flex-direction: column;
  }
  .dash-sidebar {
    width: 100%;
    border-inline-end: none;
    border-bottom: var(--border);
  }
  .dash-main {
    padding: 24px 20px;
  }
}

/* Pagination Component */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.page-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.page-btn:hover {
  transform: translate(2px, 2px);
  box-shadow: none;
}

.page-btn.active {
  background: var(--primary);
  color: #FFFFFF;
}

/* Step Indicator for Ad Creation */
.wizard-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  background: var(--surface);
  padding: 16px 24px;
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  gap: 12px;
  overflow-x: auto;
}

.wizard-step-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
}

.step-circle {
  width: 36px;
  height: 36px;
  border: var(--border);
  border-radius: 8px;
  box-shadow: 2px 2px 0 var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  background: var(--surface);
  color: var(--ink);
}

.wizard-step-item.active {
  color: var(--primary);
}

.wizard-step-item.active .step-circle {
  background: var(--primary);
  color: #FFFFFF;
}

.wizard-step-item.completed {
  color: var(--secondary);
}

.wizard-step-item.completed .step-circle {
  background: var(--secondary);
  color: var(--ink);
}

/* Wizard Panels */
.wizard-panel {
  display: none;
  background: var(--surface);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  margin-bottom: 24px;
}

.wizard-panel.active {
  display: block;
}

/* AI Assistant Card */
.ai-assistant-card {
  background: var(--tint);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin: 24px 0;
}

.ai-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.ai-badge {
  background: var(--primary);
  color: #FFFFFF;
  border: var(--border);
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 700;
}

.ai-suggestion-box {
  background: var(--surface);
  border: var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
}

.ai-suggestion-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

/* Contact Methods Grid (Step 3) */
.contact-methods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.contact-item-box {
  background: var(--surface);
  border: var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 2px 2px 0 var(--ink);
  transition: opacity 0.2s, background 0.2s;
}

.contact-item-box.disabled-channel {
  opacity: 0.6;
  background: rgba(238, 248, 255, 0.4);
}

.contact-toggle-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.toggle-switch-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
  user-select: none;
}

.toggle-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 40px;
  height: 22px;
  background: #CBD5E1;
  border: 2px solid var(--ink);
  border-radius: 20px;
  position: relative;
  cursor: pointer;
  outline: none;
  transition: background 0.2s;
  flex-shrink: 0;
  margin: 0;
}

.toggle-checkbox:checked {
  background: var(--secondary);
}

.toggle-checkbox::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 2px;
  width: 14px;
  height: 14px;
  background: #FFFFFF;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  transition: transform 0.2s;
}

.toggle-checkbox:checked::after {
  transform: translateX(17px);
}

/* Live Preview Tabs (Step 6) */
.preview-tabs {
  display: flex;
  gap: 8px;
}

.preview-tab-btn {
  padding: 8px 16px;
  border: var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  cursor: pointer;
  transition: transform 0.1s ease;
}

.preview-tab-btn.active {
  background: var(--primary);
  color: #FFFFFF;
}

.preview-container {
  background: var(--tint);
  border: var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  justify-content: center;
  overflow-x: auto;
}

.preview-desktop {
  width: 100%;
  max-width: 760px;
}

.preview-mobile {
  width: 100%;
  max-width: 375px;
}

/* Charts & Analytics Components */
.chart-card {
  background: var(--surface);
  border: var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.chart-bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 14px;
}

.chart-bar-label {
  width: 110px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chart-bar-track {
  flex-grow: 1;
  height: 18px;
  background: var(--tint);
  border: 2px solid var(--ink);
  border-radius: 4px;
  overflow: hidden;
}

.chart-bar-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 0;
  transition: width 0.3s ease;
}

.chart-bar-count {
  font-weight: 700;
  min-width: 70px;
  text-align: end;
  font-size: 13px;
  color: var(--muted);
}

/* Auth Pages Card */
.auth-container {
  max-width: 460px;
  margin-inline: auto;
  padding: 60px 20px;
}

.auth-card {
  background: var(--surface);
  border: var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
  position: relative;
}

.auth-geom-decor {
  position: absolute;
  top: -14px;
  inset-inline-end: 24px;
  display: flex;
  gap: 6px;
}

.auth-geom-decor .decor-sq {
  width: 28px;
  height: 28px;
  border: 2px solid var(--ink);
  background: var(--secondary);
  box-shadow: 2px 2px 0 var(--ink);
  transform: rotate(-6deg);
}

.auth-geom-decor .decor-cir {
  width: 24px;
  height: 24px;
  border: 2px solid var(--ink);
  background: var(--tint);
  border-radius: 50%;
  box-shadow: 2px 2px 0 var(--ink);
}

/* Modal Neo-Brutalist Styling */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(24, 34, 48, 0.65);
  backdrop-filter: blur(2px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal-overlay.show {
  display: flex !important;
}

.modal-dialog {
  background: var(--surface);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: 8px 8px 0 var(--ink);
  width: 100%;
  max-width: 520px;
  padding: 28px;
  max-height: 90vh;
  overflow-y: auto;
}

/* Mobile Sticky Connect Bar for Ad View */
.mobile-connect-bar {
  display: none;
}

@media (max-width: 768px) {
  .mobile-connect-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface);
    border-top: var(--border);
    padding: 12px 20px;
    z-index: 90;
    box-shadow: 0 -4px 0 var(--ink);
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
}

/* Footer (Exact Spec: Ink bg, white text) */
.site-footer {
  background: var(--ink);
  color: #FFFFFF;
  border-top: var(--border);
  padding: 64px 0 32px;
  margin-top: 64px;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
  width: 100%;
  max-width: 100%;
}

@media (max-width: 991px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

.site-footer h4 {
  color: #FFFFFF;
  font-size: 16px;
  margin-bottom: 16px;
}

.site-footer p {
  color: #CBD5E1;
  font-size: 14px;
  line-height: 1.6;
}

.site-footer ul {
  list-style: none;
}

.site-footer ul li {
  margin-bottom: 10px;
}

.site-footer ul li a {
  color: #E2E8F0;
  text-decoration: none;
  font-size: 14px;
}

.site-footer ul li a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #94A3B8;
}

/* Alert Toasts */
.alert {
  padding: 14px 18px;
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.alert-success {
  background: #D1FADF;
  color: var(--success);
}

.alert-error {
  background: #FEE4E2;
  color: var(--danger);
}

.alert-info {
  background: var(--tint);
  color: var(--primary);
}

/* ==============================================================================
   Mobile Navigation & Touch-First Enhancements (Desktop Unchanged)
   ============================================================================== */

/* Mobile Menu Hamburger Button */
.mobile-menu-btn {
  display: none;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: 8px;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--ink);
  padding: 8px;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  margin-inline-start: 6px;
}

.mobile-menu-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 var(--ink);
}

.hamburger-bar {
  display: block;
  width: 22px;
  height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-menu-btn.open .hamburger-bar:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.mobile-menu-btn.open .hamburger-bar:nth-child(2) {
  opacity: 0;
}
.mobile-menu-btn.open .hamburger-bar:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--header-bg);
  border-bottom: 3px solid var(--ink);
  box-shadow: 0 10px 0 rgba(24, 34, 48, 0.15);
  z-index: 999;
  max-height: calc(100vh - 72px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-nav-drawer.open {
  display: block;
  animation: slideDownMobile .22s ease-out;
}

@keyframes slideDownMobile {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.mobile-nav-inner {
  padding: 18px 20px 24px;
  max-width: 540px;
  margin: 0 auto;
}

.mobile-nav-section {
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 2px dashed rgba(24, 34, 48, 0.2);
}

.mobile-nav-heading {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 10px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: 2px 2px 0 var(--ink);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 8px;
  transition: transform 0.1s ease;
}

.mobile-nav-link:active, .mobile-nav-link.active {
  background: var(--tint);
  border-color: var(--ink);
  transform: translate(1px, 1px);
}

.nav-arrow {
  color: var(--primary);
  font-weight: 700;
}

.mobile-lang-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
  max-height: 240px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 4px;
}

.mobile-lang-grid::-webkit-scrollbar {
  width: 6px;
}
.mobile-lang-grid::-webkit-scrollbar-track {
  background: var(--tint);
  border-radius: 4px;
}
.mobile-lang-grid::-webkit-scrollbar-thumb {
  background: var(--ink);
  border-radius: 4px;
}

.mobile-lang-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: 6px;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 600;
}

.mobile-lang-chip.active {
  background: var(--primary);
  color: #FFFFFF;
}

/* Mobile Bottom App Bar */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: var(--header-bg);
  border-top: 2px solid var(--ink);
  box-shadow: 0 -4px 10px rgba(24, 34, 48, 0.08);
  z-index: 998;
  padding: 4px 10px;
  justify-content: space-around;
  align-items: center;
}

.mobile-bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 6px;
  flex: 1;
  text-align: center;
  transition: color 0.1s ease;
}

.mobile-bar-item.active {
  color: var(--primary);
}

.bar-icon {
  font-size: 1.25rem;
  line-height: 1.2;
}

.bar-label {
  margin-top: 2px;
  white-space: nowrap;
}

.mobile-bar-item.post-cta {
  color: var(--ink);
}

.bar-icon-pill {
  background: var(--secondary);
  color: #FFFFFF;
  border: 2px solid var(--ink);
  border-radius: 99px;
  padding: 3px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 2px 2px 0 var(--ink);
}

/* Explore Classifieds & Postcard Styling */
.explore-cat-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 4px 2px 14px;
  margin-bottom: 24px;
  scrollbar-width: none;
}
.explore-cat-strip::-webkit-scrollbar {
  display: none;
}
.explore-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  padding: 9px 18px;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: 99px;
  box-shadow: 2px 2px 0 var(--ink);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
  transition: transform 0.1s ease, background 0.1s ease;
}
.explore-cat-pill:hover {
  background: var(--tint);
  transform: translate(-1px, -1px);
}
.explore-cat-pill.active {
  background: var(--primary);
  color: #FFFFFF;
}

/* Explore Grid Layout */
.explore-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
}

.explore-filter-sidebar {
  display: block;
}

.explore-mobile-filter-btn {
  display: none;
}

/* Mobile Filter Drawer / Bottom Sheet */
.mobile-filter-drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(24, 34, 48, 0.65);
  backdrop-filter: blur(2px);
  z-index: 10000;
  align-items: flex-end;
  justify-content: center;
}
.mobile-filter-drawer-overlay.show {
  display: flex !important;
}
.mobile-filter-drawer {
  background: var(--surface);
  border-top: 3px solid var(--ink);
  border-left: 2px solid var(--ink);
  border-right: 2px solid var(--ink);
  border-radius: 18px 18px 0 0;
  width: 100%;
  max-width: 560px;
  max-height: 85vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 24px 20px 32px;
  box-shadow: 0 -8px 24px rgba(24, 34, 48, 0.25);
  animation: slideUpDrawer 0.25s ease-out;
}

@keyframes slideUpDrawer {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .explore-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .explore-filter-sidebar {
    display: none !important; /* Hide bulky sidebar from mobile flow! */
  }
  .explore-mobile-filter-btn {
    display: inline-flex !important;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .cat-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .how-steps-grid {
    grid-template-columns: 1fr;
  }
  .search-form {
    grid-template-columns: 1fr;
  }
  .search-input-group {
    border-inline-end: none;
    border-bottom: 2px solid var(--ink);
    padding: 8px 0;
  }
}

@media (max-width: 768px) {
  body {
    padding-bottom: 72px; /* Clears fixed bottom mobile bar */
  }
  .desktop-only {
    display: none !important;
  }
  .mobile-menu-btn {
    display: flex;
  }
  .mobile-bottom-bar {
    display: flex;
  }
  .header-nav {
    display: none;
  }
  .site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden;
  }
  .header-inner {
    padding: 8px 12px !important;
    height: 58px !important;
    min-height: 58px !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .site-logo {
    min-width: 0;
    flex-shrink: 1;
    overflow: hidden;
  }
  .header-logo-img {
    height: 32px !important;
    max-width: 135px;
    object-fit: contain;
    width: auto;
  }
  .header-actions {
    gap: 6px !important;
    flex-shrink: 0;
    display: flex;
    align-items: center;
  }
  .btn-post-ad {
    padding: 6px 10px !important;
    font-size: 0.8rem !important;
    font-weight: 700;
    min-height: 38px !important;
    white-space: nowrap;
  }
  .mobile-search-btn {
    width: 38px !important;
    height: 38px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .mobile-menu-btn {
    width: 38px !important;
    height: 38px !important;
    padding: 8px !important;
    display: flex !important;
    flex-shrink: 0;
  }
  
  /* Touch target enlargement & iOS zoom prevention */
  .btn {
    min-height: 46px;
    touch-action: manipulation;
  }
  .form-control, select, input[type="text"], input[type="password"], input[type="email"], input[type="number"] {
    font-size: 16px !important; /* Prevents auto-zoom in mobile Safari */
    min-height: 46px;
  }

  /* Dashboard mobile layout & tab strip */
  .dash-layout {
    flex-direction: column;
    padding: 12px;
  }
  .dash-sidebar {
    width: 100%;
    padding: 12px;
    margin-bottom: 16px;
  }
  .dash-nav-group {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
  }
  .dash-nav-title {
    display: none;
  }
  .dash-nav-link {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 8px 12px;
    font-size: 0.88rem;
  }

  /* Hero Section scaling */
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }
  .hero-badge-tag {
    margin-inline: auto;
  }
  .hero-title {
    font-size: clamp(2rem, 7.5vw, 2.75rem);
    line-height: 1.15;
  }
  .hero-subtitle {
    font-size: 1rem;
    margin-inline: auto;
  }
  .hero-cta-group {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }
  .hero-cta-group .btn {
    width: 100%;
    justify-content: center;
  }

  /* Grids & Cards on mobile */
  .card, .wizard-panel {
    padding: 18px 14px !important;
  }
  .wizard-progress {
    padding: 10px 12px;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .wizard-step-item span {
    font-size: 11px;
    white-space: nowrap;
  }
  .step-circle {
    width: 28px;
    height: 28px;
    font-size: 12px;
    flex-shrink: 0;
  }
  .contact-methods-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }
  .modal-dialog {
    padding: 18px 14px !important;
    max-width: calc(100vw - 24px) !important;
    margin: 12px auto;
  }
  .cat-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .ads-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 2px solid var(--ink);
    border-radius: var(--radius);
  }
  
  /* Tabs & Horizontal Strips on Mobile */
  .ad-tabs {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: 8px !important;
  }
  .ad-tabs .btn {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
  }

  /* Footer */
  .site-footer {
    padding: 36px 0 24px !important;
    margin-top: 36px !important;
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
    margin-bottom: 32px !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .footer-bottom {
    flex-direction: column !important;
    text-align: center !important;
    gap: 12px !important;
    padding-top: 18px !important;
  }

  :root {
    --shadow: 3px 3px 0 var(--ink);
  }
  [dir="rtl"] {
    --shadow: -3px 3px 0 var(--ink);
  }
}

@media (max-width: 480px) {
  .cat-cards-grid {
    grid-template-columns: 1fr;
  }
  .card, .stat-card, .step-card {
    border-radius: 8px;
    padding: 16px 12px !important;
  }
  .ad-card {
    border-radius: 8px;
    padding: 0 !important;
  }
  .ad-card-media {
    height: 160px;
  }
  .ad-card-body {
    padding: 14px 12px;
  }
  .dash-layout {
    padding: 6px;
  }
  .mobile-connect-bar {
    padding: 10px 14px;
  }
}

/* Full-Screen Opening Animated Logo Splash */
#splash {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #BFE3FF 0%, #E3F3FF 45%, #FFFFFF 100%);
  animation: splashOut .4s 2.8s forwards; /* pure-CSS fallback: hides even if JS fails */
}

#splash.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .35s ease;
}

#splash .splash-logo {
  width: min(72vw, 360px);
  height: auto;
}

#splash svg * {
  animation-iteration-count: 1 !important; /* play once in the splash */
}

html.splash-on {
  overflow: hidden;
}

@keyframes splashOut {
  to {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  #splash {
    animation: splashOut .3s 0.8s forwards;
  }
  #splash svg * {
    animation: none !important;
  }
}

/* ==========================================================================
   THEME TOGGLE BUTTON & DARK MODE DESIGN SYSTEM
   ========================================================================== */

.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--surface);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 99px;
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--ink);
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.2s ease, border-color 0.2s ease;
  font-family: var(--font);
  line-height: 1;
}

.theme-toggle-btn:hover {
  background: var(--tint);
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--ink);
}

.theme-toggle-btn:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--ink);
}

.theme-toggle-btn svg {
  flex-shrink: 0;
  display: block;
}

@media (max-width: 768px) {
  .theme-toggle-btn {
    padding: 7px 9px;
  }
}

/* Base Logo Visibility in Light Mode */
.logo-dark {
  display: none !important;
}
.logo-light {
  display: block !important;
}

/* ==========================================================================
   DARK MODE TOKEN OVERRIDES & COMPONENT STYLING
   ========================================================================== */

[data-theme="dark"] {
  --primary: #3B82F6;       /* Electric Trust Blue - highly readable on dark */
  --primary-hover: #60A5FA;
  --secondary: #14B8A6;     /* Luminous Teal */
  --bg-top: #070B16;        /* Deep midnight sky */
  --bg-mid: #0D162B;        /* Mid gradient tone */
  --bg-bottom: #050811;     /* Midnight base */
  --surface: #0E172B;       /* Deep slate navy for cards, modals, dropdowns, inputs */
  --header-bg: #0A1020;     /* Dark header bar */
  --tint: #162444;          /* Subtle hover and active tint */
  --ink: #F8FAFC;           /* Bright Slate 50 - maximum readability for all text */
  --muted: #94A3B8;         /* Slate 400 - high contrast secondary text */
  --border: 2px solid #334E7A; /* Bold, sharp structural borders */
  --shadow: 4px 4px 0 #000000; /* Deep punchy offset shadows */
  --shadow-sm: 2px 2px 0 #000000;
  --shadow-hover: 2px 2px 0 #000000;
}

[data-theme="dark"] html {
  background: #050811 !important;
  color-scheme: dark;
}

[data-theme="dark"] body {
  background: linear-gradient(180deg, #070B16 0%, #0D162B 45%, #050811 100%) no-repeat top !important;
  background-size: 100% 900px !important;
  background-color: #050811 !important;
  color: #F8FAFC !important;
}

/* Logos switching */
[data-theme="dark"] .logo-light {
  display: none !important;
}
[data-theme="dark"] .logo-dark {
  display: block !important;
}

/* Typography Clarity */
[data-theme="dark"] h1, 
[data-theme="dark"] h2, 
[data-theme="dark"] h3, 
[data-theme="dark"] h4, 
[data-theme="dark"] h5, 
[data-theme="dark"] h6 {
  color: #F8FAFC !important;
}

[data-theme="dark"] .muted,
[data-theme="dark"] [style*="color: var(--muted)"] {
  color: #94A3B8 !important;
}

[data-theme="dark"] [style*="color: var(--ink)"] {
  color: #F8FAFC !important;
}

/* Card and Container Surfaces */
[data-theme="dark"] .card,
[data-theme="dark"] .ad-card,
[data-theme="dark"] .stat-card,
[data-theme="dark"] .step-card,
[data-theme="dark"] .cat-card,
[data-theme="dark"] .why-card,
[data-theme="dark"] .table-wrap,
[data-theme="dark"] .modal-dialog,
[data-theme="dark"] .ai-suggestion-box,
[data-theme="dark"] [style*="background: var(--surface)"] {
  background: #0E172B !important;
  border-color: #334E7A !important;
}

[data-theme="dark"] [style*="background: var(--tint)"] {
  background: #162444 !important;
  border-color: #334E7A !important;
}

[data-theme="dark"] [style*="background: var(--bg)"] {
  background: #070B16 !important;
  border-color: #334E7A !important;
}

/* Hard Shadows in Dark Mode */
[data-theme="dark"] .card,
[data-theme="dark"] .ad-card,
[data-theme="dark"] .stat-card,
[data-theme="dark"] .step-card,
[data-theme="dark"] .cat-card,
[data-theme="dark"] .why-card,
[data-theme="dark"] .table-wrap,
[data-theme="dark"] .modal-dialog,
[data-theme="dark"] .btn,
[data-theme="dark"] [style*="box-shadow: 4px 4px 0"],
[data-theme="dark"] [style*="box-shadow: 3px 3px 0"],
[data-theme="dark"] [style*="box-shadow: 2px 2px 0"] {
  box-shadow: 3px 3px 0 #000000 !important;
}

[data-theme="dark"] [style*="border: 2px solid var(--ink)"],
[data-theme="dark"] [style*="border: 1px solid var(--ink)"],
[data-theme="dark"] [style*="border: 1.5px solid var(--ink)"],
[data-theme="dark"] [style*="border-top: 2px solid var(--ink)"],
[data-theme="dark"] [style*="border-bottom: 2px solid var(--ink)"] {
  border-color: #334E7A !important;
}

/* Header & Navigation */
[data-theme="dark"] .site-header {
  background: #0A1020 !important;
  border-bottom: 2px solid #334E7A !important;
}

[data-theme="dark"] .header-nav a {
  color: #E2E8F0 !important;
}

[data-theme="dark"] .header-nav a:hover {
  color: #38BDF8 !important;
}

[data-theme="dark"] .lang-dropdown-btn {
  background: #0E172B !important;
  color: #F8FAFC !important;
  border-color: #334E7A !important;
  box-shadow: 2px 2px 0 #000000 !important;
}

[data-theme="dark"] .lang-menu {
  background: #0E172B !important;
  border: 2px solid #334E7A !important;
  box-shadow: 4px 4px 0 #000000 !important;
}

[data-theme="dark"] .lang-menu a {
  color: #E2E8F0 !important;
}

[data-theme="dark"] .lang-menu a:hover {
  background: #162444 !important;
  color: #38BDF8 !important;
}

[data-theme="dark"] .theme-toggle-btn {
  background: #0E172B !important;
  color: #F8FAFC !important;
  border-color: #334E7A !important;
  box-shadow: 2px 2px 0 #000000 !important;
}

[data-theme="dark"] .theme-toggle-btn:hover {
  background: #162444 !important;
  border-color: #38BDF8 !important;
}

/* Mobile Drawers & Bottom Bars */
[data-theme="dark"] .mobile-nav-drawer {
  background: #0A1020 !important;
  border-bottom: 2px solid #334E7A !important;
}

[data-theme="dark"] .mobile-nav-heading {
  color: #94A3B8 !important;
  border-bottom-color: #162444 !important;
}

[data-theme="dark"] .mobile-nav-link {
  color: #E2E8F0 !important;
  border-bottom-color: #162444 !important;
}

[data-theme="dark"] .mobile-nav-link:hover,
[data-theme="dark"] .mobile-nav-link.active {
  background: #162444 !important;
  color: #38BDF8 !important;
}

[data-theme="dark"] .mobile-connect-bar,
[data-theme="dark"] .mobile-bottom-bar {
  background: #0A1020 !important;
  border-top: 2px solid #334E7A !important;
  box-shadow: 0 -3px 0 #000000 !important;
}

[data-theme="dark"] .mobile-bottom-btn {
  color: #94A3B8 !important;
}

[data-theme="dark"] .mobile-bottom-btn.active,
[data-theme="dark"] .mobile-bottom-btn:hover {
  color: #38BDF8 !important;
}

[data-theme="dark"] .mobile-filter-drawer {
  background: #0E172B !important;
  border-top: 2px solid #334E7A !important;
  box-shadow: 0 -4px 0 #000000 !important;
}

/* Category Pills Strip */
[data-theme="dark"] .explore-cat-pill {
  background: #0E172B !important;
  color: #E2E8F0 !important;
  border-color: #334E7A !important;
  box-shadow: 2px 2px 0 #000000 !important;
}

[data-theme="dark"] .explore-cat-pill:hover {
  background: #162444 !important;
  border-color: #38BDF8 !important;
  color: #FFFFFF !important;
}

[data-theme="dark"] .explore-cat-pill.active {
  background: #2563EB !important;
  color: #FFFFFF !important;
  border-color: #3B82F6 !important;
}

/* Form Controls & Inputs */
[data-theme="dark"] .form-control,
[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="email"],
[data-theme="dark"] input[type="password"],
[data-theme="dark"] input[type="number"],
[data-theme="dark"] input[type="url"],
[data-theme="dark"] select,
[data-theme="dark"] textarea {
  background: #080D1A !important;
  color: #F8FAFC !important;
  border: 2px solid #334E7A !important;
  box-shadow: 2px 2px 0 #000000 !important;
}

[data-theme="dark"] .form-control:focus,
[data-theme="dark"] input:focus,
[data-theme="dark"] select:focus,
[data-theme="dark"] textarea:focus {
  outline: 2px solid #38BDF8 !important;
  border-color: #38BDF8 !important;
}

[data-theme="dark"] .form-label {
  color: #E2E8F0 !important;
}

[data-theme="dark"] .form-hint {
  color: #94A3B8 !important;
}

[data-theme="dark"] select option {
  background: #080D1A;
  color: #F8FAFC;
}

/* Buttons */
[data-theme="dark"] .btn-primary,
[data-theme="dark"] .btn-post-ad {
  background: #2563EB !important;
  color: #FFFFFF !important;
  border: 2px solid #3B82F6 !important;
}

[data-theme="dark"] .btn-primary:hover,
[data-theme="dark"] .btn-post-ad:hover {
  background: #1D4ED8 !important;
  border-color: #60A5FA !important;
}

[data-theme="dark"] .btn-secondary {
  background: #0D9488 !important;
  color: #FFFFFF !important;
  border: 2px solid #14B8A6 !important;
}

[data-theme="dark"] .btn-secondary:hover {
  background: #0F766E !important;
  border-color: #2DD4BF !important;
}

[data-theme="dark"] .btn-neutral,
[data-theme="dark"] .btn-outline {
  background: #0E172B !important;
  color: #F8FAFC !important;
  border: 2px solid #334E7A !important;
}

[data-theme="dark"] .btn-neutral:hover,
[data-theme="dark"] .btn-outline:hover {
  background: #162444 !important;
  border-color: #38BDF8 !important;
  color: #38BDF8 !important;
}

/* Dashboards & Admin Center */
[data-theme="dark"] .dash-sidebar {
  background: #0E172B !important;
  border-color: #334E7A !important;
}

[data-theme="dark"] .dash-title {
  color: #F8FAFC !important;
}

[data-theme="dark"] .dash-subtitle {
  color: #94A3B8 !important;
}

[data-theme="dark"] .dash-nav-title {
  color: #64748B !important;
}

[data-theme="dark"] .dash-nav-link {
  color: #CBD5E1 !important;
}

[data-theme="dark"] .dash-nav-link:hover,
[data-theme="dark"] .dash-nav-link.active {
  background: #162444 !important;
  color: #38BDF8 !important;
}

/* Tables */
[data-theme="dark"] .dash-table {
  background: #0E172B !important;
}

[data-theme="dark"] .dash-table th {
  background: #162444 !important;
  color: #F8FAFC !important;
  border-bottom: 2px solid #334E7A !important;
}

[data-theme="dark"] .dash-table td {
  color: #E2E8F0 !important;
  border-bottom: 1px solid #162444 !important;
}

[data-theme="dark"] .dash-table tr:hover td {
  background: #121E38 !important;
}

/* Code, Badges and Tags */
[data-theme="dark"] code {
  background: #162444 !important;
  color: #38BDF8 !important;
  border: 1px solid #334E7A !important;
}

[data-theme="dark"] .badge-published {
  background: #064E3B !important;
  color: #34D399 !important;
  border-color: #059669 !important;
}

[data-theme="dark"] .badge-pending {
  background: #451A03 !important;
  color: #FBBF24 !important;
  border-color: #D97706 !important;
}

[data-theme="dark"] .badge-rejected {
  background: #450A0A !important;
  color: #F87171 !important;
  border-color: #DC2626 !important;
}

/* Footer in Dark Mode */
[data-theme="dark"] .site-footer {
  background: #050811 !important;
  border-top: 2px solid #334E7A !important;
}

/* Modals */
[data-theme="dark"] .modal-overlay {
  background: rgba(0, 0, 0, 0.75) !important;
}

[data-theme="dark"] .modal-dialog {
  background: #0E172B !important;
  border: 2px solid #334E7A !important;
  color: #F8FAFC !important;
}

/* Sponsored Ads Banner in Dark Mode */
[data-theme="dark"] .header-sponsor-bar {
  background: #0E172B !important;
  border-bottom-color: #334E7A !important;
}

[data-theme="dark"] .footer-sponsor-banner {
  background: #0E172B !important;
  border-top-color: #334E7A !important;
  border-bottom-color: #334E7A !important;
}

/* Splash Screen in Dark Mode */
[data-theme="dark"] #splash {
  background: linear-gradient(180deg, #070B16 0%, #0D162B 45%, #050811 100%) !important;
}



/* ==============================================================================
   OneDollarOneAd - Rebuilt Homepage Components (Trust Blue x Bold)
   ============================================================================== */

/* Hero Highlight Block: Teal, tilted -1.5deg */
.hero-worldwide-highlight {
  display: inline-block;
  background: var(--secondary);
  color: var(--ink);
  padding: 2px 14px;
  border: var(--border);
  border-radius: 6px;
  box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(-1.5deg);
  margin-inline-start: 6px;
  white-space: nowrap;
}

[dir="rtl"] .hero-worldwide-highlight {
  transform: rotate(1.5deg);
}

/* Public Access Notice Grid & Cards */
.public-notice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.public-notice-card {
  padding: 28px;
  background: var(--surface);
  border: var(--border);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
}

.public-notice-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.public-notice-icon {
  font-size: 1.5rem;
  line-height: 1;
}

/* Category Browse Link */
.cat-browse-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: underline;
  margin-top: 4px;
}

.cat-browse-link:hover {
  color: var(--ink);
}

/* Why Cards Grid (3 per row desktop) */
.why-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Country Chips */
.country-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.country-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--surface);
  border: var(--border);
  border-radius: 999px;
  box-shadow: 2px 2px 0 var(--ink);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  min-height: 44px;
}

.country-chip:hover {
  background: var(--tint);
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--ink);
}

.country-chip-code {
  font-size: 1rem;
}

/* FAQ Accessible Accordions */
.faq-accordion-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-accordion-item {
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--surface);
  overflow: hidden;
}

.faq-accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: transparent;
  border: none;
  font-family: var(--font);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  min-height: 44px;
}

[dir="rtl"] .faq-accordion-header {
  text-align: right;
}

.faq-accordion-header:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: -2px;
}

.faq-accordion-icon {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
  color: var(--primary);
  flex-shrink: 0;
}

.faq-accordion-body {
  padding: 0 24px 20px;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--ink);
}

.faq-accordion-body p {
  margin: 0;
}

/* Closing CTA Banner */
.closing-cta-banner {
  background: var(--primary);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 44px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.closing-cta-content {
  flex: 1;
  min-width: 280px;
}

.btn-closing-cta {
  background: #FFFFFF !important;
  color: var(--ink) !important;
  border: 2px solid var(--ink) !important;
  box-shadow: 3px 3px 0 var(--ink) !important;
  font-weight: 700 !important;
  font-size: 1.05rem !important;
  padding: 14px 28px !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  white-space: nowrap !important;
  min-height: 44px !important;
}

.btn-closing-cta:hover {
  background: var(--tint) !important;
  transform: translate(-2px, -2px) !important;
  box-shadow: 5px 5px 0 var(--ink) !important;
}

/* Mobile Search Icon Button */
@media (max-width: 768px) {
  .mobile-search-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--surface);
    border: var(--border);
    border-radius: 8px;
    box-shadow: 2px 2px 0 var(--ink);
    color: var(--ink);
    text-decoration: none;
    margin-inline-end: 6px;
  }
}

/* Tablet & Mobile Breakpoints */
@media (max-width: 1024px) {
  .why-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .public-notice-grid {
    grid-template-columns: 1fr;
  }
  .why-cards-grid {
    grid-template-columns: 1fr;
  }
  .closing-cta-banner {
    padding: 32px 24px;
    flex-direction: column;
    align-items: flex-start;
  }
  .btn-closing-cta {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .cat-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Dark Mode Overrides for Homepage Components */
[data-theme="dark"] .hero-worldwide-highlight {
  background: var(--secondary) !important;
  color: #070B16 !important;
  border-color: #334E7A !important;
  box-shadow: 3px 3px 0 #000000 !important;
}

[data-theme="dark"] .public-notice-card {
  background: #0E172B !important;
  border-color: #334E7A !important;
  color: #F8FAFC !important;
}

[data-theme="dark"] .public-notice-card h2,
[data-theme="dark"] .public-notice-card p {
  color: #F8FAFC !important;
}

[data-theme="dark"] .country-chip {
  background: #0E172B !important;
  border-color: #334E7A !important;
  color: #F8FAFC !important;
  box-shadow: 2px 2px 0 #000000 !important;
}

[data-theme="dark"] .country-chip:hover {
  background: #162444 !important;
}

[data-theme="dark"] .faq-accordion-item {
  background: #0E172B !important;
  border-color: #334E7A !important;
  box-shadow: 3px 3px 0 #000000 !important;
}

[data-theme="dark"] .faq-accordion-header {
  color: #F8FAFC !important;
}

[data-theme="dark"] .faq-accordion-body {
  color: #E2E8F0 !important;
}

[data-theme="dark"] .closing-cta-banner {
  background: #1D4ED8 !important;
  border-color: #334E7A !important;
  box-shadow: 4px 4px 0 #000000 !important;
}

[data-theme="dark"] .btn-closing-cta {
  background: #F8FAFC !important;
  color: #070B16 !important;
  border-color: #334E7A !important;
  box-shadow: 3px 3px 0 #000000 !important;
}
