/* Huhubet 10. Yıl (2015–2026) - Royal Purple Luxury & High-Contrast Responsive UI */
:root {
  --bg-primary: #140924;
  --bg-secondary: #1e0e36;
  --bg-header: rgba(45, 17, 79, 0.96);
  --bg-card: rgba(43, 18, 76, 0.82);
  --bg-card-hover: rgba(58, 25, 102, 0.95);
  --brand-purple: #5d228f;
  --brand-purple-bright: #8b3dff;
  --brand-purple-glow: rgba(139, 61, 255, 0.32);
  --accent-primary: #10b981;
  --accent-primary-hover: #059669;
  --accent-primary-glow: rgba(16, 185, 129, 0.32);
  --accent-cyan: #0ea5e9;
  --accent-gold: #fbbf24;
  --text-main: #ffffff;
  --text-muted: #d4c6e8;
  --text-dim: #9d8ab8;
  --border-subtle: rgba(255, 255, 255, 0.13);
  --border-accent: rgba(168, 85, 247, 0.48);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --shadow-card: 0 20px 45px -15px rgba(10, 3, 20, 0.78);
  --transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 12% 8%, rgba(93, 34, 143, 0.48) 0%, transparent 45%),
    radial-gradient(circle at 88% 22%, rgba(139, 61, 255, 0.25) 0%, transparent 45%),
    radial-gradient(circle at 50% 92%, rgba(16, 185, 129, 0.12) 0%, transparent 42%);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul, ol {
  list-style: none;
}

img, svg {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Top Trust & Status Bar */
.top-ticker {
  background: linear-gradient(90deg, #2b0f4c 0%, #431c6d 50%, #2b0f4c 100%);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.45rem 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  position: relative;
  z-index: 100;
}

.top-ticker .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #6ee7b7;
  padding: 0.18rem 0.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.76rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.25); }
}

/* Header & Clean Non-Overlapping Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1500;
  background: var(--bg-header);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 8px 30px rgba(10, 3, 20, 0.45);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 0.85rem;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 0;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: nowrap;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.nav-link.active {
  background: linear-gradient(135deg, rgba(139, 61, 255, 0.42), rgba(93, 34, 143, 0.6));
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* Desktop Dropdown ("Daha ▾") */
.nav-dropdown-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  min-width: 225px;
  background: #230f3d;
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  box-shadow: 0 20px 40px rgba(8, 2, 16, 0.85);
  z-index: 1600;
  flex-direction: column;
  gap: 0.2rem;
}

.nav-item.dropdown:hover .nav-dropdown-menu,
.nav-item.dropdown.open .nav-dropdown-menu {
  display: flex;
}

.nav-dropdown-menu .nav-link {
  width: 100%;
  justify-content: flex-start;
  padding: 0.6rem 0.85rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.62rem 1.15rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  box-shadow: 0 6px 20px var(--accent-primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #34d399, #10b981);
}

.btn-secondary {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(14, 165, 233, 0.28);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.24);
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: #c084fc;
  background: rgba(168, 85, 247, 0.22);
}

.mobile-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 2100;
}

/* Clean Breadcrumb Navigation (No Overlapping, No List Numbers) */
.breadcrumb-bar {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(30, 14, 54, 0.85);
  font-size: 0.84rem;
  color: var(--text-muted);
  position: relative;
  z-index: 50;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
}

.breadcrumb-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.breadcrumb-list li + li::before {
  content: "›";
  color: #c084fc;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
}

.breadcrumb-list a {
  color: var(--text-muted);
}

.breadcrumb-list a:hover {
  color: #34d399;
}

.breadcrumb-current {
  color: #ffffff;
  font-weight: 600;
}

/* Social Media Links & Cards */
.social-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  background: rgba(93, 34, 143, 0.45);
  border: 1px solid rgba(192, 132, 252, 0.4);
  color: #ffffff;
}

.social-pill:hover {
  background: rgba(139, 61, 255, 0.55);
  border-color: #34d399;
  transform: translateY(-2px);
}

.social-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.social-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.45rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.85rem;
}

.social-card:hover {
  border-color: #c084fc;
  background: var(--bg-card-hover);
  transform: translateY(-3px);
}

