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

body {
  background: #080a10;
  color: #d4dfe8;
  font-family: 'Oswald', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 60% at 0% 0%, rgba(74,158,255,0.20) 0%, transparent 65%),
    radial-gradient(ellipse 65% 60% at 100% 100%, rgba(74,158,255,0.16) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

/* HEADER */
.header {
  background: rgba(8,10,16,0.80);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(160,180,210,0.25);
  display: flex;
  align-items: center;
  padding: 12px 0;
  position: relative;
  z-index: 1;
}
.header-spacer {
  width: 0;
  min-width: 0;
  flex-shrink: 0;
}
.header-content {
  flex: 1;
  padding: 0 30px;
  display: flex;
  align-items: center;
}
.header-logo-wrap {
  width: 100%;
  margin: 0;
  padding-left: 4px;
}
.header img {
  width: 150%;
  height: auto;
  display: block;
}
.header a {
  display: inline-block;
  line-height: 0;
}

/* MAIN LAYOUT */
.main-wrapper {
  display: flex;
  flex: 1;
  min-height: 0;
  position: relative;
  z-index: 1;
}

/* CONTENT */
.content {
  flex: 7;
  padding: 20px 20px 40px 24px;
  overflow-y: auto;
  min-width: 0;
  background: transparent;
}

/* RIGHT PANEL */
.right-panel {
  flex: 3;
  min-width: 280px;
  max-width: 380px;
  background: transparent;
  border-left: 1px solid rgba(160,180,210,0.22);
  padding: 20px 18px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Ad placeholders */
.right-panel-ad {
  flex-shrink: 0;
}
.ad-placeholder {
  width: 100%;
  height: 120px;
  border: 1px dashed rgba(160,180,210,0.25);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16,19,26,0.6);
}
.ad-placeholder--tall {
  height: 250px;
}
.ad-placeholder-label {
  font-size: 12px;
  color: rgba(160,180,210,0.20);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 600;
}

/* Panel sections */
.right-panel-section {
  flex-shrink: 0;
}
.right-panel-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #9badc8;
  margin-bottom: 12px;
}
.heading-accent {
  width: 3px;
  height: 16px;
  background: #4a9eff;
  border-radius: 2px;
  flex-shrink: 0;
}

/* Trending list */
.trending-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.trending-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #161b26;
  border: 1px solid rgba(160,180,210,0.20);
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.trending-item:hover {
  background: #1e2838;
  border-color: rgba(160,180,210,0.22);
}
.trending-thumb {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: #121620;
}
.trending-rank {
  font-size: 16px;
  font-weight: 700;
  color: #d4dfe8;
  min-width: 18px;
  text-align: center;
  flex-shrink: 0;
}
.trending-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.trending-info {
  flex: 1;
  min-width: 0;
}
.trending-hero-name {
  font-size: 13px;
  font-weight: 600;
  color: #d4dfe8;
  letter-spacing: 0.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.trending-build-label {
  font-size: 11px;
  color: #9badc8;
  letter-spacing: 0.3px;
  margin-top: 1px;
}
.trending-stat {
  font-size: 12px;
  font-weight: 600;
  color: #4a9eff;
  letter-spacing: 0.3px;
  flex-shrink: 0;
}

/* Updates list */
.updates-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.update-item {
  background: #161b26;
  border: 1px solid rgba(160,180,210,0.20);
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.update-item:hover {
  background: #1e2838;
  border-color: rgba(160,180,210,0.22);
}
.update-title {
  font-size: 13px;
  font-weight: 600;
  color: #d4dfe8;
  letter-spacing: 0.3px;
  margin-bottom: 3px;
}
.update-meta {
  font-size: 11px;
  color: #7a8fa8;
  letter-spacing: 0.3px;
}
.update-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 3px;
  margin-right: 6px;
}
.update-tag--patch {
  background: rgba(74,158,255,0.15);
  color: #4a9eff;
}
.update-tag--new {
  background: rgba(80,200,140,0.15);
  color: #50c88c;
}
.update-tag--meta {
  background: rgba(241,196,15,0.12);
  color: #f1c40f;
}

/* Right panel scrollbar */
.right-panel::-webkit-scrollbar {
  width: 4px;
}
.right-panel::-webkit-scrollbar-track {
  background: transparent;
}
.right-panel::-webkit-scrollbar-thumb {
  background: rgba(160,180,210,0.22);
  border-radius: 2px;
}

/* H1 */
.content h1 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #9badc8;
  margin-bottom: 16px;
}

