/* web/css/site.css — DabHousie Modern Web Design System */
:root {
  --primary: #0B3D91;
  --primary-light: #60A5FA;
  --accent: #FFC107;
  --accent-hover: #E0A800;
  --bg-dark: #0A0E17;
  --card-bg: #121826;
  --card-border: #1E293B;
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --success: #2ECC71;
  --danger: #E63946;
  --purple: #8E44AD;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: radial-gradient(circle at top center, #111c38 0%, var(--bg-dark) 70%);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}

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

/* ========================================================
   TOP NAVIGATION BAR (Pixel-Matched to Canvas DabHousieAppBar)
   ======================================================== */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 64px;
  background: rgba(10, 14, 23, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0 16px;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
}

.nav-container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-logo {
  height: 42px;
  display: block;
  object-fit: contain;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

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

.nav-links li {
  display: flex;
  align-items: center;
}

.nav-links a,
.nav-dropdown-toggle {
  font-size: 13px;
  font-weight: 600;
  color: #CBD5E1;
  padding: 6px 10px;
  border-radius: 6px;
  transition: color 0.15s ease, background 0.15s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1.3;
}

.nav-links a:hover,
.nav-links a.active,
.nav-dropdown:hover .nav-dropdown-toggle {
  color: var(--accent);
}

/* Nav Dropdown */
.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-dropdown-toggle {
  cursor: pointer;
}

.nav-dropdown-toggle .arrow-icon {
  font-size: 9px;
  display: inline-block;
  margin-left: 2px;
  transition: transform 0.2s ease;
}

.nav-dropdown:hover .arrow-icon,
.nav-dropdown.open .arrow-icon {
  transform: rotate(180deg);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 270px;
  background: rgba(18, 24, 38, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  list-style: none;
  padding: 8px;
  margin-top: 4px;
  z-index: 1010;
}

/* Invisible hover bridge so moving the cursor from trigger to menu never loses :hover */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu,
.nav-dropdown.open .dropdown-menu {
  display: block;
}

.dropdown-menu li {
  margin: 2px 0;
  width: 100%;
}

.dropdown-menu a {
  display: flex !important;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #E2E8F0 !important;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.dropdown-menu a:hover {
  background: rgba(29, 78, 216, 0.25);
  color: var(--accent) !important;
}

.dropdown-menu a.active {
  background: rgba(255, 193, 7, 0.12);
  color: var(--accent) !important;
  font-weight: 700 !important;
}

/* Regional Variant Switcher Ribbon */
.guide-variant-banner {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.guide-variant-label {
  font-size: 13px;
  color: #94A3B8;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.guide-variant-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.guide-variant-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(18, 24, 38, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #E2E8F0;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  transition: all 0.15s ease;
}

.guide-variant-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(255, 193, 7, 0.1);
}

.guide-variant-chip.active {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  font-weight: 800;
}

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

/* Nav Buttons */
.btn-nav-join {
  background: var(--accent);
  color: #000;
  font-weight: 800;
  font-size: 13px;
  padding: 7px 14px;
  border-radius: 8px;
  transition: transform 0.15s ease, background 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.btn-nav-join:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-nav-host {
  background: rgba(29, 78, 216, 0.3);
  border: 1px solid rgba(29, 78, 216, 0.6);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 8px;
  transition: background 0.2s ease;
  white-space: nowrap;
}

.btn-nav-host:hover {
  background: rgba(29, 78, 216, 0.5);
}

.nav-signin-btn {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  transition: background 0.2s ease;
  white-space: nowrap;
}

.nav-signin-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.nav-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #121826;
  border: 1px solid #1E293B;
  padding: 4px 12px 4px 6px;
  border-radius: 20px;
}

.nav-avatar-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 193, 7, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-user-name {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  max-width: 110px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-balance-badge {
  background: rgba(255, 193, 7, 0.15);
  border: 1px solid rgba(255, 193, 7, 0.4);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 16px;
  white-space: nowrap;
}

.nav-rewards-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: rgba(255, 193, 7, 0.12);
  border: 1px solid rgba(255, 193, 7, 0.35);
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 16px;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.nav-rewards-btn.has-unclaimed {
  border-color: rgba(16, 185, 129, 0.7);
}

.nav-rewards-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #10B981;
  color: #000;
  font-size: 10.5px;
  font-weight: 900;
  padding: 1px 6px;
  border-radius: 10px;
  margin-left: 2px;
  line-height: 1.3;
}

.nav-rewards-btn:hover {
  background: rgba(255, 193, 7, 0.24);
  border-color: var(--accent);
  transform: translateY(-1px);
}

/* Mobile Hamburger Toggle */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 20px;
  padding: 5px 9px;
  border-radius: 8px;
  cursor: pointer;
}

.mobile-nav-drawer {
  display: none;
  background: #0d1322;
  border-bottom: 1px solid #1E293B;
  padding: 16px 24px;
}

.mobile-nav-drawer.open {
  display: block;
}

.mobile-nav-drawer a {
  display: block;
  padding: 10px 0;
  font-size: 15px;
  font-weight: 600;
  color: #CBD5E1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-nav-drawer a:last-child {
  border-bottom: none;
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  .btn-nav-host {
    display: none;
  }
  .mobile-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* ========================================================
   COMMON HERO & CONTENT LAYOUT
   ======================================================== */
.page-hero {
  text-align: center;
  padding: 54px 20px 36px;
  max-width: 920px;
  margin: 0 auto;
}

.page-hero .eyebrow {
  display: inline-block;
  background: rgba(255, 193, 7, 0.12);
  border: 1px solid rgba(255, 193, 7, 0.35);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}

.page-hero h1 {
  font-size: 38px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 14px;
}

.page-hero p.subtitle {
  font-size: 16.5px;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 24px;
  line-height: 1.6;
}

.main-content {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px 60px;
  width: 100%;
}

/* Generic Section Card */
.content-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 28px;
}

.content-card h2 {
  font-size: 24px;
  color: var(--accent);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.content-card h3 {
  font-size: 18px;
  color: #fff;
  margin: 20px 0 8px;
}

.content-card p {
  color: #CBD5E1;
  margin-bottom: 14px;
}

.content-card ul, .content-card ol {
  color: #CBD5E1;
  padding-left: 24px;
  margin-bottom: 16px;
}

.content-card li {
  margin-bottom: 8px;
}

/* Grid helper */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

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

.feature-box {
  background: rgba(11, 61, 145, 0.15);
  border: 1px solid rgba(29, 78, 216, 0.3);
  border-radius: 12px;
  padding: 24px;
}

.feature-box h4 {
  font-size: 17px;
  color: #fff;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.region-badge {
  display: inline-block;
  background: rgba(255, 193, 7, 0.2);
  border: 1px solid rgba(255, 193, 7, 0.45);
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.flag-icon {
  display: inline-block;
  width: 32px;
  height: 22px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
  vertical-align: middle;
  flex-shrink: 0;
}

.global-card-title {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100%;
  margin-bottom: 12px;
  font-size: 17px;
  color: #fff;
  flex-wrap: nowrap !important;
  gap: 8px;
}

.global-card-title .card-title-text {
  text-align: center;
  flex: 1;
  font-weight: 800;
  color: #FFFFFF;
}

.region-subtag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #CBD5E1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.3px;
  white-space: nowrap;
  flex-shrink: 0;
}

.feature-box p {
  font-size: 14px;
  color: #94A3B8;
  margin-bottom: 0;
}

/* Comparison Table */
.table-wrapper {
  overflow-x: auto;
  margin: 20px 0;
}

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

table.comparison-table th {
  background: #0B3D91;
  color: #fff;
  padding: 12px 16px;
  font-weight: 700;
  border: 1px solid #1E293B;
}

table.comparison-table td {
  padding: 12px 16px;
  border: 1px solid #1E293B;
  color: #CBD5E1;
}

table.comparison-table tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

/* CTA Footer Strip */
.cta-banner {
  background: linear-gradient(135deg, rgba(11, 61, 145, 0.4) 0%, rgba(255, 193, 7, 0.15) 100%);
  border: 1px solid rgba(255, 193, 7, 0.35);
  border-radius: 18px;
  padding: 40px 24px;
  text-align: center;
  margin-top: 40px;
}

.cta-banner h2 {
  font-size: 28px;
  color: #fff;
  margin-bottom: 10px;
}

.cta-banner p {
  font-size: 15px;
  color: #CBD5E1;
  max-width: 560px;
  margin: 0 auto 24px;
}

.btn-group {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Footer */
footer.site-footer {
  margin-top: auto;
  background: #070a10;
  border-top: 1px solid #1E293B;
  padding: 36px 20px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

footer.site-footer a {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

footer.site-footer a:hover {
  color: var(--accent);
}

.footer-links {
  margin-bottom: 12px;
}

.footer-links span {
  margin: 0 8px;
  opacity: 0.4;
}

.disclaimer-text {
  font-size: 11.5px;
  color: #64748B;
  max-width: 700px;
  margin: 12px auto 0;
}

/* ========================================================
   SAMPLE 3x9 TICKET & ARCHITECTURE 2-COLUMN LAYOUT
   ======================================================== */
.ticket-arch-layout {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 28px;
  align-items: start;
  margin-top: 14px;
}

.ticket-arch-info p {
  font-size: 14.5px;
  line-height: 1.6;
  margin-bottom: 12px;
}

.ticket-columns-chip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 14px 0;
}

.col-chip {
  background: rgba(11, 61, 145, 0.18);
  border: 1px solid rgba(29, 78, 216, 0.35);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  color: #CBD5E1;
  text-align: center;
}

.col-chip strong {
  color: var(--accent);
  margin-right: 4px;
}

.ticket-preview-wrapper {
  margin: 0;
  background: #0B101B;
  border: 1px solid rgba(255, 193, 7, 0.25);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.ticket-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 8px;
  margin-bottom: 10px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.ticket-brand {
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 6px;
}

.ticket-meta {
  color: var(--text-muted);
  font-family: monospace;
  font-size: 11px;
}

.ticket-scroll-wrap {
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}

.ticket-grid-table {
  width: 100%;
  min-width: 440px;
  border-collapse: separate;
  border-spacing: 3px;
  table-layout: fixed;
}

.ticket-col-header {
  font-size: 9.5px;
  font-weight: 600;
  color: #64748B;
  text-align: center;
  padding: 1px 0 4px;
}

.ticket-cell {
  height: 44px;
  border-radius: 6px;
  text-align: center;
  vertical-align: middle;
  font-size: 15px;
  font-weight: 800;
  transition: all 0.2s ease;
  user-select: none;
}

.ticket-cell.empty {
  background: rgba(18, 24, 38, 0.45);
  border: 1px dashed rgba(255, 255, 255, 0.05);
}

.ticket-cell.number {
  background: #182235;
  border: 1px solid #2B3A55;
  color: #F8FAFC;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.ticket-cell.dabbed {
  background: linear-gradient(135deg, #1E3A8A 0%, #172554 100%);
  border: 1.5px solid var(--accent);
  color: #FFFFFF;
  position: relative;
  box-shadow: 0 0 10px rgba(255, 193, 7, 0.25);
}

.ticket-cell.dabbed .dab-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 193, 7, 0.95) 0%, rgba(224, 168, 0, 0.85) 100%);
  color: #000;
  font-weight: 900;
  font-size: 13.5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.ticket-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 11.5px;
  color: var(--text-muted);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.legend-chip {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.legend-chip.dabbed {
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 5px rgba(255, 193, 7, 0.6);
}

.legend-chip.number {
  background: #182235;
  border: 1px solid #2B3A55;
}

.legend-chip.empty {
  background: rgba(18, 24, 38, 0.45);
  border: 1px dashed rgba(255, 255, 255, 0.15);
}

@media (max-width: 900px) {
  .ticket-arch-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Callout Box for Interactive & Dabbing Rules */
.callout-interactive {
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.15) 0%, rgba(15, 23, 42, 0.6) 100%);
  border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0;
  padding: 18px 20px;
  margin: 20px 0 10px;
}

.callout-interactive h4 {
  color: var(--accent);
  font-size: 16px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.callout-interactive p {
  color: #CBD5E1;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 8px;
}

.callout-interactive p:last-child {
  margin-bottom: 0;
}

/* Google AdSense: collapse unfilled ad containers & hide placeholder boxes until ads serve */
ins.adsbygoogle[data-ad-status="unfilled"],
.ad-slot-wrapper:not(:has(ins.adsbygoogle[data-ad-status="filled"])),
.ad-card-slot:not(:has(ins.adsbygoogle[data-ad-status="filled"])) {
  display: none !important;
}
