/* ==========================================================================
   MAIN LAYOUT & BASE STYLES
   Senior Architecture - Modern, Lightweight, Clean
   ========================================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  background-image: var(--grad-glow);
  background-repeat: no-repeat;
  background-attachment: fixed;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-elevated);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
}

/* Container */
.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Navigation Bar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition-normal);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  position: relative;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.5px;
}

.brand-logo-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(212, 160, 23, 0.45));
  transition: transform var(--transition-fast);
}

.brand-logo:hover .brand-logo-img {
  transform: scale(1.08);
}

.brand-text {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-main);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 8px rgba(245, 158, 11, 0.25));
  white-space: nowrap;
  transition: filter var(--transition-fast);
}

.brand-logo:hover .brand-text {
  filter: drop-shadow(0 2px 14px rgba(245, 158, 11, 0.5));
}

.brand-text span {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  background: var(--grad-gold-badge);
  border: 1px solid rgba(254, 240, 138, 0.45);
  color: #fef08a;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: #fef08a;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  text-transform: uppercase;
  vertical-align: middle;
}

.brand-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-tagline {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: #94a3b8;
  text-transform: uppercase;
  margin-top: 1px;
  line-height: 1;
  transition: all var(--transition-fast);
}

.brand-logo:hover .brand-tagline {
  color: #fef08a;
  letter-spacing: 2.2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* App Bar Bookmark Button */
.nav-bookmark-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.nav-bookmark-btn:hover {
  background: rgba(6, 182, 212, 0.12);
  border-color: rgba(6, 182, 212, 0.45);
  color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.25);
  transform: scale(1.05);
}

.nav-bookmark-btn.active {
  background: rgba(6, 182, 212, 0.18);
  border-color: rgba(6, 182, 212, 0.65);
  color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.35);
}

.nav-bookmark-btn.active svg {
  fill: currentColor;
}

.nav-bookmark-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--accent-cyan);
  color: #0f172a;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* App Bar Phone Valuation Calculator Button */
.nav-calc-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 40px;
  padding: 0 0.95rem;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(217, 119, 6, 0.06));
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--transition-fast);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav-calc-btn:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(217, 119, 6, 0.15));
  border-color: rgba(245, 158, 11, 0.7);
  color: #fef08a;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.35);
  transform: translateY(-1px);
}

.nav-calc-btn:active {
  transform: scale(0.97);
}

.nav-calc-btn svg {
  flex-shrink: 0;
  color: #fbbf24;
  transition: transform var(--transition-fast);
}

.nav-calc-btn:hover svg {
  transform: scale(1.1);
  color: #fef08a;
}

/* Expandable App Bar Search */
.navbar-search {
  position: relative;
  display: flex;
  align-items: center;
}

.search-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.search-toggle-btn:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.45);
  color: #fef08a;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.25);
  transform: scale(1.05);
}

.search-expand-panel {
  display: none;
  align-items: center;
  gap: 0.6rem;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(245, 158, 11, 0.45);
  border-radius: var(--radius-full);
  padding: 0.35rem 0.6rem 0.35rem 1rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(245, 158, 11, 0.2);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  width: 320px;
  max-width: calc(100vw - 2rem);
  animation: searchSlideIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar-search.active .search-toggle-btn {
  display: none;
}

.navbar-search.active .search-expand-panel {
  display: flex;
}

@keyframes searchSlideIn {
  from {
    opacity: 0;
    transform: scale(0.94) translateX(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateX(0);
  }
}

.search-panel-icon {
  color: #fef08a;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.search-expand-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.92rem;
  outline: none;
  width: 100%;
}

.search-expand-input::placeholder {
  color: var(--text-muted);
}

.search-close-btn,
.navbar-search .search-clear-btn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-secondary);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.search-close-btn:hover {
  background: rgba(244, 63, 94, 0.2);
  color: #f43f5e;
}

.navbar-search .search-clear-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
}

.mobile-only-btn {
  display: none;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
  touch-action: manipulation;
}

.nav-btn:active {
  transform: scale(0.96);
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-medium);
  transform: translateY(-1px);
}

.compare-badge-count {
  background: var(--accent-cyan);
  color: #0f172a;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-full);
  line-height: 1.2;
}

/* Hero Section */
.hero-section {
  padding: 3.5rem 0 2rem;
  position: relative;
}

.hero-content {
  display: block;
  max-width: 860px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: var(--accent-cyan);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: 3.25rem;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 1rem;
}

.hero-title .gradient-text {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 720px;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-mono);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Hero Spotlight Card (Flagship Highlight) */
.hero-spotlight {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 1.8rem;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  overflow: hidden;
  transition: var(--transition-normal);
}

.hero-spotlight:hover {
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: var(--shadow-lg), var(--shadow-cyan-glow);
}