/* Last updated */
.last-updated {
  font-size: 12px;
  color: #7a8fa8;
  letter-spacing: 0.5px;
}

/* TOOLBAR */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.toolbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* TIER LIST TOGGLE */
.tier-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  background: #161b26;
  border: 1px solid rgba(160,180,210,0.15);
  border-radius: 6px;
  padding: 6px 14px;
  transition: all 0.2s;
}
.tier-toggle:hover {
  background: #1e2838;
  border-color: rgba(160,180,210,0.15);
}
.tier-toggle.active {
  background: rgba(76,175,80,0.12);
  border-color: rgba(76,175,80,0.4);
}
.tier-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4caf50;
  opacity: 0.4;
  transition: opacity 0.2s;
}
.tier-toggle.active .tier-dot {
  opacity: 1;
  box-shadow: 0 0 6px rgba(76,175,80,0.6);
}
.tier-toggle-label {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #9badc8;
}
.tier-toggle.active .tier-toggle-label {
  color: rgba(76,175,80,0.9);
}

.hero-count {
  font-size: 16px;
  color: #7a8fa8;
  letter-spacing: 0.5px;
}
.hero-count span {
  color: #4a9eff;
  font-weight: 700;
}

/* HERO GRID - DEFAULT */
.heroes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 16px;
}

/* HERO CARD */
.hero-card {
  background: #161b26;
  border: 1px solid rgba(160,180,210,0.15);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.hero-card:hover {
  transform: translateY(-4px);
  border-color: rgba(160,180,210,0.15);
  box-shadow: 0 10px 36px rgba(0,0,0,0.45);
  background: #1e2838;
}
.hero-img-wrap {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  position: relative;
  background: #121620;
}
.hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.hero-card:hover .hero-img-wrap img {
  transform: scale(1.05);
}
.hero-name-wrap {
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
}
.hero-name-wrap img {
  height: 22px;
  max-width: 100%;
  object-fit: contain;
  filter: brightness(1.1);
}

/* TIER LIST MODE */
.tier-section {
  margin-bottom: 24px;
}
.tier-header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 4px 14px;
  border-radius: 4px;
}
.tier-badge {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
  min-width: 28px;
  text-align: center;
}
.tier-label {
  font-size: 16px;
  color: #7a8fa8;
  letter-spacing: 0.5px;
}
.tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 16px;
}

/* Tier background tints */
.tier-section[data-tier="S+"] .hero-card {
  background: rgba(231, 76, 60, 0.10);
  border-color: rgba(231, 76, 60, 0.24);
}
.tier-section[data-tier="S+"] .hero-card:hover {
  background: rgba(231, 76, 60, 0.16);
  border-color: rgba(231, 76, 60, 0.42);
}
.tier-section[data-tier="S"] .hero-card {
  background: rgba(241, 196, 15, 0.08);
  border-color: rgba(241, 196, 15, 0.20);
}
.tier-section[data-tier="S"] .hero-card:hover {
  background: rgba(241, 196, 15, 0.14);
  border-color: rgba(241, 196, 15, 0.38);
}
.tier-section[data-tier="A"] .hero-card {
  background: rgba(155, 89, 182, 0.09);
  border-color: rgba(155, 89, 182, 0.22);
}
.tier-section[data-tier="A"] .hero-card:hover {
  background: rgba(155, 89, 182, 0.15);
  border-color: rgba(155, 89, 182, 0.38);
}
.tier-section[data-tier="B"] .hero-card {
  background: rgba(52, 152, 219, 0.08);
  border-color: rgba(52, 152, 219, 0.20);
}
.tier-section[data-tier="B"] .hero-card:hover {
  background: rgba(52, 152, 219, 0.14);
  border-color: rgba(52, 152, 219, 0.38);
}
.tier-section[data-tier="C"] .hero-card {
  background: rgba(127, 140, 141, 0.08);
  border-color: rgba(127, 140, 141, 0.20);
}
.tier-section[data-tier="C"] .hero-card:hover {
  background: rgba(127, 140, 141, 0.14);
  border-color: rgba(127, 140, 141, 0.38);
}

