/* ==========================================================================
   NASAS MARKETPLACE — ULTRA PREMIUM DESIGN SYSTEM
   Theme: Executive Midnight Commercial (Navy, Warm Gold & Emerald)
   Includes: 2-Part Architecture (User Portal vs Admin Portal)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Colors */
  --bg-main: #070b14;
  --bg-surface: #0e1526;
  --bg-card: rgba(18, 27, 48, 0.72);
  --bg-card-hover: rgba(26, 39, 68, 0.85);
  --bg-glass: rgba(14, 21, 38, 0.65);
  --bg-glass-heavy: rgba(10, 15, 28, 0.88);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-card: rgba(255, 255, 255, 0.12);
  --border-gold: rgba(229, 169, 93, 0.35);
  --border-glow: rgba(56, 189, 248, 0.3);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-tertiary: #64748b;
  --text-gold: #f5c77e;

  /* Brand Accents */
  --gold-500: #e5a95d;
  --gold-gradient: linear-gradient(135deg, #fce08a 0%, #e5a95d 50%, #b87a2a 100%);
  --blue-gradient: linear-gradient(135deg, #38bdf8 0%, #2563eb 100%);
  --emerald-gradient: linear-gradient(135deg, #34d399 0%, #059669 100%);
  --purple-gradient: linear-gradient(135deg, #c084fc 0%, #7c3aed 100%);

  /* Verification Badges */
  --verified-bg: rgba(16, 185, 129, 0.12);
  --verified-color: #34d399;
  --verified-border: rgba(16, 185, 129, 0.35);

  --listed-bg: rgba(245, 158, 11, 0.12);
  --listed-color: #fbbf24;
  --listed-border: rgba(245, 158, 11, 0.35);

  --partner-bg: rgba(168, 85, 247, 0.12);
  --partner-color: #c084fc;
  --partner-border: rgba(168, 85, 247, 0.35);

  --pending-bg: rgba(239, 68, 68, 0.12);
  --pending-color: #f87171;
  --pending-border: rgba(239, 68, 68, 0.35);

  /* Elevation & Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.65);
  --shadow-gold: 0 0 30px rgba(229, 169, 93, 0.15);
  --shadow-glow: 0 0 40px rgba(37, 99, 235, 0.15);

  /* Typography */
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Transitions */
  --trans-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --trans-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --trans-bounce: 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Light Mode Overrides */
[data-theme="light"] {
  --bg-main: #f1f5f9;
  --bg-surface: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-card-hover: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --bg-glass-heavy: rgba(248, 250, 252, 0.96);
  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-card: rgba(0, 0, 0, 0.1);
  --border-gold: rgba(184, 122, 42, 0.3);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #94a3b8;
  --text-gold: #b87a2a;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  background-image: 
    radial-gradient(circle at 15% 10%, rgba(37, 99, 235, 0.07) 0%, transparent 40%),
    radial-gradient(circle at 85% 20%, rgba(229, 169, 93, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 50% 80%, rgba(16, 185, 129, 0.05) 0%, transparent 50%);
  background-attachment: fixed;
}

::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-card);
  border-radius: 4px;
  border: 2px solid var(--bg-main);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-500);
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
  outline: none;
}

/* ==========================================================================
   HEADER & TWO-PART PORTAL SWITCHER
   ========================================================================== */
.nasas-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: var(--bg-glass);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--trans-smooth);
}

.top-bar-notice {
  background: linear-gradient(90deg, #0e1526 0%, #1e293b 50%, #0e1526 100%);
  border-bottom: 1px solid var(--border-subtle);
  padding: 6px 24px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-notice .tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: rgba(229, 169, 93, 0.15);
  color: var(--gold-500);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid var(--border-gold);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
}

.brand-logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--gold-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(229, 169, 93, 0.3);
  color: #070b14;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.brand-text-col {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.5px;
  background: linear-gradient(180deg, #ffffff 30%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.15;
}

.brand-subtitle {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--gold-500);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-btn {
  padding: 8px 14px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--trans-fast);
}

.nav-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav-btn.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-subtle);
}

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