.social-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.35rem;
}

.social-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
}

.social-card .handle {
  font-size: 0.84rem;
  font-weight: 700;
  color: #34d399;
  word-break: break-all;
}

/* Hero Section */
.hero {
  padding: 3.5rem 0 3rem;
  position: relative;
  z-index: 10;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.92fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.95rem;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.42);
  color: var(--accent-gold);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 1.1rem;
}

.hero h1 {
  font-size: clamp(2rem, 3.8vw, 3.1rem);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.025em;
  margin-bottom: 1.15rem;
}

.hero h1 .highlight {
  background: linear-gradient(90deg, #e9d5ff, #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  max-width: 620px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.85rem;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--border-subtle);
}

.metric-item strong {
  display: block;
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
}

.metric-item span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Hero Visual & Preview Card */
.hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
  position: relative;
}

.preview-showcase {
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  margin-bottom: 1.2rem;
  position: relative;
  background: #2b0f4c;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.preview-showcase img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.preview-showcase:hover img {
  transform: scale(1.03);
}

.preview-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.65rem 1rem;
  background: linear-gradient(to top, rgba(20, 9, 36, 0.94), transparent);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: #f3e8ff;
}

.card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  gap: 0.5rem;
}

.tag-badge {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  background: rgba(168, 85, 247, 0.24);
  border: 1px solid rgba(192, 132, 252, 0.4);
  color: #f3e8ff;
}

.spec-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.9rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  font-size: 0.88rem;
}

.spec-row span:first-child {
  color: var(--text-muted);
}

.spec-row strong {
  color: #ffffff;
  font-weight: 700;
  text-align: right;
}

/* Section Typography & Layout */
.section {
  padding: 3.6rem 0;
  position: relative;
  z-index: 10;
}

.section-header {
  max-width: 760px;
  margin-bottom: 2.4rem;
}

.section-kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #c084fc;
  margin-bottom: 0.45rem;
}

.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* Bento & Feature Grids */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bento-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  box-shadow: 0 14px 32px rgba(10, 3, 20, 0.55);
}

.bento-card.span-2 {
  grid-column: span 2;
}

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.28), rgba(93, 34, 143, 0.45));
  border: 1px solid rgba(192, 132, 252, 0.35);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  margin-bottom: 1.1rem;
}

.bento-card h3 {
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
}

.bento-card p {
  color: var(--text-muted);
  font-size: 0.94rem;
  margin-bottom: 1.15rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #34d399;
}

.card-link:hover {
  gap: 0.65rem;
  color: #6ee7b7;
}

/* Sports Pills Grid */
.sports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 0.9rem;
}

.sport-chip {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.05rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 600;
  font-size: 0.93rem;
  transition: var(--transition);
}

.sport-chip:hover {
  border-color: #c084fc;
  background: rgba(139, 61, 255, 0.22);
  transform: translateY(-2px);
}

.sport-chip .emoji {
  font-size: 1.25rem;
}

/* Structured Data Tables */
.table-wrapper {
  overflow-x: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
  -webkit-overflow-scrolling: touch;
}

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

th, td {
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--border-subtle);
}

th {
  background: rgba(93, 34, 143, 0.48);
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
}

td {
  color: var(--text-muted);
}

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

tr:hover td {
  background: rgba(255, 255, 255, 0.04);
}

/* Editorial Content & TOC Layout for Subpages */
.article-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 2.25rem;
  align-items: start;
  padding: 2.5rem 0 4rem;
  position: relative;
  z-index: 10;
}

.toc-sidebar {
  position: sticky;
  top: 94px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.35rem;
}

