:root {
  /* Premium 2026 palette */
  --bg: #050814;
  --bg-soft: #0c1120;
  --panel: rgba(20, 25, 45, 0.85);
  --panel-2: rgba(30, 35, 60, 0.9);
  --panel-3: rgba(255,255,255,0.05);
  --text: #f0f5ff;
  --muted: #a0b0d8;
  --line: rgba(255,255,255,0.08);
  --accent: #a855f7; /* purple */
  --accent-2: #8b5cf6;
  --accent-glow: rgba(168, 85, 247, 0.25);
  --warning: #fbbf24;
  --danger: #f87171;
  --success: #34d399;
  --shadow: 0 25px 60px rgba(0,0,0,0.35);
  --shadow-glass: 0 8px 32px rgba(0,0,0,0.2);
  --radius: 28px;
  --radius-sm: 16px;
  --radius-pill: 999px;
  --container: 1320px;
  --glass-blur: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.87, 0, 0.13, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Manrope", "Inter", "SF Pro Display", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: 
    radial-gradient(circle at 10% 10%, rgba(168, 85, 247, 0.15), transparent 30%),
    radial-gradient(circle at 90% 5%, rgba(139, 92, 246, 0.1), transparent 25%),
    radial-gradient(circle at 50% 90%, rgba(59, 130, 246, 0.08), transparent 35%),
    linear-gradient(180deg, #050814 0%, #0a1022 50%, #0c1128 100%);
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; }

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

.container {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
  padding: 0 24px;
}

/* 12‑column grid system */
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.col-1 { grid-column: span 1; }
.col-2 { grid-column: span 2; }
.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-9 { grid-column: span 9; }
.col-10 { grid-column: span 10; }
.col-11 { grid-column: span 11; }
.col-12 { grid-column: span 12; }

@media (max-width: 1024px) {
  .grid {
    grid-template-columns: repeat(8, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
  .grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
  .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12 {
    grid-column: span 4;
  }
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  background: #fff;
  color: #000;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  z-index: 100;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(10,16,32,.72);
  border-bottom: 1px solid var(--line);
}

.topbar, .footer-grid, .hero-grid, .stats-grid, .cards-grid, .catalog-layout,
.detail-layout, .author-layout, .auth-grid, .profile-layout, .search-layout, .split-layout {
  display: grid;
  gap: 24px;
}

.topbar {
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 16px 0;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #8a7dff);
  display: grid;
  place-items: center;
  font-weight: 800;
  box-shadow: var(--shadow);
}

.brand-copy strong { display: block; font-size: 1rem; }
.brand-copy span { display: block; font-size: 0.84rem; color: var(--muted); }

/* Navigation */
.main-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}

.main-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.main-nav a.active,
.main-nav a:hover {
  color: var(--text);
}

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

/* Buttons & Chips */
.search-chip, .button, .tag, .pill, .stat-badge {
  border: 1px solid var(--line);
  background: var(--panel-3);
  border-radius: 999px;
}

.search-chip {
  padding: 0.7rem 1rem;
  text-decoration: none;
  color: var(--muted);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.2rem;
  text-decoration: none;
  font-weight: 700;
  transition: 0.18s ease transform, 0.18s ease background;
}

.button:hover { transform: translateY(-1px); }

.button.primary {
  background: linear-gradient(135deg, var(--accent), #8a7dff);
  border-color: transparent;
  color: #fff;
}

.button.secondary { background: rgba(255,255,255,0.06); }
.button.ghost { background: transparent; }
.button.block { width: 100%; }

/* Hero */
.page-hero {
  padding: 48px 0 34px;
}

.hero-grid {
  grid-template-columns: 1.3fr 0.9fr;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-2);
  margin-bottom: 14px;
}

.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent-2);
}