.spotlight-badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: var(--accent-amber);
  color: #000;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.spotlight-inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.spotlight-img-wrap {
  position: relative;
  width: 100%;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(0,0,0,0.2) 100%);
}

.spotlight-img {
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.hero-spotlight:hover .spotlight-img {
  transform: scale(1.05) translateY(-4px);
}

.spotlight-info h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.spotlight-specs-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: 1rem;
}

.spotlight-spec-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  text-align: center;
}

.spotlight-spec-pill .label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.spotlight-spec-pill .val {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* Main Section Heading */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-title {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Phone Cards Grid - 5 Columns Desktop */
.phone-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.85rem;
  margin-bottom: 2rem;
}

@media (max-width: 1200px) {
  .phone-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
  }
}

@media (max-width: 992px) {
  .phone-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.65rem;
  }
}

/* No Results State */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-medium);
}

.no-results-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: inline-block;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 3.5rem 0 2rem;
  margin-top: 4rem;
  background: linear-gradient(180deg, rgba(11, 15, 23, 0.95) 0%, rgba(7, 10, 16, 0.98) 100%);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1.2fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-brand-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.footer-brand-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(212, 160, 23, 0.45));
}

.footer-about-text {
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.6;
  max-width: 360px;
  margin: 0;
}

.footer-heading {
  color: var(--text-primary);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 0 0 1rem 0;
  text-transform: uppercase;
}

.footer-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-info-list li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.footer-info-label {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.82rem;
}

.footer-link {
  color: #fbbf24;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: #fef08a;
  text-decoration: underline;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.footer-social-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  fill: currentColor;
  transition: transform var(--transition-fast);
}

.footer-social-link:hover .footer-social-icon {
  transform: scale(1.12);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copyright {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Floating Back To Top Button
   -------------------------------------------------------------------------- */
.back-to-top-btn {
  position: fixed;
  right: 1.25rem;
  bottom: 5.5rem;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.9);
  transition: all var(--transition-normal);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  touch-action: manipulation;
}

.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.back-to-top-btn:active {
  transform: scale(0.9);
}

/* --------------------------------------------------------------------------
   Mobile App Bottom Navigation Bar
   -------------------------------------------------------------------------- */
.mobile-bottom-nav {
  display: none;
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints - Senior Mobile-First Tuning
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  /* Top Navbar on Mobile */
  .navbar {
    border-bottom-color: rgba(255, 255, 255, 0.06);
  }

  .nav-container {
    height: 58px;
  }

  .brand-logo {
    gap: 0.45rem;
  }

  .brand-text {
    font-size: 1.05rem;
    gap: 0.35rem;
  }

  .brand-text span {
    font-size: 0.65rem;
    padding: 0.12rem 0.38rem;
  }

  .brand-tagline {
    font-size: 0.52rem;
    letter-spacing: 1.4px;
  }

  .brand-logo-icon {
    width: 32px;
    height: 32px;
  }

  .search-toggle-btn,
  .nav-bookmark-btn,
  .nav-calc-btn {
    width: 36px;
    height: 36px;
  }

  .nav-calc-btn {
    padding: 0;
    justify-content: center;
  }

  .nav-calc-btn .nav-calc-text {
    display: none;
  }

  .navbar-search.active {
    position: absolute;
    inset: 0;
    z-index: 100;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    padding: 0 0.5rem;
  }

  .navbar-search.active .search-expand-panel {
    width: 100%;
    max-width: 100%;
    height: 44px;
    box-sizing: border-box;
  }

  .nav-actions {
    gap: 0.45rem;
  }

  /* On mobile header, collapse button text to compact icon-only badges */
  .nav-actions .nav-btn-text {
    display: none;
  }

  .nav-btn {
    padding: 0.45rem 0.65rem;
    font-size: 0.8rem;
  }

  .mobile-only-btn {
    display: inline-flex;
  }

  /* Hero on Mobile */
  .hero-section {
    padding: 1.75rem 0 1.25rem;
  }

  .hero-title {
    font-size: clamp(1.65rem, 5.5vw, 2.25rem);
    letter-spacing: -0.5px;
    margin-bottom: 0.75rem;
  }

  .hero-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
    padding-top: 0.9rem;
    text-align: center;
  }

  .stat-value {
    font-size: 1.45rem;
  }

  .stat-label {
    font-size: 0.68rem;
  }

  /* Spotlight on Mobile */
  .hero-spotlight {
    padding: 1.25rem;
    border-radius: var(--radius-lg);
  }

  .spotlight-img-wrap {
    height: 170px;
  }

  .spotlight-info h3 {
    font-size: 1.2rem;
  }

  .spotlight-specs-row {
    gap: 0.35rem;
  }

  .spotlight-spec-pill {
    padding: 0.4rem 0.25rem;
  }

  .spotlight-spec-pill .label {
    font-size: 0.65rem;
  }

  .spotlight-spec-pill .val {
    font-size: 0.78rem;
  }

  /* Section Header */
  .section-title {
    font-size: 1.45rem;
  }

  .section-subtitle {
    font-size: 0.85rem;
  }

  /* Phone Grid on Mobile (4 Columns) */
  .phone-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-bottom: 3rem;
  }

  @media (max-width: 400px) {
    .phone-grid {
      gap: 0.35rem;
    }
  }

  /* Footer with Safe-Area Clearance on Mobile */
  .footer {
    padding: 2.5rem 0 calc(5.5rem + env(safe-area-inset-bottom, 0px));
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    justify-content: center;
    gap: 0.5rem;
  }

  /* Mobile App Bottom Navigation Bar */
  .mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-around;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-subtle);
    padding: 0.4rem 0.5rem calc(0.45rem + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.45);
  }

  [data-theme="light"] .mobile-bottom-nav {
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 -8px 25px rgba(15, 23, 42, 0.08);
  }

  .mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.35rem 0.6rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.7rem;
    font-weight: 600;
    transition: var(--transition-fast);
    position: relative;
    min-width: 56px;
    touch-action: manipulation;
  }

  .mobile-nav-item:active {
    transform: scale(0.9);
  }

  .mobile-nav-item.active {
    color: var(--accent-cyan);
  }

  .mobile-nav-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2px;
  }

  .mobile-nav-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: var(--accent-cyan);
    color: #0f172a;
    font-size: 0.65rem;
    font-weight: 800;
    min-width: 16px;
    height: 16px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
  }

  .back-to-top-btn {
    bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
    right: 1rem;
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 480px) {
  .hero-tag {
    font-size: 0.78rem;
    padding: 0.3rem 0.75rem;
  }

  .hero-stats {
    gap: 0.4rem;
  }

  .stat-value {
    font-size: 1.3rem;
  }

  .stat-label {
    font-size: 0.65rem;
  }
}