/* Two-Part Master Switcher */
.mode-toggle-pill {
  background: rgba(0, 0, 0, 0.35);
  padding: 4px;
  border-radius: 12px;
  display: flex;
  border: 1px solid var(--border-subtle);
  gap: 4px;
}

.mode-tab-btn {
  padding: 7px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  background: transparent;
  color: var(--text-secondary);
  transition: var(--trans-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}

.mode-tab-btn.active {
  background: var(--gold-gradient);
  color: #070b14;
  box-shadow: 0 2px 10px rgba(229, 169, 93, 0.3);
}

.mode-tab-btn.admin-btn {
  border: 1px solid rgba(229, 169, 93, 0.25);
}
.mode-tab-btn.admin-btn.active {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
}

.theme-toggle-btn {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--trans-fast);
}

.theme-toggle-btn:hover {
  color: var(--gold-500);
  border-color: var(--border-gold);
}

/* Mobile Hamburger Toggle Button */
.mobile-toggle-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 1.35rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: var(--trans-fast);
}

.mobile-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--gold-500);
  border-color: var(--border-gold);
}

/* Mobile Navigation Drawer & Backdrop */
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s;
}

.mobile-nav-backdrop.active,
.mobile-nav-backdrop.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 85vw);
  max-width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: #0e1526;
  border-left: 1px solid rgba(229, 169, 93, 0.25);
  box-shadow: -15px 0 45px rgba(0, 0, 0, 0.85);
  z-index: 1000;
  display: none;
  flex-direction: column;
  transform: translateX(100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
  overflow: hidden;
}

.mobile-nav-drawer.open,
.mobile-nav-drawer.active {
  display: flex !important;
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.mobile-drawer-header {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.02);
}

.drawer-close-btn {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-tertiary);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--trans-fast);
}

.drawer-close-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-gold);
}

.mobile-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  -webkit-overflow-scrolling: touch;
}

.mobile-drawer-auth {
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
}

.drawer-user-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.drawer-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.drawer-auth-cta {
  display: flex;
  flex-direction: column;
}

.mobile-drawer-section-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold-500);
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-nav-link {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: var(--trans-fast);
}

.mobile-nav-link:hover, .mobile-nav-link.active {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

.nav-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(229, 169, 93, 0.12);
  color: var(--gold-500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.mobile-drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.mobile-drawer-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.78rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.drawer-agency-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  font-size: 0.8rem;
}

.drawer-contact-line {
  display: flex;
  align-items: center;
  gap: 6px;
}

.drawer-contact-line a {
  color: var(--gold-500);
  font-weight: 600;
}

/* ==========================================================================
   BUTTONS & GENERAL UI
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--trans-fast);
  border: none;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold-gradient);
  color: #070b14;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(229, 169, 93, 0.25);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(229, 169, 93, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-card);
  color: var(--text-primary);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--text-primary);
}

.btn-whatsapp {
  background: #25d366;
  color: #052a12;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}
.btn-whatsapp:hover {
  background: #22bf5b;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

.btn-outline-gold {
  background: transparent;
  border: 1px solid var(--border-gold);
  color: var(--gold-500);
}
.btn-outline-gold:hover {
  background: rgba(229, 169, 93, 0.12);
  border-color: var(--gold-500);
}

.btn-verify-action {
  background: var(--emerald-gradient);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}
.btn-verify-action:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.8rem;
  border-radius: 6px;
}

/* ==========================================================================
   BADGES & MATERIALS GATED ACCESS
   ========================================================================== */
.badge-verification {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  padding: 4px 9px;
  border-radius: 6px;
  text-transform: uppercase;
  font-family: var(--font-mono);
}

.badge-verification.verified {
  background: var(--verified-bg);
  color: var(--verified-color);
  border: 1px solid var(--verified-border);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.badge-verification.listed {
  background: var(--listed-bg);
  color: var(--listed-color);
  border: 1px solid var(--listed-border);
}

.badge-verification.partner {
  background: var(--partner-bg);
  color: var(--partner-color);
  border: 1px solid var(--partner-border);
}

.badge-verification.pending {
  background: var(--pending-bg);
  color: var(--pending-color);
  border: 1px solid var(--pending-border);
}

.badge-ref {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  letter-spacing: 0.5px;
}

/* Materials Gated Status Bar on Listing Cards */
.materials-gated-bar {
  margin: 10px 0 14px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.materials-gated-bar.unlocked {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: var(--verified-color);
}

.materials-gated-bar.locked {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: #fbbf24;
}

.btn-access-materials {
  background: rgba(16, 185, 129, 0.15);
  color: var(--verified-color);
  border: 1px solid var(--verified-border);
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--trans-fast);
}
.btn-access-materials:hover {
  background: var(--verified-color);
  color: #070b14;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 50px 24px 30px;
  max-width: 1400px;
  margin: 0 auto;
}

.hero-card {
  position: relative;
  background: linear-gradient(135deg, rgba(14, 21, 38, 0.85) 0%, rgba(10, 15, 28, 0.95) 100%),
              url('../assets/hero_banner.jpg') center/cover no-repeat;
  border: 1px solid var(--border-card);
  border-radius: 20px;
  padding: 44px;
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--shadow-gold);
}

.hero-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(229, 169, 93, 0.12), transparent 50%),
              radial-gradient(circle at bottom left, rgba(37, 99, 235, 0.15), transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(229, 169, 93, 0.12);
  border: 1px solid var(--border-gold);
  border-radius: 30px;
  color: var(--gold-500);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  background: linear-gradient(180deg, #ffffff 40%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title .highlight-gold {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.08rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 26px;
  max-width: 720px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}

.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-val {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
}

.stat-lbl {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   SEARCH & CATEGORY BAR
   ========================================================================== */
.controls-bar {
  max-width: 1400px;
  margin: 0 auto 30px;
  padding: 0 24px;
}

.search-box-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: 14px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--trans-smooth);
}