/* Premium Typography 2026 */
h1, h2, h3, h4 {
  line-height: 1.1;
  margin: 0 0 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { 
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

h2 { 
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
}

h3 { 
  font-size: 1.5rem;
  font-weight: 600;
}

p {
  margin: 0 0 1rem;
  color: var(--muted);
  line-height: 1.7;
}

.hero-copy p {
  font-size: 1.25rem;
  max-width: 720px;
  line-height: 1.6;
}

/* Cards & Panels — Premium Glassmorphism 2026 */
.hero-actions, .inline-actions, .filter-row, .chip-row, .meta-row,
.stats-inline, .footer-links, .card-meta, .tabs, .toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-panel, .card, .panel, .sidebar-card, .table-card, .banner, .empty-state, .notice {
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow-glass);
  padding: 28px;
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  transition: var(--transition);
}

.hero-panel {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(139, 92, 246, 0.08));
  border-color: rgba(168, 85, 247, 0.25);
}

.card:hover, .panel:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.4);
  border-color: rgba(255,255,255,0.2);
}

/* Premium Sections with more whitespace */
.section {
  padding: 4rem 0 6rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: flex-end;
  margin-bottom: 3rem;
}

.section-header p { 
  max-width: 680px; 
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--muted);
}

/* Premium Animations */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

[data-animate].animate-in {
  opacity: 1;
  transform: translateY(0);
}

[data-animate="fade"] {
  transform: none;
}

[data-animate="slide-left"] {
  transform: translateX(30px);
}

[data-animate="slide-right"] {
  transform: translateX(-30px);
}

[data-animate="scale"] {
  transform: scale(0.95);
}

[data-animate="scale"].animate-in {
  transform: scale(1);
}

/* Stagger children */
[data-animate-children] > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

[data-animate-children].animate-in > * {
  opacity: 1;
  transform: translateY(0);
}

[data-animate-children] > *:nth-child(1) { transition-delay: 0.1s; }
[data-animate-children] > *:nth-child(2) { transition-delay: 0.2s; }
[data-animate-children] > *:nth-child(3) { transition-delay: 0.3s; }
[data-animate-children] > *:nth-child(4) { transition-delay: 0.4s; }
[data-animate-children] > *:nth-child(5) { transition-delay: 0.5s; }
[data-animate-children] > *:nth-child(6) { transition-delay: 0.6s; }

/* Grids */
.stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card-cover {
  aspect-ratio: 16/9;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(30, 35, 60, 0.8));
  position: relative;
}

.card-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.5));
  pointer-events: none;
}

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.06);
  font-size: 1.6rem;
}

.card p, .sidebar-card p, .panel p, .table-card p, .notice p {
  font-size: 0.96rem;
}