/* --------------------------------------------------------------------------
   Pagination System (4-row pagination)
   -------------------------------------------------------------------------- */
.pagination-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin: 1.5rem 0 3.5rem;
  width: 100%;
}

.pagination-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-card);
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-medium);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.page-nav-btn {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid transparent;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.page-nav-btn:hover:not(:disabled) {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.4);
}

.page-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.page-numbers {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.page-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.page-btn:hover:not(.active) {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

.page-btn.active {
  background: var(--grad-gold);
  color: #0b0f17;
  font-weight: 900;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
}

.pagination-info {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.3px;
}

/* --------------------------------------------------------------------------
   Top Promotional Advertisement Banner
   -------------------------------------------------------------------------- */
.promo-banner-section {
  padding: 1.5rem 0 0.5rem;
}

.promo-banner-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  background: linear-gradient(135deg, rgba(20, 26, 38, 0.95) 0%, rgba(13, 17, 26, 0.98) 100%);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5), 0 0 35px rgba(245, 158, 11, 0.08);
}

.promo-banner-content {
  padding: 2.5rem 2.75rem;
  z-index: 2;
}

.promo-badge-tag {
  display: inline-block;
  background: var(--grad-gold-badge);
  color: #fef08a;
  border: 1px solid rgba(254, 240, 138, 0.45);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.85rem;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.2);
}

.promo-banner-title {
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.65rem;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 8px rgba(245, 158, 11, 0.25));
}

.promo-banner-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 520px;
}

.promo-banner-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.promo-btn-primary {
  background: var(--grad-gold);
  color: #0b0f17;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.promo-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

.promo-btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.72rem 1.5rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.promo-btn-secondary:hover {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.5);
  color: #fbbf24;
  transform: translateY(-2px);
}

.promo-banner-image-wrap {
  position: relative;
  height: 100%;
  min-height: 280px;
  overflow: hidden;
}

.promo-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.promo-banner-card:hover .promo-banner-img {
  transform: scale(1.03);
}

.promo-banner-image-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(13, 17, 26, 0.95) 0%, rgba(13, 17, 26, 0.2) 40%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

@media (max-width: 900px) {
  .promo-banner-card {
    grid-template-columns: 1fr;
  }

  .promo-banner-content {
    padding: 1.75rem 1.5rem 1.25rem;
  }

  .promo-banner-title {
    font-size: 1.55rem;
  }

  .promo-banner-subtitle {
    font-size: 0.88rem;
  }

  .promo-banner-image-wrap {
    min-height: 200px;
    height: 200px;
  }

  .promo-banner-image-wrap::before {
    background: linear-gradient(180deg, rgba(13, 17, 26, 0.95) 0%, rgba(13, 17, 26, 0.2) 30%, transparent 100%);
  }
}