.search-box-wrapper:focus-within {
  border-color: var(--border-gold);
  box-shadow: var(--shadow-gold);
}

.search-icon {
  font-size: 1.15rem;
  color: var(--text-tertiary);
}

.search-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 0.96rem;
}
.search-input::placeholder {
  color: var(--text-tertiary);
}

.category-tabs-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.cat-chip {
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 0.86rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--trans-fast);
}

.cat-chip:hover {
  color: var(--text-primary);
  background: var(--bg-card-hover);
  border-color: var(--border-card);
}

.cat-chip.active {
  background: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--gold-500);
  box-shadow: 0 0 16px rgba(229, 169, 93, 0.2);
}

.cat-count {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ==========================================================================
   LISTINGS CATALOG GRID
   ========================================================================== */
.catalog-section {
  max-width: 1400px;
  margin: 0 auto 60px;
  padding: 0 24px;
}

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
}

.section-title-wrap h2 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--text-primary);
}

.section-title-wrap p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.listing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
  transition: var(--trans-smooth);
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(8px);
}

.listing-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-card);
  box-shadow: var(--shadow-md), 0 0 24px rgba(37, 99, 235, 0.1);
  background: var(--bg-card-hover);
}

.card-img-holder {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #0f172a;
}

.card-img-holder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.listing-card:hover .card-img-holder img {
  transform: scale(1.06);
}

.card-badges-top {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}

.card-category-pill {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  background: rgba(10, 15, 28, 0.85);
  color: var(--text-primary);
  padding: 3px 8px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.card-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.card-features-list {
  list-style: none;
  margin-bottom: 12px;
  flex: 1;
}

.card-feature-item {
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
}

.card-feature-item i {
  color: var(--gold-500);
  font-size: 0.85rem;
}

.card-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  margin-bottom: 14px;
}

.price-wrap {
  display: flex;
  flex-direction: column;
}

.price-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-tertiary);
  font-weight: 600;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold-500);
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* ==========================================================================
   REVERSE MARKETPLACE & TRACK RECORD
   ========================================================================== */
.reverse-market-section {
  max-width: 1400px;
  margin: 0 auto 60px;
  padding: 0 24px;
}

.reverse-board-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-gold);
  border-radius: 18px;
  padding: 32px;
  box-shadow: var(--shadow-gold);
  position: relative;
  overflow: hidden;
}