.metric { font-size: 2rem; font-weight: 800; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.tiny { font-size: 0.78rem; }

.tag, .pill, .stat-badge {
  padding: 0.42rem 0.78rem;
  font-size: 0.84rem;
  color: var(--muted);
  text-decoration: none;
}

.tag:hover { color: var(--text); }

.pill.good { color: var(--success); }
.pill.warn { color: var(--warning); }
.pill.hot { color: #ff95c6; }

.kpi {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.kpi-label {
  font-size: 0.84rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

/* Layouts */
.catalog-layout, .search-layout, .profile-layout {
  grid-template-columns: 300px 1fr;
}

.detail-layout { grid-template-columns: 1.5fr 0.8fr; }
.author-layout { grid-template-columns: 340px 1fr; }
.split-layout { grid-template-columns: 1fr 1fr; }
.auth-grid { grid-template-columns: 1fr 0.9fr; }

.sidebar-card, .table-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sidebar-card ul, .footer-links, .list-clean, .release-list, .activity-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-card li, .release-item, .activity-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.sidebar-card li:last-child, .release-item:last-child, .activity-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.toolbar {
  justify-content: space-between;
  margin-bottom: 18px;
}

.toolbar .filter-row { flex: 1; }

/* Premium Forms 2026 */
.input, .select, .textarea {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05);
  padding: 1rem 1.25rem;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  transition: var(--transition);
  backdrop-filter: blur(8px);
}

.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
  background: rgba(255,255,255,0.08);
}

.textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.6;
}

.form-grid { display: grid; gap: 14px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field label { 
  display: block; 
  margin-bottom: 0.75rem; 
  font-weight: 600; 
  font-size: 0.95rem;
  color: var(--text);
}
.hint { 
  font-size: 0.85rem; 
  color: var(--muted); 
  margin-top: 0.5rem;
}

/* Table */
.table {
  width: 100%;
  border-collapse: collapse;
}

.table th, .table td {
  padding: 12px 0;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.table th {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  font-size: 0.9rem;
  color: var(--muted);
}

.breadcrumbs a { text-decoration: none; }
.breadcrumbs span { opacity: 0.55; }

/* Lists */
.feature-list, .check-list {
  padding-left: 18px;
  margin: 0;
}

.feature-list li, .check-list li {
  margin: 0 0 10px;
  color: var(--muted);
}

/* Banner & Notice */
.banner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.notice { border-color: rgba(101,224,192,0.28); }

/* Footer */
.footer {
  padding: 34px 0 48px;
  border-top: 1px solid var(--line);
  margin-top: 40px;
}

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

.footer-links a {
  text-decoration: none;
  color: var(--muted);
}

.footer-links a:hover { color: var(--text); }

/* Hero Surface */
.hero-surface { display: grid; gap: 16px; }

.surface-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.surface-box {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
}

.logo-strip {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.logo-badge {
  padding: 0.6rem 0.85rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  color: var(--muted);
  border: 1px solid var(--line);
}

.page-title-inline {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
}

/* Cover Banner */
.cover-banner {
  min-height: 280px;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(108,164,255,0.34), rgba(101,224,192,0.18)),
              url('https://images.unsplash.com/photo-1511512578047-dfb367046420?auto=format&fit=crop&w=1200&q=80') center/cover;
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.cover-banner.beamng {
  background: linear-gradient(135deg, rgba(255,140,0,0.32), rgba(108,164,255,0.16)),
              url('https://images.unsplash.com/photo-1503376780353-7e6692767b70?auto=format&fit=crop&w=1200&q=80') center/cover;
}

.overlay-card {
  position: absolute;
  left: 24px;
  bottom: 24px;
  max-width: 480px;
  padding: 20px;
  border-radius: 20px;
  background: rgba(6,10,18,0.76);
  border: 1px solid rgba(255,255,255,0.1);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid, .catalog-layout, .detail-layout, .author-layout, .auth-grid,
  .profile-layout, .search-layout, .split-layout, .footer-grid, .surface-row, .stats-grid, .cards-grid.four {
    grid-template-columns: 1fr 1fr;
  }
  .cards-grid { grid-template-columns: 1fr 1fr; }
}

/* Tablet landscape (768px-1024px) - keep menu in row */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
  .topbar {
    grid-template-columns: auto 1fr auto;
    align-items: center;
  }
  .main-nav {
    justify-content: center;
    flex-wrap: nowrap; /* Важно: не переносить на новую строку */
    gap: 12px;
  }
  .main-nav a {
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
  }
  .header-actions {
    flex-wrap: nowrap;
  }
  .search-chip {
    min-width: 120px;
  }
}

/* Narrow tablets (800px-1024px) - уменьшаем меню */
@media (min-width: 800px) and (max-width: 1024px) {
  .main-nav {
    gap: 8px;
  }
  .main-nav a {
    font-size: 0.82rem;
    padding: 0.35rem 0.5rem;
  }
  .brand-copy strong { font-size: 0.9rem; }
  .brand-copy span { font-size: 0.75rem; }
}

/* Burger menu button */
.burger-menu {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  margin-left: auto;
  width: 44px;
  height: 44px;
  position: relative;
  z-index: 101;
}

.burger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px auto;
  transition: transform 0.3s ease, opacity 0.3s ease;
  border-radius: 1px;
}

.burger-menu[aria-expanded="true"] .burger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger-menu[aria-expanded="true"] .burger-line:nth-child(2) {
  opacity: 0;
}

.burger-menu[aria-expanded="true"] .burger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   HEADER & NAVIGATION - SIMPLE & RELIABLE
   ============================================ */

/* Topbar grid layout */
.topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 16px 0;
}

/* Brand/logo */
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
}