/* Tier header backgrounds */
.tier-section[data-tier="S+"] .tier-header {
  background: rgba(231, 76, 60, 0.1);
}
.tier-section[data-tier="S+"] .tier-badge {
  color: #e74c3c;
}
.tier-section[data-tier="S"] .tier-header {
  background: rgba(241, 196, 15, 0.08);
}
.tier-section[data-tier="S"] .tier-badge {
  color: #f1c40f;
}
.tier-section[data-tier="A"] .tier-header {
  background: rgba(155, 89, 182, 0.08);
}
.tier-section[data-tier="A"] .tier-badge {
  color: #9b59b6;
}
.tier-section[data-tier="B"] .tier-header {
  background: rgba(52, 152, 219, 0.08);
}
.tier-section[data-tier="B"] .tier-badge {
  color: #3498db;
}
.tier-section[data-tier="C"] .tier-header {
  background: rgba(127, 140, 141, 0.08);
}
.tier-section[data-tier="C"] .tier-badge {
  color: #7f8c8d;
}

/* FOOTER */
.footer {
  background: rgba(8,10,16,0.80);
  border-top: 1px solid rgba(160,180,210,0.25);
  padding: 16px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  color: #7a8fa8;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 1;
}
.footer a {
  color: #7a8fa8;
  text-decoration: none;
  margin-left: 20px;
  transition: color 0.2s;
}
.footer a:hover {
  color: #9badc8;
}

/* Scrollbar */
.content::-webkit-scrollbar {
  width: 6px;
}
.content::-webkit-scrollbar-track {
  background: transparent;
}
.content::-webkit-scrollbar-thumb {
  background: rgba(160,180,210,0.25);
  border-radius: 3px;
}
.content::-webkit-scrollbar-thumb:hover {
  background: rgba(160,180,210,0.65);
}

/* ==========================================================================
   HERO PAGE
   ========================================================================== */

/* Three-column layout: portrait | builds | ad */
.hero-page-layout {
  display: grid;
  grid-template-columns: 280px 1fr 180px;
  gap: 0;
  flex: 1;
  min-height: 0;
}

/* LEFT: Hero portrait column */
.hero-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 20px;
  position: sticky;
  top: 0;
  align-self: start;
  border-right: 1px solid rgba(160,180,210,0.25);
  background: transparent;
}
.hero-portrait-wrap {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(160,180,210,0.25);
  background: #161b26;
}
.hero-portrait-wrap img {
  width: 100%;
  display: block;
  object-fit: cover;
}
.hero-col .hero-name-wrap {
  padding: 0;
  min-height: 0;
}
.hero-col .hero-name-wrap img {
  max-width: 100%;
  max-height: 36px;
  object-fit: contain;
  filter: brightness(1.1);
}

/* CENTER: Builds column */
.builds-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 24px 40px;
  overflow-y: auto;
  min-width: 0;
  background: transparent;
}
.builds-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(160,180,210,0.20);
  margin-bottom: 4px;
}
.builds-title {
  font-size: 13px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #9badc8;
  font-weight: 700;
}
.builds-count {
  font-size: 12px;
  color: #7a8fa8;
}