.reverse-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.reverse-header h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.requirements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 18px;
}

.req-item-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 20px;
  transition: var(--trans-fast);
  display: flex;
  flex-direction: column;
}

.req-item-card:hover {
  border-color: var(--border-card);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.req-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.req-status-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.req-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.req-meta-list {
  font-size: 0.82rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
}

.req-specs-box {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.deals-section {
  max-width: 1400px;
  margin: 0 auto 60px;
  padding: 0 24px;
}

.deals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.deal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.deal-card::after {
  content: 'FACILITATED BY NASAS';
  position: absolute;
  top: 14px;
  right: -28px;
  transform: rotate(35deg);
  background: var(--gold-gradient);
  color: #070b14;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 4px 28px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.deal-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  padding-right: 50px;
}

.deal-metric-row {
  display: flex;
  gap: 16px;
  margin: 12px 0;
  font-size: 0.82rem;
}
.deal-metric-row strong {
  color: var(--gold-500);
}

.deal-summary {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ==========================================================================
   ADMIN PORTAL & VERIFICATION QUEUE
   ========================================================================== */
.admin-auth-barrier-overlay {
  position: fixed;
  inset: 0;
  background: #070b14;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.admin-auth-barrier-card {
  background: #0e1526;
  border: 1px solid var(--border-gold);
  border-radius: 20px;
  max-width: 440px;
  width: 100%;
  padding: 36px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  text-align: center;
}

.admin-workspace-main {
  max-width: 1400px;
  margin: 30px auto 80px;
  padding: 0 24px;
}

.admin-view-container {
  max-width: 1400px;
  margin: 0 auto 80px;
  padding: 0 24px;
  display: none;
}

.admin-view-container.active {
  display: block;
}

.admin-header-bar {
  background: var(--bg-surface);
  border: 1px solid var(--border-gold);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.admin-content-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
}

.admin-tabs-nav {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 12px;
  margin-bottom: 24px;
  overflow-x: auto;
}

.admin-nav-tab {
  padding: 9px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-nav-tab.active {
  background: var(--bg-card);
  border-color: var(--border-card);
  color: var(--text-primary);
}

.tab-badge-count {
  background: #ef4444;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 10px;
}

.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 20px;
}

.kpi-card .kpi-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold-500);
}

.kpi-card .kpi-lbl {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
}

/* Verification Queue Review Cards */
.queue-card-item {
  background: var(--bg-surface);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-left: 5px solid #ef4444;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.queue-card-info {
  flex: 1;
}

.queue-materials-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}

.queue-doc-chip {
  font-size: 0.76rem;
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  border-radius: 6px;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* CRM Tables */
.crm-table-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.crm-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.86rem;
}

.crm-table th {
  background: rgba(255, 255, 255, 0.04);
  padding: 14px 16px;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
}

.crm-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

.crm-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Social Media Post Generator */
.social-gen-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 28px;
}

@media (max-width: 900px) {
  .social-gen-card {
    grid-template-columns: 1fr;
  }
}

.facebook-preview-mockup {
  background: #18191a;
  border: 1px solid #3a3b3c;
  border-radius: 10px;
  padding: 18px;
  color: #e4e6eb;
  font-size: 0.88rem;
}

.fb-mock-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.fb-mock-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #070b14;
}

.fb-post-text-box {
  background: #242526;
  border: 1px solid #3a3b3c;
  border-radius: 8px;
  padding: 14px;
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 0.86rem;
  line-height: 1.5;
  color: #e4e6eb;
  max-height: 380px;
  overflow-y: auto;
}

/* ==========================================================================
   MATERIALS ACCESS MODAL & DOCUMENT VIEWER
   ========================================================================== */
.materials-viewer-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0;
}