/* Desktop navigation - ALWAYS horizontal */
.main-nav {
  display: flex;
  gap: 18px;
  justify-content: center;
}

.main-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: color 0.2s ease, background 0.2s ease;
}

.main-nav a.active,
.main-nav a:hover {
  color: var(--text);
  background: rgba(168, 85, 247, 0.1);
}

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

/* Burger menu - HIDDEN by default */
.burger-menu {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  margin-left: auto;
  width: 44px;
  height: 44px;
  position: relative;
  z-index: 101;
}

.burger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px auto;
  transition: transform 0.3s ease, opacity 0.3s ease;
  border-radius: 1px;
}

.burger-menu[aria-expanded="true"] .burger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger-menu[aria-expanded="true"] .burger-line:nth-child(2) {
  opacity: 0;
}

.burger-menu[aria-expanded="true"] .burger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile auth buttons - HIDDEN by default */
.mobile-auth {
  display: none;
}

/* ============================================
   MOBILE STYLES (up to 1024px)
   ============================================ */
@media (max-width: 1024px) {
  /* Show burger menu */
  .burger-menu {
    display: block;
  }
  
  /* Hide desktop navigation */
  .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 16, 32, 0.98);
    backdrop-filter: blur(20px);
    padding: 5rem 1.5rem 2rem;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 100;
    transform: translateX(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.4s var(--ease-out), opacity 0.4s ease, visibility 0.4s;
    overflow-y: auto;
    display: flex !important; /* Force display */
  }
  
  .main-nav.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }
  
  .main-nav a {
    font-size: 1.2rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.05);
    width: 100%;
    text-align: left;
    display: block;
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    transition: background 0.2s ease;
  }
  
  .main-nav a:hover,
  .main-nav a.active {
    background: rgba(168, 85, 247, 0.2);
  }
  
  /* Hide desktop header actions */
  .header-actions.desktop {
    display: none;
  }
  
  /* Show mobile auth buttons */
  .mobile-auth {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
  }
  
  .mobile-auth .button {
    width: 100%;
    justify-content: center;
    padding: 1rem;
  }
}

/* ============================================
   TABLET OPTIMIZATION (768px-1024px)
   ============================================ */
@media (min-width: 768px) and (max-width: 1024px) {
  /* For tablets in portrait - bottom navigation (like mobile app) */
  @media (orientation: portrait) {
    /* Hide burger menu */
    .burger-menu {
      display: none !important;
    }
    
    /* Hide desktop header actions */
    .header-actions.desktop {
      display: none !important;
    }
    
    /* Hide main nav from header */
    .main-nav {
      display: none !important;
    }
    
    /* Create bottom navigation */
    .bottom-nav {
      display: flex !important;
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      background: rgba(10, 16, 32, 0.95);
      backdrop-filter: blur(20px);
      border-top: 1px solid var(--line);
      padding: 0.75rem 1rem;
      z-index: 1000;
      justify-content: space-around;
      align-items: center;
    }
    
    .bottom-nav a {
      display: flex;
      flex-direction: column;
      align-items: center;
      text-decoration: none;
      color: var(--muted);
      font-size: 0.75rem;
      padding: 0.5rem;
      border-radius: var(--radius-sm);
      transition: color 0.2s ease, background 0.2s ease;
      flex: 1;
      max-width: 80px;
    }
    
    .bottom-nav a .nav-icon {
      font-size: 1.25rem;
      margin-bottom: 0.25rem;
    }
    
    .bottom-nav a.active,
    .bottom-nav a:hover {
      color: var(--accent);
      background: rgba(168, 85, 247, 0.1);
    }
    
    /* Add padding to main content to avoid overlap */
    main {
      padding-bottom: 80px !important;
    }
  }
  
  /* For tablets in landscape - horizontal menu */
  @media (orientation: landscape) and (min-height: 500px) {
    .burger-menu {
      display: none !important;
    }
    
    .main-nav {
      position: static !important;
      flex-direction: row !important;
      transform: none !important;
      opacity: 1 !important;
      visibility: visible !important;
      background: transparent !important;
      padding: 0 !important;
      gap: 0.75rem !important;
      display: flex !important;
    }
    
    .main-nav a {
      font-size: 0.9rem !important;
      padding: 0.5rem 0.75rem !important;
      width: auto !important;
      background: transparent !important;
      color: var(--muted) !important;
    }
    
    .main-nav a.active,
    .main-nav a:hover {
      color: var(--text) !important;
      background: rgba(168, 85, 247, 0.1) !important;
    }
    
    .mobile-auth {
      display: none !important;
    }
    
    .header-actions.desktop {
      display: flex !important;
    }
    
    /* Hide bottom nav in landscape */
    .bottom-nav {
      display: none !important;
    }
  }
}