/* Build card */
.build-card {
  background: #161b26;
  border-radius: 10px;
  border: 1px solid rgba(160,180,210,0.20);
  border-left: 3px solid #4a9eff;
  overflow: hidden;
  transition: border-color 0.2s;
}
.build-card:nth-child(2) { border-left-color: #ff7a4a; }
.build-card:nth-child(3) { border-left-color: #50c88c; }
.build-card:hover {
  border-color: rgba(160,180,210,0.15);
}

/* Build header row */
.build-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  cursor: pointer;
  user-select: none;
}
.build-name {
  font-size: 14px;
  font-weight: 600;
  color: #d4dfe8;
  letter-spacing: 0.5px;
}
.build-author {
  font-size: 11px;
  color: #7a8fa8;
  letter-spacing: 0.3px;
}
.build-author span { color: #9badc8; }

.preview-icons {
  display: flex;
  gap: 4px;
  flex: 1;
  flex-wrap: nowrap;
  overflow: hidden;
}
.prev-icon {
  width: 30px;
  height: 30px;
  border-radius: 5px;
  border: 1px solid rgba(160,180,210,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 8px;
  font-weight: 600;
}

.build-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

.copy-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #161b26;
  border: 1px solid rgba(160,180,210,0.20);
  border-radius: 6px;
  cursor: pointer;
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  color: #9badc8;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
  white-space: nowrap;
}
.copy-btn:hover {
  background: #1e2838;
  color: #d4dfe8;
  border-color: rgba(160,180,210,0.15);
}
.copy-btn.copied {
  background: rgba(74,158,255,0.12);
  color: #4a9eff;
  border-color: rgba(74,158,255,0.40);
}
.copy-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.chevron {
  width: 18px;
  height: 18px;
  color: #7a8fa8;
  transition: transform 0.2s;
  flex-shrink: 0;
  margin-left: 4px;
}
.build-card.open .chevron {
  transform: rotate(180deg);
}

/* Expanded build body */
.build-body {
  display: none;
  padding: 0 14px 14px;
  border-top: 1px solid rgba(160,180,210,0.15);
}
.build-card.open .build-body {
  display: block;
}

.phase-section {
  margin-top: 12px;
}
.phase-label {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #7a8fa8;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.phase-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(160,180,210,0.15);
}
.phase-items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.item-icon {
  width: 52px;
  height: 52px;
  border-radius: 7px;
  border: 1px solid rgba(160,180,210,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.18s, transform 0.15s;
  background: #121620;
}
.item-icon:hover {
  transform: scale(1.08);
  border-color: rgba(160,180,210,0.15);
}
.item-icon-inner {
  width: 42px;
  height: 42px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 9px;
  text-align: center;
  line-height: 1.2;
}

.build-notes {
  margin-top: 12px;
  padding: 10px 12px;
  background: #0d1016;
  border-radius: 7px;
  border: 1px solid rgba(160,180,210,0.25);
  font-size: 12px;
  color: #7a8fa8;
  line-height: 1.6;
}
.build-notes strong {
  color: #9badc8;
  font-weight: 600;
}

/* RIGHT: Ad sidebar */
.ad-sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 10px;
  border-left: 1px solid rgba(160,180,210,0.25);
  background: transparent;
}
.ad-slot {
  width: 160px;
  height: 600px;
  background: #161b26;
  border: 1px dashed rgba(160,180,210,0.20);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: sticky;
  top: 24px;
}
.ad-slot .ad-label-text {
  font-size: 9px;
  color: #7a8fa8;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.ad-slot .ad-icon-text {
  font-size: 10px;
  color: #7a8fa8;
  border: 1px dashed rgba(160,180,210,0.15);
  padding: 3px 8px;
  border-radius: 4px;
}

/* ==========================================================================
   HAMBURGER & MOBILE MENU
   ========================================================================== */

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #d4dfe8;
  border-radius: 2px;
  transition: all 0.2s;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: rgba(8,10,16,0.97);
  border-left: 1px solid rgba(160,180,210,0.22);
  z-index: 1000;
  transition: right 0.3s ease;
  overflow-y: auto;
}
.mobile-menu.open {
  right: 0;
}
.mobile-menu-inner {
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: #9badc8;
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
}
.mobile-menu-close:hover { color: #d4dfe8; }

.mobile-menu-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 999;
}
.mobile-menu-overlay.open {
  display: block;
}

@media (max-width: 768px) {
  .hamburger { display: flex; }

  /* Header */
  .header img {
    width: 100%;
    max-width: 200px;
  }
  .header-content {
    padding: 0 14px;
    display: flex;
    align-items: center;
  }

  /* Stack main layout vertically, hide right panel */
  .main-wrapper {
    flex-direction: column;
  }
  .right-panel {
    display: none;
  }

  /* Content takes full width */
  .content {
    padding: 14px 12px 40px;
  }

  /* H1 smaller on mobile */
  .content h1 {
    font-size: 13px;
    margin-bottom: 10px;
  }

  /* Toolbar wraps on small screens */
  .toolbar {
    flex-wrap: wrap;
    gap: 8px;
  }
  .tier-toggle-label {
    font-size: 13px;
  }
  .hero-count {
    font-size: 13px;
  }

  /* Hero grid - 3 columns on mobile */
  .heroes-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .tier-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .hero-name-wrap img {
    height: 16px;
  }

  /* Ad banner between content and menu on mobile */
  .mobile-ad-banner {
    display: block;
    width: 100%;
    margin: 0 0 14px 0;
  }

  /* ── Hero page ── */
  /* Stack the 3-column layout vertically */
  .hero-page-layout {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  /* Portrait: row layout on mobile */
  .hero-col {
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 14px 12px;
    position: static;
    border-right: none;
    border-bottom: 1px solid rgba(160,180,210,0.20);
  }
  .hero-portrait-wrap {
    width: 80px;
    flex-shrink: 0;
    border-radius: 8px;
  }
  .hero-col .hero-name-wrap img {
    max-height: 24px;
  }

  /* Hide ad sidebar on mobile */
  .ad-sidebar {
    display: none;
  }

  /* Builds column full width */
  .builds-col {
    padding: 14px 12px 40px;
    gap: 10px;
  }

  /* Build cards */
  .build-header {
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 12px;
  }
  .build-name {
    font-size: 13px;
  }
  .preview-icons {
    order: 3;
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
  }
  .prev-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
  }
  .build-actions {
    margin-left: 0;
  }
  .copy-btn {
    font-size: 10px;
    padding: 5px 10px;
  }

  /* Item icons slightly smaller */
  .item-icon {
    width: 44px;
    height: 44px;
  }
  .item-icon-inner {
    width: 36px;
    height: 36px;
  }

  /* Update page */
  .update-page-header {
    flex-wrap: wrap;
    gap: 8px;
  }
  .up-title {
    font-size: 17px;
    width: 100%;
    order: 2;
  }
  .up-date-badge {
    order: 3;
  }
  .up-nav {
    order: 4;
    margin-left: auto;
  }
  .up-back-btn {
    order: 1;
  }
  .up-section-title {
    font-size: 18px;
  }
  .up-line {
    font-size: 14px;
    padding: 5px 12px 5px 20px;
  }
  .up-hero-name {
    font-size: 15px;
    padding: 8px 12px 4px;
  }

  /* Footer stacks vertically */
  .footer {
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    text-align: center;
  }
  .footer a {
    margin-left: 10px;
  }
}

/* ==========================================================================
   COOKIE CONSENT BANNER
   ========================================================================== */

.cookie-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 300px;
  background: #1c2230;
  border: 1px solid rgba(160,180,210,0.35);
  border-radius: 12px;
  padding: 18px 18px 16px;
  z-index: 9999;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: cookieSlideIn 0.3s ease;
}