.material-item-row {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 10px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.material-item-row.unlocked {
  border-left: 4px solid var(--verified-color);
}

.material-item-row.locked {
  border-left: 4px solid #ef4444;
  opacity: 0.8;
}

.doc-info-col {
  display: flex;
  flex-direction: column;
}

.doc-title {
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.doc-meta {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ==========================================================================
   MODAL DIALOGS
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--trans-smooth);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: 20px;
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
}

.modal-close-btn {
  background: transparent;
  border: none;
  font-size: 1.4rem;
  color: var(--text-tertiary);
  cursor: pointer;
}
.modal-close-btn:hover {
  color: var(--text-primary);
}

.modal-body {
  padding: 24px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 600px) {
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: var(--trans-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--border-gold);
  box-shadow: 0 0 10px rgba(229, 169, 93, 0.2);
}

.form-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  cursor: pointer;
}

/* Floating WhatsApp Widget */
.floating-whatsapp-hub {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99;
}

.floating-wa-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
  cursor: pointer;
  transition: var(--trans-bounce);
  border: none;
}

.floating-wa-btn:hover {
  transform: scale(1.08);
}

.wa-intent-popover {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 310px;
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 16px;
  display: none;
  flex-direction: column;
  gap: 10px;
}

.wa-intent-popover.active {
  display: flex;
}

.wa-popover-header {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 8px;
}

.wa-intent-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--trans-fast);
  text-align: left;
}

.wa-intent-btn:hover {
  background: rgba(37, 211, 102, 0.15);
  border-color: #25d366;
  color: #25d366;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-left: 4px solid var(--gold-500);
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 0.86rem;
  color: var(--text-primary);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from { transform: translateX(-100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Footer */
.nasas-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 48px 24px 24px;
  margin-top: 80px;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 36px;
  margin-bottom: 40px;
}

@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-tertiary);
  flex-wrap: wrap;
  gap: 12px;
}

@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  .nasas-header, .hero-section, .controls-bar, .catalog-section, 
  .reverse-market-section, .deals-section, .floating-whatsapp-hub,
  .nasas-footer, .admin-header-bar, .admin-tabs-nav, .btn, .no-print {
    display: none !important;
  }
  .printable-agreement-box {
    display: block !important;
    padding: 40px !important;
    color: #000 !important;
  }
}

/* ==========================================================================
   USER AUTH & PROFILE BADGE
   ========================================================================== */
.user-auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 20px;
}

.auth-tab-btn {
  flex: 1;
  padding: 10px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--trans-fast);
}

.auth-tab-btn.active {
  color: var(--gold-500);
  border-bottom-color: var(--gold-500);
}

.user-profile-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-card);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.user-avatar-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: #070b14;
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   MOBILE & RESPONSIVE DESIGN SYSTEM
   Breakpoints: 1024px (Tablet), 880px (Nav Switch), 768px (Mobile), 480px / 380px (Small Mobile)
   ========================================================================== */

/* Universal Mobile Overflow & Touch Ergonomics */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Tablet Optimizations (<= 1024px) */
@media (max-width: 1024px) {
  .header-container {
    padding: 12px 18px;
    gap: 14px;
  }
  .nav-btn {
    padding: 7px 10px;
    font-size: 0.82rem;
  }
  .hero-card {
    padding: 36px 30px;
  }
}

/* Tablet & Mobile Navigation Breakpoint (<= 992px) */
@media (max-width: 992px) {
  .desktop-nav,
  header.nasas-header .desktop-nav,
  header.nasas-header .nav-links,
  nav.desktop-nav,
  .nav-links,
  .desktop-only-btn {
    display: none !important;
  }

  .mobile-toggle-btn {
    display: flex !important;
  }

  .top-bar-notice {
    padding: 6px 14px;
    font-size: 0.72rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    overflow: hidden;
  }

  .top-bar-subtext {
    display: none !important;
  }

  .top-bar-left, .top-bar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }

  .nasas-header {
    background: var(--bg-surface);
  }

  .header-container {
    padding: 8px 12px;
    gap: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .brand-wrapper {
    gap: 8px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
  }

  .brand-text-col {
    min-width: 0;
    overflow: hidden;
  }

  .brand-logo-mark {
    width: 36px;
    height: 36px;
    font-size: 1.15rem;
    border-radius: 8px;
    flex-shrink: 0;
  }

  .brand-title {
    font-size: 1rem;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .brand-subtitle {
    display: none !important;
  }

  .header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
  }

  .theme-toggle-btn {
    width: 34px;
    height: 34px;
    font-size: 0.92rem;
    flex-shrink: 0;
  }

  .mobile-toggle-btn {
    display: flex !important;
    width: 34px;
    height: 34px;
    font-size: 1.25rem;
    border-radius: 8px;
    flex-shrink: 0;
  }

  .header-auth-btn {
    padding: 6px 10px;
    height: 34px;
    border-radius: 8px;
    flex-shrink: 0;
  }

  .header-auth-btn .auth-btn-text {
    display: none !important;
  }

  .user-profile-pill {
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    gap: 0 !important;
    flex-shrink: 0;
  }

  .user-pill-name {
    display: none !important;
  }

  .user-profile-pill .btn {
    display: none !important;
  }

  .user-avatar-circle {
    width: 34px;
    height: 34px;
    font-size: 0.85rem;
    flex-shrink: 0;
  }
}