@media (max-width: 767px) {
  .topbar {
    grid-template-columns: 1fr;
    justify-items: start;
  }
  .main-nav { justify-content: flex-start; }
  .hero-grid, .catalog-layout, .detail-layout, .author-layout, .auth-grid,
  .profile-layout, .search-layout, .split-layout, .footer-grid, .surface-row,
  .stats-grid, .cards-grid, .cards-grid.two, .cards-grid.four, .form-row {
    grid-template-columns: 1fr;
  }
  .page-title-inline, .banner, .toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .header-actions {
    width: 100%;
    flex-wrap: wrap;
  }
  .search-chip { width: 100%; }
  .sticky-download {
    position: fixed;
    bottom: 70px;
    left: 0;
    right: 0;
    padding: 12px 16px;
    background: rgba(10,16,32,.95);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    z-index: 40;
  }
  .sticky-download .button { width: 100%; }
  body { padding-bottom: 70px; }
}

/* Pagination */
.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}

.page-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel-3);
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: 0.15s ease;
}

.page-item:hover {
  color: var(--text);
  border-color: var(--accent);
}

.page-active {
  background: linear-gradient(135deg, var(--accent), #8a7dff);
  border-color: transparent;
  color: #fff;
}

.page-active:hover {
  color: #fff;
  opacity: 0.9;
}

/* Premium Buttons 2026 */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  border-radius: var(--radius-pill);
  border: none;
  font-family: "Manrope", "Inter", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  letter-spacing: -0.01em;
}

.button::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.button:hover::after {
  opacity: 1;
}

.button.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  box-shadow: 0 12px 40px var(--accent-glow);
}

.button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 50px var(--accent-glow);
}

.button.secondary {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--text);
  backdrop-filter: blur(8px);
}

.button.secondary:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.3);
  transform: translateY(-2px);
}

.button.ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--text);
}

.button.ghost:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.25);
}

.button.block {
  width: 100%;
}

/* Rating Stars */
.rating-stars {
  display: inline-flex;
  gap: 2px;
  align-items: center;
}

.rating-stars .star.filled { color: #f5c842; }
.rating-stars .star.half { color: #f5c842; opacity: 0.5; }
.rating-stars .star.empty { color: var(--muted); opacity: 0.3; }

/* Social Login Buttons */
.btn-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0.85rem 1.2rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel-3);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  transition: 0.18s ease transform, 0.18s ease background;
  width: 100%;
}

.btn-social:hover { transform: translateY(-1px); }

.btn-discord { background: rgba(88,101,242,0.2); border-color: rgba(88,101,242,0.4); }
.btn-discord:hover { background: rgba(88,101,242,0.35); }
.btn-google { background: rgba(219,68,55,0.15); border-color: rgba(219,68,55,0.3); }
.btn-google:hover { background: rgba(219,68,55,0.3); }
.btn-github { background: rgba(255,255,255,0.08); }
.btn-github:hover { background: rgba(255,255,255,0.15); }
.btn-steam { background: rgba(102,192,244,0.15); border-color: rgba(102,192,244,0.3); }
.btn-steam:hover { background: rgba(102,192,244,0.3); }

/* Password Strength */
.strength-bar {
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.1);
  margin-top: 8px;
  overflow: hidden;
}