@keyframes cookieSlideIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cookie-banner.hidden {
  display: none;
}

.cookie-banner-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #d4dfe8;
  display: flex;
  align-items: center;
  gap: 7px;
}

.cookie-banner-title svg {
  width: 14px;
  height: 14px;
  color: #4a9eff;
  flex-shrink: 0;
}

.cookie-banner-text {
  font-size: 12px;
  color: #7a8fa8;
  line-height: 1.6;
  letter-spacing: 0.2px;
}

.cookie-banner-text a {
  color: #4a9eff;
  text-decoration: none;
}

.cookie-banner-text a:hover {
  text-decoration: underline;
}

.cookie-banner-buttons {
  display: flex;
  gap: 8px;
}

.cookie-btn-accept {
  flex: 1;
  padding: 8px 0;
  background: rgba(74,158,255,0.15);
  border: 1px solid rgba(74,158,255,0.40);
  border-radius: 6px;
  color: #4a9eff;
  font-size: 11px;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.18s;
}
.cookie-btn-accept:hover {
  background: rgba(74,158,255,0.25);
}

.cookie-btn-decline {
  flex: 1;
  padding: 8px 0;
  background: transparent;
  border: 1px solid rgba(160,180,210,0.25);
  border-radius: 6px;
  color: #5a6a80;
  font-size: 11px;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.cookie-btn-decline:hover {
  background: rgba(160,180,210,0.08);
  color: #8a9bb5;
}

@media (max-width: 768px) {
  .cookie-banner {
    bottom: 16px;
    right: 12px;
    left: 12px;
    width: auto;
  }
}