/* Standard Mobile Devices (<= 768px) */
@media (max-width: 768px) {
  /* Prevent iOS automatic input zoom (requires font-size >= 16px) */
  input, select, textarea,
  .form-input, .form-select, .form-textarea,
  .search-input {
    font-size: 16px !important;
  }

  /* Hero Section */
  .hero-section {
    padding: 14px 12px 18px;
    max-width: 100vw;
  }

  .hero-card {
    padding: 22px 16px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(14, 21, 38, 0.94) 0%, rgba(10, 15, 28, 0.98) 100%),
                url('../assets/hero_banner.jpg') center/cover no-repeat;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  }

  .hero-tag {
    font-size: 0.72rem;
    padding: 4px 10px;
    margin-bottom: 12px;
    line-height: 1.35;
    white-space: normal;
    background: rgba(229, 169, 93, 0.12);
    border: 1px solid var(--border-gold);
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  .hero-title {
    font-size: clamp(1.6rem, 5.5vw, 2.15rem) !important;
    line-height: 1.18 !important;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
  }

  .hero-description {
    font-size: 0.88rem !important;
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: 18px;
  }

  .hero-cta-group {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 10px;
    margin-bottom: 20px;
  }

  .hero-cta-group .btn {
    width: 100%;
    height: 46px;
    font-size: 0.88rem;
    justify-content: center;
    border-radius: 10px;
    padding: 0 16px;
  }

  .hero-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
  }

  .stat-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 10px 12px;
  }

  .stat-val {
    font-size: 1.3rem !important;
    font-weight: 700;
    color: var(--gold-500);
  }

  .stat-lbl {
    font-size: 0.68rem !important;
    color: var(--text-tertiary);
    margin-top: 2px;
    text-transform: uppercase;
  }

  /* Controls & Search Bar */
  .controls-bar {
    padding: 0 12px;
    margin-bottom: 20px;
    max-width: 100vw;
  }

  .search-box-wrapper {
    padding: 8px 12px;
    border-radius: 12px;
    gap: 8px;
    margin-bottom: 12px;
    background: var(--bg-surface);
  }

  .search-icon {
    font-size: 1rem;
  }

  .category-tabs-scroll {
    gap: 8px;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .category-tabs-scroll::-webkit-scrollbar {
    display: none;
  }

  .cat-chip {
    padding: 7px 12px;
    font-size: 0.8rem;
    border-radius: 8px;
    flex-shrink: 0;
    white-space: nowrap;
  }

  /* Catalog Section */
  .catalog-section {
    padding: 0 12px;
    margin-bottom: 32px;
    max-width: 100vw;
  }

  .section-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 16px;
  }

  .section-title-wrap h2 {
    font-size: 1.25rem;
  }

  .section-title-wrap p {
    font-size: 0.8rem;
  }

  .listings-grid {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 16px;
    width: 100%;
  }

  .listing-card {
    border-radius: 14px;
    overflow: hidden;
    background: var(--bg-surface);
    border: 1px solid var(--border-card);
  }

  .card-img-holder {
    height: 190px !important;
  }

  .card-body {
    padding: 16px;
  }

  .card-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 6px;
  }

  .card-location {
    font-size: 0.78rem;
    margin-bottom: 10px;
  }

  .card-price-row {
    padding-top: 10px;
    margin-bottom: 12px;
  }

  .price-amount {
    font-size: 1.18rem;
  }

  .materials-gated-bar {
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 10px;
    font-size: 0.75rem;
    border-radius: 8px;
  }

  .btn-access-materials {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 7px 10px;
    font-size: 0.78rem;
  }

  .card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .card-actions .btn {
    height: 40px;
    padding: 0 10px;
    font-size: 0.82rem;
    border-radius: 8px;
    justify-content: center;
  }

  /* Reverse Wanted Board */
  .reverse-market-section {
    padding: 0 12px;
    margin-bottom: 32px;
    max-width: 100vw;
  }

  .reverse-board-card {
    padding: 18px 14px;
    border-radius: 14px;
  }

  .reverse-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
  }

  .reverse-header h3 {
    font-size: 1.2rem;
  }

  .requirements-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
    width: 100%;
  }

  .req-item-card {
    padding: 14px;
    border-radius: 12px;
  }

  /* Track Record / Deals Section */
  .deals-section {
    padding: 0 12px;
    margin-bottom: 32px;
    max-width: 100vw;
  }

  .deals-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
    width: 100%;
  }

  .deal-card {
    padding: 16px 14px;
    border-radius: 12px;
  }

  /* Bottom Sheet Modals */
  .modal-overlay {
    padding: 0 !important;
    align-items: flex-end !important;
    z-index: 1100;
  }

  .modal-content {
    border-radius: 20px 20px 0 0 !important;
    max-height: 90vh !important;
    max-height: 90dvh !important;
    width: 100% !important;
    max-width: 100vw !important;
    margin: 0 !important;
    border-bottom: none;
  }

  .modal-header {
    padding: 14px 18px;
    position: sticky;
    top: 0;
    background: var(--bg-surface);
    z-index: 10;
    border-bottom: 1px solid var(--border-subtle);
  }

  .modal-title {
    font-size: 1.15rem;
  }

  .modal-close-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    border-radius: 8px;
  }

  .modal-body {
    padding: 16px 18px 24px;
  }

  .form-grid-2 {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  .material-item-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    border-radius: 8px;
  }

  .material-item-row .btn {
    width: 100%;
    justify-content: center;
  }

  /* Floating WhatsApp */
  .floating-whatsapp-hub {
    bottom: 18px;
    right: 18px;
    z-index: 90;
  }

  .floating-wa-btn {
    width: 48px;
    height: 48px;
    font-size: 1.45rem;
  }

  .wa-intent-popover {
    width: calc(100vw - 36px);
    max-width: 310px;
    right: 0;
    bottom: 60px;
    border-radius: 12px;
    padding: 14px;
  }

  /* Footer */
  .nasas-footer {
    padding: 32px 14px 20px;
    margin-top: 32px;
  }

  .footer-inner {
    grid-template-columns: 1fr !important;
    gap: 24px;
    margin-bottom: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-top: 16px;
  }

  /* Toast Notification */
  .toast-container {
    bottom: 16px;
    left: 16px;
    right: 16px;
  }

  .toast {
    width: 100%;
    font-size: 0.82rem;
    padding: 10px 14px;
  }

  /* ========================================================================
     ADMIN CONSOLE MOBILE OVERRIDES (admin.html)
     ======================================================================== */
  .admin-header-sticky {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-surface);
  }

  .admin-header-container {
    padding: 8px 12px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
  }

  .admin-brand-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    cursor: pointer;
  }

  .admin-brand-logo {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .admin-brand-text {
    min-width: 0;
    overflow: hidden;
  }

  .admin-brand-title {
    font-size: 1rem !important;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .admin-subtitle-text {
    display: none !important;
  }

  .admin-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
  }

  .admin-header-btn {
    padding: 6px 10px;
    height: 36px;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
  }

  .admin-btn-label {
    display: none !important; /* Compact icon buttons on mobile header */
  }

  .admin-workspace-main {
    padding: 0 12px !important;
    margin: 14px auto 50px !important;
    max-width: 100vw;
  }

  .admin-header-bar {
    padding: 16px 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    border-radius: 14px;
    background: var(--bg-surface);
  }

  .admin-content-panel {
    padding: 16px 14px !important;
    border-radius: 14px !important;
    margin-bottom: 16px !important;
  }

  .admin-header-bar-text h1 {
    font-size: 1.25rem !important;
    line-height: 1.25;
  }

  .admin-header-bar-text p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-top: 4px;
  }

  .admin-header-bar-actions {
    width: 100%;
  }

  .admin-add-inventory-btn {
    width: 100%;
    justify-content: center;
    height: 44px;
    font-size: 0.88rem;
  }

  .admin-kpi-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px;
    margin-bottom: 18px;
  }

  .kpi-card {
    padding: 14px 12px;
    border-radius: 12px;
  }

  .kpi-card .kpi-num {
    font-size: 1.45rem !important;
    font-weight: 800;
  }

  .kpi-card .kpi-lbl {
    font-size: 0.68rem;
    letter-spacing: 0.5px;
  }

  .mobile-table-hint {
    display: flex;
    font-size: 0.72rem;
    color: var(--gold-500);
    margin-bottom: 8px;
    align-items: center;
    gap: 6px;
    font-weight: 600;
  }

  .admin-tabs-nav {
    -webkit-overflow-scrolling: touch;
    overflow-x: auto;
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    padding-bottom: 8px;
    margin-bottom: 18px;
    scrollbar-width: none;
  }

  .admin-tabs-nav::-webkit-scrollbar {
    display: none;
  }

  .admin-nav-tab {
    padding: 8px 12px;
    font-size: 0.78rem;
    white-space: nowrap;
    flex-shrink: 0;
    border-radius: 8px;
  }

  .queue-card-item {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 16px;
    border-radius: 12px;
  }

  .queue-card-item > div:last-child {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 8px;
  }

  .queue-card-item .btn {
    width: 100%;
    justify-content: center;
    height: 42px;
    font-size: 0.84rem;
  }

  .crm-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    border: 1px solid var(--border-card);
  }

  .crm-table {
    min-width: 680px;
    font-size: 0.82rem;
    width: 100%;
    border-collapse: collapse;
  }

  .crm-table th {
    background: rgba(255, 255, 255, 0.04);
    padding: 12px 14px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
    white-space: nowrap;
  }

  .crm-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-subtle);
    vertical-align: middle;
  }

  /* Sticky Reference ID on mobile horizontal swipe */
  .crm-table th:first-child,
  .crm-table td:first-child {
    position: sticky;
    left: 0;
    background: var(--bg-surface);
    z-index: 2;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.45);
  }

  .crm-table select.form-select {
    font-size: 16px !important;
    padding: 6px 8px;
    min-width: 130px;
  }

  .social-gen-card {
    grid-template-columns: 1fr !important;
    padding: 18px 14px;
    gap: 18px;
    border-radius: 14px;
  }

  .social-gen-card .btn {
    width: 100%;
    justify-content: center;
    height: 44px;
  }

  .social-gen-card textarea {
    font-size: 16px !important;
    height: 280px;
  }
}

/* Compact Mobile Screens (<= 480px) */
@media (max-width: 480px) {
  #admin-auth-barrier {
    padding: 14px !important;
  }

  #admin-auth-barrier > div {
    padding: 24px 16px !important;
    border-radius: 16px !important;
  }

  .top-bar-notice {
    padding: 5px 10px;
    font-size: 0.7rem;
    justify-content: space-between;
  }

  .top-bar-badge {
    display: none !important;
  }

  .brand-title {
    font-size: 0.96rem;
  }

  .brand-subtitle {
    font-size: 0.58rem;
  }

  .hero-title {
    font-size: 1.65rem !important;
  }

  .card-actions {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .card-actions .btn {
    font-size: 0.78rem;
    padding: 0 6px;
  }
}

/* Extra Compact Mobile Devices (<= 360px) */
@media (max-width: 360px) {
  .brand-subtitle {
    display: none !important;
  }

  .brand-logo-mark {
    width: 32px;
    height: 32px;
    font-size: 0.95rem;
  }

  .card-actions {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .stat-val {
    font-size: 1.15rem !important;
  }
}