.strength-bar::after {
  content: '';
  display: block;
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s ease, background 0.3s ease;
}

.strength-weak .strength-bar::after { width: 33%; background: var(--danger); }
.strength-medium .strength-bar::after { width: 66%; background: var(--warning); }
.strength-strong .strength-bar::after { width: 100%; background: var(--success); }

/* Tabs */
.tab-nav {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}

.tab-nav a, .tab-nav button {
  padding: 10px 18px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  cursor: pointer;
  font: inherit;
}

.tab-active {
  color: var(--text) !important;
  border-bottom-color: var(--accent) !important;
}

.tab-content { display: none; }
.tab-content.tab-active { display: block; }

/* Notification Dot */
.notification-dot {
  position: relative;
}

.notification-dot::after {
  content: '';
  position: absolute;
  top: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--danger);
  border: 2px solid var(--bg);
}

/* Mobile Bottom Nav */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 30;
  background: rgba(10,16,32,0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding: 8px 0;
}

.mobile-nav-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.mobile-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 8px;
}

.mobile-nav a.active { color: var(--accent); }
.mobile-nav .nav-icon { font-size: 1.3rem; }

@media (max-width: 767px) {
  .mobile-nav { display: block; }
  body { padding-bottom: 70px; }
}

/* Comments */
.comment {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.comment:last-child { border-bottom: none; }

.comment-avatar {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #8a7dff);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.1rem;
}

.comment-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.comment-meta {
  display: flex;
  gap: 12px;
  align-items: center;
}

.comment-author { font-weight: 700; }
.comment-date { color: var(--muted); font-size: 0.84rem; }


/* Notification Bell */
.notification-bell {
  position: relative;
  font-size: 1.2rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.notification-dot {
  position: absolute;
  top: -2px;
  right: -4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--danger);
}

/* GameCard */
.game-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.025));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.game-card img { border-radius: 16px; }

/* TagChip */
.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
  text-decoration: none;
  transition: 0.15s;
}
.tag-chip:hover { background: rgba(255,255,255,0.1); color: var(--text); }

/* UserAvatarMenu */
.user-avatar-menu {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #8a7dff);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
}

/* DownloadButton states */
.download-btn { position: relative; }
.download-btn.loading { pointer-events: none; opacity: 0.7; }
.download-btn.loading::after {
  content: '';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: translateY(-50%) rotate(360deg); } }

/* Rating block */
.rating-block {
  display: flex;
  align-items: center;
  gap: 8px;
}
.rating-block .rating-stars { color: var(--warning); }
.rating-count { color: var(--muted); font-size: 0.9rem; }

/* Status badges for admin */
.status-badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}
.status-badge.published { background: rgba(126,230,167,0.15); color: var(--success); }
.status-badge.pending { background: rgba(255,204,102,0.15); color: var(--warning); }
.status-badge.rejected { background: rgba(255,126,143,0.15); color: var(--danger); }
.status-badge.draft { background: rgba(159,176,209,0.15); color: var(--muted); }

/* Version table */
.version-table { width: 100%; border-collapse: collapse; }
.version-table th, .version-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid rgba(255,255,255,0.08); }
.version-table th { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.version-table tr:hover { background: rgba(255,255,255,0.03); }

.channel-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}
.channel-badge.stable { background: rgba(126,230,167,0.15); color: var(--success); }
.channel-badge.beta { background: rgba(108,164,255,0.15); color: var(--accent); }
.channel-badge.alpha { background: rgba(255,204,102,0.15); color: var(--warning); }

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.gallery-item img {
  border-radius: 14px;
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: transform 0.2s ease;
  cursor: pointer;
}
.gallery-item img:hover { transform: scale(1.03); }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex; align-items: center; justify-content: center;
  z-index: 100;
}
.modal {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 500px;
  width: 90%;
}

/* User dropdown menu */
.user-menu:hover .user-dropdown { display: block !important; }
.user-dropdown a:hover { background: rgba(255,255,255,0.06); color: var(--text) !important; }