.toc-title {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #c084fc;
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.toc-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toc-list a {
  font-size: 0.87rem;
  color: var(--text-muted);
  display: block;
  padding: 0.3rem 0.5rem;
  border-left: 2px solid transparent;
}

.toc-list a:hover {
  color: #ffffff;
  border-left-color: #10b981;
  padding-left: 0.75rem;
}

.editorial-body {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  min-width: 0;
}

.editorial-body h1 {
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  line-height: 1.25;
  margin: 0.35rem 0 1.1rem;
}

.editorial-body h2 {
  font-size: 1.48rem;
  font-weight: 800;
  margin: 2rem 0 0.85rem;
  color: #ffffff;
  scroll-margin-top: 96px;
}

.editorial-body h3 {
  font-size: 1.18rem;
  font-weight: 700;
  margin: 1.45rem 0 0.65rem;
  color: #f3e8ff;
}

.editorial-body p {
  margin-bottom: 1.05rem;
  color: var(--text-muted);
}

.editorial-body ul.styled-list {
  margin: 0.9rem 0 1.4rem 1.25rem;
  list-style: disc;
  color: var(--text-muted);
}

.editorial-body ul.styled-list li {
  margin-bottom: 0.5rem;
}

.info-callout {
  background: rgba(139, 61, 255, 0.16);
  border-left: 4px solid #10b981;
  padding: 1.15rem 1.35rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.6rem 0;
}

.info-callout strong {
  display: block;
  color: #ffffff;
  margin-bottom: 0.3rem;
}

/* Interactive Bonus & Odds Calculator */
.calc-box {
  background: linear-gradient(145deg, #2b114d, #1c0a36);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  margin: 1.8rem 0;
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.1rem;
  margin-top: 1.1rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
}

.form-control {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: rgba(20, 9, 36, 0.78);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.95rem;
}

.form-control:focus {
  outline: none;
  border-color: #10b981;
}

.calc-result {
  margin-top: 1.15rem;
  padding: 1rem 1.2rem;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 1.15rem 1.35rem;
  color: #ffffff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-question:hover {
  color: #34d399;
}

.faq-answer {
  padding: 0.9rem 1.35rem 1.15rem;
  color: var(--text-muted);
  font-size: 0.94rem;
  display: none;
  border-top: 1px solid var(--border-subtle);
}

.faq-item.open .faq-answer {
  display: block;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  color: #34d399;
}

/* Footer */
.site-footer {
  background: #10061e;
  border-top: 1px solid var(--border-subtle);
  padding: 3.5rem 0 2rem;
  margin-top: 3rem;
  position: relative;
  z-index: 10;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.2rem;
  margin-bottom: 2.6rem;
}

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1.05rem;
  color: #ffffff;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-col a {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-col a:hover {
  color: #34d399;
}

.footer-bottom {
  padding-top: 1.6rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.83rem;
  color: var(--text-dim);
}

.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid #ef4444;
  color: #ef4444;
  font-weight: 800;
  font-size: 0.82rem;
}

/* =========================================================
   RESPONSIVE BREAKPOINTS (Tablet & Mobile)
   ========================================================= */
@media (max-width: 1120px) {
  .main-nav {
    display: none;
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: calc(100vh - 76px);
    background-color: #190b2e;
    padding: 1.25rem 1.25rem 3rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 2000;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    border-top: 1px solid var(--border-accent);
  }

  .main-nav.open {
    display: flex !important;
  }

  .nav-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
    width: 100%;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    width: 100%;
    padding: 0.85rem 1rem;
    font-size: 0.98rem;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-dropdown-btn {
    display: none;
  }

  .nav-dropdown-menu {
    display: flex !important;
    position: static;
    width: 100%;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin-top: 0.45rem;
    gap: 0.45rem;
  }

  .mobile-toggle {
    display: inline-flex;
  }

  .hero-grid, .article-layout, .social-card-grid {
    grid-template-columns: 1fr;
  }

  .toc-sidebar {
    position: static;
  }

  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .nav-wrapper {
    height: 68px;
  }

  .brand-logo img {
    height: 36px;
  }

  .main-nav {
    top: 68px;
    height: calc(100vh - 68px);
  }

  .nav-actions .btn-secondary {
    display: none;
  }

  .nav-actions .btn-primary {
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
  }

  .hero {
    padding: 2.25rem 0 2rem;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .bento-grid, .footer-grid {
    grid-template-columns: 1fr;
  }

  .bento-card.span-2 {
    grid-column: span 1;
  }

  .editorial-body {
    padding: 1.25rem;
  }

  .spec-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .spec-row strong {
    text-align: left;
  }
}
