/* ==========================================================================
   TECH PEG - EDITORIAL TECHNOLOGY PUBLICATION STYLESHEET
   Domain: techpack.net | Modern Technology News & Blogging Platform
   ========================================================================== */

/* --------------------------------------------------
   1. CSS VARIABLES & DESIGN SYSTEM
-------------------------------------------------- */
:root {
  /* Brand Core Palette */
  --bg-dark-base: #07090e;
  --bg-dark-surface: #0b0f17;
  --bg-dark-elevated: #111723;
  --bg-dark-card: #151d2c;
  --bg-dark-border: #1e293b;
  --bg-dark-border-light: rgba(255, 255, 255, 0.08);

  /* Light Editorial Surfaces (for high-contrast news sections) */
  --bg-light-base: #f8fafc;
  --bg-light-surface: #ffffff;
  --bg-light-card: #ffffff;
  --bg-light-border: #e2e8f0;
  --bg-light-border-hover: #cbd5e1;

  /* Accent Colors */
  --accent-cyan: #00f0ff;
  --accent-cyan-rgb: 0, 240, 255;
  --accent-cyan-dim: #00bcd4;
  --accent-blue: #2563eb;
  --accent-indigo: #6366f1;
  --accent-violet: #8b5cf6;
  --accent-glow: rgba(0, 240, 255, 0.15);

  /* Typography Colors */
  --text-dark-primary: #f8fafc;
  --text-dark-secondary: #94a3b8;
  --text-dark-muted: #64748b;
  --text-dark-faint: #475569;

  --text-light-primary: #090d16;
  --text-light-secondary: #334155;
  --text-light-muted: #64748b;

  /* Category Badge Colors */
  --cat-ai: #00f0ff;
  --cat-mobile: #3b82f6;
  --cat-computers: #10b981;
  --cat-gaming: #ec4899;
  --cat-gadgets: #f59e0b;
  --cat-software: #8b5cf6;
  --cat-emerging: #06b6d4;
  --cat-security: #ef4444;

  /* Typography Stack */
  --font-editorial: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Layout & Spacing */
  --max-width: 1320px;
  --header-height: 72px;
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions & Shadows */
  --transition-fast: 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-dark-card: 0 12px 24px -4px rgba(0, 0, 0, 0.4), 0 4px 8px -2px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 25px rgba(0, 240, 255, 0.2);
}

/* --------------------------------------------------
   2. GLOBAL RESET & BASE STYLES
-------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-dark-base);
  color: var(--text-dark-primary);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

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

img {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: transparent;
}

ul, ol {
  list-style: none;
}

/* Accessible focus visible */
:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 3px;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

@media (max-width: 640px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Utility Helpers */
.hidden {
  display: none !important;
}

.text-accent {
  color: var(--accent-cyan) !important;
}

.text-light {
  color: var(--text-dark-primary) !important;
}

.text-muted {
  color: var(--text-dark-secondary) !important;
}

.bg-accent {
  background-color: var(--accent-cyan) !important;
}

.max-w-600 {
  max-width: 600px;
}

.max-w-700 {
  max-width: 700px;
}

/* --------------------------------------------------
   3. PROGRESS BAR & BRIEFING BAR
-------------------------------------------------- */
.reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-cyan), #3b82f6, var(--accent-violet));
  z-index: 1000;
  transition: width 0.1s linear;
}

.briefing-bar {
  background: #040609;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.75rem;
  padding: 6px 0;
  color: var(--text-dark-secondary);
}

.briefing-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.briefing-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
  white-space: nowrap;
  font-size: 0.7rem;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent-cyan);
  border-radius: 50%;
  animation: pulse-dot-anim 1.8s infinite;
}

@keyframes pulse-dot-anim {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.4); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.briefing-ticker {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 0.75rem;
  color: #94a3b8;
}

.ticker-divider {
  color: rgba(255, 255, 255, 0.2);
}

.briefing-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  font-size: 0.7rem;
}

.edition-label {
  color: #64748b;
  letter-spacing: 0.04em;
}

.current-date {
  color: #cbd5e1;
  font-weight: 600;
}

@media (max-width: 900px) {
  .briefing-ticker {
    display: none;
  }
}

@media (max-width: 600px) {
  .briefing-bar {
    display: none;
  }
}

/* --------------------------------------------------
   4. STICKY HEADER & NAVIGATION
-------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 900;
  background-color: rgba(7, 9, 14, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--bg-dark-border-light);
  transition: background-color var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.site-header.scrolled {
  background-color: rgba(7, 9, 14, 0.96);
  border-bottom-color: rgba(0, 240, 255, 0.15);
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.6);
}

.header-inner {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Brand Wordmark */
.brand-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  user-select: none;
}

.brand-glyph {
  font-family: var(--font-editorial);
  font-weight: 800;
  font-size: 1.15rem;
  display: inline-flex;
  align-items: center;
  line-height: 1;
  letter-spacing: -0.02em;
}

.glyph-bracket {
  color: var(--accent-cyan);
  opacity: 0.85;
}

.glyph-core {
  background: linear-gradient(135deg, #ffffff 40%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  padding: 0 1px;
}

.brand-text {
  font-family: var(--font-editorial);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  line-height: 1;
}

.brand-tech {
  color: #ffffff;
}

.brand-peg {
  color: var(--accent-cyan);
  position: relative;
}

.brand-peg::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
  transform: scaleX(0.7);
  transform-origin: left;
  transition: transform var(--transition-fast);
}

.brand-wordmark:hover .brand-peg::after {
  transform: scaleX(1);
}

/* Desktop Nav */
.desktop-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  font-family: var(--font-editorial);
  font-size: 0.88rem;
  font-weight: 600;
  color: #94a3b8;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background-color var(--transition-fast);
  position: relative;
}

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

.nav-link.active {
  color: var(--accent-cyan);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 14px;
  right: 14px;
  height: 2px;
  background-color: var(--accent-cyan);
  border-radius: 2px;
  box-shadow: 0 0 6px rgba(0, 240, 255, 0.6);
}

/* Header Action Buttons */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--bg-dark-border-light);
  border-radius: var(--radius-full);
  color: #94a3b8;
  font-size: 0.82rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.search-trigger-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(0, 240, 255, 0.4);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.15);
}

.search-kbd {
  font-family: monospace;
  font-size: 0.7rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 1px 6px;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
}

/* Mobile Hamburger Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--bg-dark-border-light);
  gap: 5px;
}

.hamburger-line {
  display: block;
  width: 20px;
  height: 2px;
  background-color: #f8fafc;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
  border-radius: 2px;
}

.mobile-menu-btn.active .line-1 {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.active .line-2 {
  opacity: 0;
}

.mobile-menu-btn.active .line-3 {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Drawer */
.mobile-nav-drawer {
  display: none;
  position: fixed;
  top: calc(var(--header-height));
  left: 0;
  width: 100%;
  height: calc(100vh - var(--header-height));
  background-color: rgba(7, 9, 14, 0.98);
  backdrop-filter: blur(20px);
  z-index: 850;
  border-top: 1px solid var(--bg-dark-border-light);
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity var(--transition-normal), transform var(--transition-normal);
  pointer-events: none;
}

.mobile-nav-drawer.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mobile-drawer-inner {
  padding: 24px 20px 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mobile-search-box {
  display: flex;
  gap: 8px;
}

.mobile-search-box input {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--bg-dark-border);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.9rem;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav-link {
  font-family: var(--font-editorial);
  font-size: 1.15rem;
  font-weight: 700;
  padding: 12px 14px;
  color: #cbd5e1;
  border-radius: var(--radius-sm);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.mobile-nav-link.active, .mobile-nav-link:hover {
  color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.05);
}

.mobile-drawer-footer {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-meta {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-dark-muted);
}

@media (max-width: 980px) {
  .desktop-nav {
    display: none;
  }
  .subscribe-btn {
    display: none;
  }
  .search-label, .search-kbd {
    display: none;
  }
  .search-trigger-btn {
    padding: 8px;
  }
  .mobile-menu-btn {
    display: flex;
  }
  .mobile-nav-drawer {
    display: block;
  }
}

/* --------------------------------------------------
   5. BUTTONS, BADGES & ICONS
-------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-editorial);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn-sm {
  padding: 7px 14px;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 0.95rem;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--accent-cyan);
  color: #07090e;
  border: 1px solid var(--accent-cyan);
  box-shadow: 0 2px 10px rgba(0, 240, 255, 0.25);
}

.btn-primary:hover {
  background: #22f3ff;
  box-shadow: 0 4px 18px rgba(0, 240, 255, 0.45);
  transform: translateY(-1px);
}

.btn-accent {
  background: rgba(0, 240, 255, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 240, 255, 0.3);
}

.btn-accent:hover {
  background: var(--accent-cyan);
  color: #07090e;
}

.btn-outline {
  background: transparent;
  color: #f8fafc;
  border: 1px solid var(--bg-dark-border);
}

.btn-outline:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.05);
}

.btn-outline-dark {
  background: transparent;
  color: var(--text-light-primary);
  border: 1.5px solid #0f172a;
}

.btn-outline-dark:hover {
  background: #0f172a;
  color: #ffffff;
}

.btn-outline-white {
  background: transparent;
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.btn-outline-white:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

/* Category Badges */
.category-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-family: var(--font-editorial);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-xs);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(7, 9, 14, 0.75);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  width: fit-content;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
}

.badge-accent {
  color: var(--accent-cyan);
  border-color: rgba(0, 240, 255, 0.35);
}

.badge-ai {
  color: #00f0ff;
  border-color: rgba(0, 240, 255, 0.3);
}

.badge-mobile {
  color: #60a5fa;
  border-color: rgba(96, 165, 250, 0.3);
}

.badge-computers {
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.3);
}

.badge-gaming {
  color: #f472b6;
  border-color: rgba(244, 114, 182, 0.3);
}

.badge-gadgets {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.3);
}

.badge-software {
  color: #a78bfa;
  border-color: rgba(167, 139, 250, 0.3);
}

.badge-emerging {
  color: #22d3ee;
  border-color: rgba(34, 211, 238, 0.3);
}

.badge-security {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.3);
}

/* Editorial Eyebrow Header Component */
.editorial-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-editorial);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 8px;
}

.eyebrow-line {
  display: inline-block;
  width: 24px;
  height: 2px;
  background-color: var(--accent-cyan);
}

/* Icons */
.icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.icon-xs {
  width: 14px;
  height: 14px;
}

.icon-sm {
  width: 16px;
  height: 16px;
}

/* Bookmark Buttons */
.bookmark-btn, .bookmark-inline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-xs);
  background: rgba(7, 9, 14, 0.7);
  backdrop-filter: blur(8px);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all var(--transition-fast);
}

.bookmark-btn svg, .bookmark-inline-btn svg {
  width: 16px;
  height: 16px;
  transition: fill var(--transition-fast), color var(--transition-fast);
}

.bookmark-btn:hover, .bookmark-inline-btn:hover {
  color: var(--accent-cyan);
  border-color: rgba(0, 240, 255, 0.4);
}

.bookmark-btn.saved, .bookmark-inline-btn.saved {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

.bookmark-btn.saved svg, .bookmark-inline-btn.saved svg {
  fill: var(--accent-cyan);
}

/* --------------------------------------------------
   6. SECTION HEADERS & COMMON LAYOUT
-------------------------------------------------- */
.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
  gap: 24px;
}

.section-header-centered {
  text-align: center;
  margin-bottom: 40px;
}

.section-headline {
  font-family: var(--font-editorial);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-dark-primary);
  margin-bottom: 8px;
}

.section-subheadline {
  font-size: 1rem;
  color: var(--text-dark-secondary);
  line-height: 1.5;
}

.section-footer-cta {
  margin-top: 48px;
  display: flex;
  justify-content: center;
}

/* Article Metas */
.article-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-dark-muted);
  margin-bottom: 10px;
  font-weight: 500;
}

.meta-separator {
  opacity: 0.4;
}

.meta-date {
  color: inherit;
}

.meta-readtime {
  color: inherit;
}

.meta-tag {
  color: var(--accent-cyan);
  font-weight: 600;
}

/* --------------------------------------------------
   7. SECTION 2: HERO / FEATURED NEWS
-------------------------------------------------- */
.section-hero {
  padding: 40px 0 60px;
  background-color: var(--bg-dark-base);
  background-image: 
    radial-gradient(ellipse 60% 40% at 50% -10%, rgba(0, 240, 255, 0.08), transparent 70%),
    linear-gradient(to bottom, #07090e 0%, #090d16 100%);
  border-bottom: 1px solid var(--bg-dark-border-light);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 28px;
  align-items: stretch;
}

/* Hero Primary Card (Left) */
.hero-primary-card {
  background-color: var(--bg-dark-surface);
  border: 1px solid var(--bg-dark-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-dark-card);
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.hero-primary-card:hover {
  border-color: rgba(0, 240, 255, 0.3);
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.6), var(--shadow-glow);
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 380px;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.hero-primary-card:hover .hero-img {
  transform: scale(1.03);
}

.hero-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 9, 14, 0.1) 0%, rgba(7, 9, 14, 0.8) 100%);
}

.hero-image-wrapper .category-badge {
  position: absolute;
  bottom: 16px;
  left: 20px;
  z-index: 2;
}

.hero-image-wrapper .bookmark-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
}

.hero-primary-body {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.hero-primary-headline {
  font-family: var(--font-editorial);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 14px;
}

.hero-primary-headline a:hover {
  color: var(--accent-cyan);
}

.hero-primary-excerpt {
  font-size: 1rem;
  color: var(--text-dark-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
  flex: 1;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--bg-dark-border-light);
}

.hero-byline {
  font-size: 0.78rem;
  color: var(--text-dark-muted);
}

/* Secondary Stacked Column (Right) */
.hero-secondary-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-secondary-card {
  background-color: var(--bg-dark-surface);
  border: 1px solid var(--bg-dark-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 1;
  transition: all var(--transition-normal);
}

.hero-secondary-card:hover {
  border-color: rgba(0, 240, 255, 0.25);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px -6px rgba(0, 0, 0, 0.5);
}

.secondary-card-img-wrap {
  position: relative;
  height: 170px;
  overflow: hidden;
}

.secondary-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.hero-secondary-card:hover .secondary-card-img {
  transform: scale(1.04);
}

.secondary-card-img-wrap .category-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
}

.secondary-card-content {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.secondary-card-headline {
  font-family: var(--font-editorial);
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
  color: #ffffff;
}

.secondary-card-headline a:hover {
  color: var(--accent-cyan);
}

.secondary-card-excerpt {
  font-size: 0.85rem;
  color: var(--text-dark-secondary);
  line-height: 1.5;
  margin-bottom: 14px;
  flex: 1;
}

.secondary-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-link {
  font-family: var(--font-editorial);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-cyan);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card-link:hover {
  text-decoration: underline;
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-image-wrapper {
    height: 300px;
  }
  .hero-primary-headline {
    font-size: 1.6rem;
  }
}

/* --------------------------------------------------
   8. SECTION 3: LATEST TECH NEWS (Light Editorial)
-------------------------------------------------- */
.section-latest-news {
  padding: 72px 0 80px;
  background-color: var(--bg-light-base);
  color: var(--text-light-primary);
  border-bottom: 1px solid var(--bg-light-border);
}

.section-latest-news .section-headline {
  color: var(--text-light-primary);
}

.section-latest-news .section-subheadline {
  color: var(--text-light-secondary);
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-editorial);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 12px;
  background: #e2e8f0;
  border-radius: var(--radius-full);
  color: #334155;
}

.status-indicator::before {
  content: '';
  width: 6px;
  height: 6px;
  background-color: #10b981;
  border-radius: 50%;
}

/* 6-Article Grid */
.news-grid-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.news-card {
  background: var(--bg-light-card);
  border: 1px solid var(--bg-light-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.news-card:hover {
  transform: translateY(-4px);
  border-color: #94a3b8;
  box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.08);
}

.news-card-media {
  position: relative;
  height: 200px;
  overflow: hidden;
  background-color: #e2e8f0;
}

.news-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.news-card:hover .news-card-img {
  transform: scale(1.05);
}

.news-card-media .category-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.news-card-body {
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.section-latest-news .article-meta {
  color: var(--text-light-muted);
}

.news-card-title {
  font-family: var(--font-editorial);
  font-size: 1.22rem;
  font-weight: 700;
  line-height: 1.32;
  color: var(--text-light-primary);
  margin-bottom: 10px;
}

.news-card-title a {
  color: inherit;
}

.news-card-title a:hover {
  color: var(--accent-blue);
}

.news-card-excerpt {
  font-size: 0.88rem;
  color: var(--text-light-secondary);
  line-height: 1.55;
  margin-bottom: 18px;
  flex: 1;
}

.news-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--bg-light-border);
}

.read-more-link {
  font-family: var(--font-editorial);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.read-more-link:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.bookmark-inline-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #64748b;
  width: 30px;
  height: 30px;
}

.bookmark-inline-btn:hover {
  color: var(--accent-blue);
  border-color: var(--accent-blue);
}

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

@media (max-width: 640px) {
  .news-grid-6 {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------
   9. SECTION 4: TECHNOLOGY CATEGORIES
-------------------------------------------------- */
.section-categories {
  padding: 80px 0;
  background-color: var(--bg-dark-base);
  border-bottom: 1px solid var(--bg-dark-border-light);
}

.categories-grid-7 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.category-card-wide {
  grid-column: span 3;
}

.category-card {
  position: relative;
  height: 220px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--bg-dark-border);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  text-decoration: none;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 240, 255, 0.4);
  box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 240, 255, 0.15);
}

.category-bg-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform var(--transition-smooth);
}

.category-card:hover .category-bg-image {
  transform: scale(1.06);
}

.category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 9, 14, 0.4) 0%, rgba(7, 9, 14, 0.92) 100%);
}

.category-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
}

.category-icon-box {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid rgba(0, 240, 255, 0.25);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.category-icon-box svg {
  width: 20px;
  height: 20px;
}

.category-name {
  font-family: var(--font-editorial);
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.category-desc {
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.4;
  margin-bottom: 10px;
}

.category-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-editorial);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-cyan);
  opacity: 0.9;
  transition: transform var(--transition-fast);
}

.category-card:hover .category-action {
  transform: translateX(4px);
  color: #ffffff;
}

@media (max-width: 900px) {
  .categories-grid-7 {
    grid-template-columns: repeat(2, 1fr);
  }
  .category-card-wide {
    grid-column: span 2;
  }
}

@media (max-width: 600px) {
  .categories-grid-7 {
    grid-template-columns: 1fr;
  }
  .category-card-wide {
    grid-column: span 1;
  }
  .category-card {
    height: 190px;
  }
}

/* --------------------------------------------------
   10. SECTION 5: LATEST TECH RELEASES (Dark Preview)
-------------------------------------------------- */
.section-releases {
  padding: 80px 0;
  background-color: #05070c;
  background-image: radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.06), transparent 50%);
  border-bottom: 1px solid var(--bg-dark-border-light);
}

.release-badge-tag {
  font-family: var(--font-editorial);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 240, 255, 0.25);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(0, 240, 255, 0.05);
}

.releases-grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.release-card {
  background: var(--bg-dark-surface);
  border: 1px solid var(--bg-dark-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.release-card:hover {
  border-color: rgba(0, 240, 255, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.6);
}

.release-card-media {
  position: relative;
  height: 230px;
  overflow: hidden;
}

.release-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.release-card:hover .release-card-img {
  transform: scale(1.04);
}

.release-tag {
  position: absolute;
  bottom: 14px;
  left: 16px;
  z-index: 2;
  font-family: var(--font-editorial);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  background: rgba(7, 9, 14, 0.85);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 240, 255, 0.3);
}

.release-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.release-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-dark-muted);
  margin-bottom: 12px;
}

.release-status {
  color: #38bdf8;
  font-weight: 600;
}

.release-headline {
  font-family: var(--font-editorial);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
  color: #ffffff;
  margin-bottom: 10px;
}

.release-headline a:hover {
  color: var(--accent-cyan);
}

.release-summary {
  font-size: 0.9rem;
  color: var(--text-dark-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.release-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--bg-dark-border-light);
}

.card-link-accent {
  font-family: var(--font-editorial);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-cyan);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card-link-accent:hover {
  text-decoration: underline;
}

.release-readtime {
  font-size: 0.75rem;
  color: var(--text-dark-muted);
}

@media (max-width: 850px) {
  .releases-grid-4 {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------
   11. SECTION 6: FEATURED STORY / EDITOR'S PICK
-------------------------------------------------- */
.section-editors-pick {
  padding: 90px 0;
  background-color: var(--bg-dark-base);
  border-bottom: 1px solid var(--bg-dark-border-light);
}

.magazine-split-frame {
  background: linear-gradient(135deg, #0b0f19 0%, #111726 100%);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  box-shadow: var(--shadow-dark-card), 0 0 35px rgba(0, 240, 255, 0.08);
}

.magazine-image-column {
  position: relative;
  overflow: hidden;
}

.magazine-img-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 480px;
}

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

.magazine-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 9, 14, 0.1) 0%, rgba(11, 15, 25, 0.8) 100%);
}

.magazine-img-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(7, 9, 14, 0.85);
  border: 1px solid var(--accent-cyan);
  padding: 6px 14px;
  border-radius: var(--radius-xs);
  font-family: var(--font-editorial);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
}

.badge-edition {
  color: #94a3b8;
  font-weight: 600;
}

.magazine-editorial-column {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.magazine-headline {
  font-family: var(--font-editorial);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 18px;
}

.magazine-lead-paragraph {
  font-size: 1.05rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 24px;
}

.editorial-quote-box {
  background: rgba(0, 240, 255, 0.04);
  border-left: 3px solid var(--accent-cyan);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 28px;
}

.quote-text {
  font-size: 0.95rem;
  font-style: italic;
  color: #e2e8f0;
  line-height: 1.5;
  margin-bottom: 6px;
}

.quote-cite {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-cyan);
  letter-spacing: 0.04em;
}

.magazine-meta-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--bg-dark-border-light);
  border-bottom: 1px solid var(--bg-dark-border-light);
  margin-bottom: 30px;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.meta-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  font-weight: 700;
}

.meta-value {
  font-family: var(--font-editorial);
  font-size: 0.88rem;
  font-weight: 700;
  color: #f1f5f9;
}

.magazine-action-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 980px) {
  .magazine-split-frame {
    grid-template-columns: 1fr;
  }
  .magazine-img-wrapper {
    min-height: 280px;
  }
  .magazine-editorial-column {
    padding: 32px 24px;
  }
  .magazine-headline {
    font-size: 1.8rem;
  }
}

/* --------------------------------------------------
   12. SECTION 7: TRENDING / POPULAR STORIES
-------------------------------------------------- */
.section-trending {
  padding: 80px 0;
  background-color: var(--bg-light-base);
  color: var(--text-light-primary);
  border-bottom: 1px solid var(--bg-light-border);
}

.section-trending .section-headline {
  color: var(--text-light-primary);
}

.section-trending .section-subheadline {
  color: var(--text-light-secondary);
}

.trending-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-editorial);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 14px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-full);
  color: #334155;
}

.trending-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #ef4444;
  animation: pulse-dot-anim 1.5s infinite;
}

.trending-list-wrapper {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.trending-item {
  background: var(--bg-light-surface);
  border: 1px solid var(--bg-light-border);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  display: grid;
  grid-template-columns: 70px 100px 1fr 48px;
  align-items: center;
  gap: 20px;
  transition: all var(--transition-normal);
}

.trending-item:hover {
  transform: translateX(6px);
  border-color: #94a3b8;
  box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.06);
}

.trending-num {
  font-family: var(--font-editorial);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  color: #cbd5e1;
  letter-spacing: -0.04em;
  transition: color var(--transition-fast);
}

.trending-item:hover .trending-num {
  color: var(--accent-blue);
}

.trending-thumb-wrap {
  width: 100px;
  height: 68px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #e2e8f0;
}

.trending-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-fast);
}

.trending-item:hover .trending-thumb {
  transform: scale(1.06);
}

.trending-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.trending-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-light-muted);
}

.trending-cat {
  font-family: var(--font-editorial);
  font-weight: 700;
  color: var(--accent-blue);
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
}

.trending-title {
  font-family: var(--font-editorial);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-light-primary);
}

.trending-title a:hover {
  color: var(--accent-blue);
}

.trending-snippet {
  font-size: 0.85rem;
  color: var(--text-light-secondary);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.trending-action {
  display: flex;
  justify-content: flex-end;
}

.trending-read-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.trending-read-btn svg {
  width: 20px;
  height: 20px;
}

.trending-item:hover .trending-read-btn {
  background: var(--accent-blue);
  color: #ffffff;
  border-color: var(--accent-blue);
  transform: translateX(3px);
}

@media (max-width: 850px) {
  .trending-item {
    grid-template-columns: 50px 80px 1fr;
    padding: 14px 16px;
  }
  .trending-action {
    display: none;
  }
  .trending-num {
    font-size: 2rem;
  }
  .trending-title {
    font-size: 1rem;
  }
}

@media (max-width: 550px) {
  .trending-item {
    grid-template-columns: 40px 1fr;
    gap: 12px;
  }
  .trending-thumb-wrap {
    display: none;
  }
}

/* --------------------------------------------------
   13. SECTION 8: NEWSLETTER CTA
-------------------------------------------------- */
.section-newsletter {
  padding: 80px 0;
  background-color: var(--bg-dark-base);
  border-bottom: 1px solid var(--bg-dark-border-light);
}

.newsletter-card {
  position: relative;
  background: linear-gradient(135deg, #090d16 0%, #0d1a2d 50%, #070a12 100%);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: var(--radius-xl);
  overflow: hidden;
  padding: 60px 40px;
  text-align: center;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
}

.newsletter-glow-orb {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 1;
}

.glow-1 {
  background: rgba(0, 240, 255, 0.12);
  top: -150px;
  left: 20%;
}

.glow-2 {
  background: rgba(99, 102, 241, 0.15);
  bottom: -150px;
  right: 20%;
}

.newsletter-inner {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin: 0 auto;
}

.newsletter-headline {
  font-family: var(--font-editorial);
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 14px;
}

.newsletter-copy {
  font-size: 1.05rem;
  color: #94a3b8;
  line-height: 1.55;
  margin-bottom: 32px;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.form-group-inline {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.input-with-icon {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 16px;
  width: 18px;
  height: 18px;
  color: #64748b;
  pointer-events: none;
}

.newsletter-input {
  width: 100%;
  background: rgba(11, 15, 23, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-sm);
  padding: 14px 16px 14px 46px;
  color: #ffffff;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.25);
  background: rgba(11, 15, 23, 0.95);
}

.newsletter-privacy {
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.5;
}

.newsletter-perks {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.perk-pill {
  font-family: var(--font-editorial);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  color: #cbd5e1;
}

@media (max-width: 640px) {
  .newsletter-card {
    padding: 40px 20px;
  }
  .newsletter-headline {
    font-size: 1.8rem;
  }
  .form-group-inline {
    flex-direction: column;
  }
}

/* --------------------------------------------------
   14. SECTION 9: MORE STORIES / ARCHIVE DISCOVERY
-------------------------------------------------- */
.section-more-stories {
  padding: 80px 0;
  background-color: var(--bg-dark-base);
  border-bottom: 1px solid var(--bg-dark-border-light);
}

.topic-filter-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--bg-dark-border-light);
}

.topic-tab {
  font-family: var(--font-editorial);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-xs);
  color: #94a3b8;
  transition: all var(--transition-fast);
}

.topic-tab:hover {
  color: #ffffff;
}

.topic-tab.active {
  background: var(--accent-cyan);
  color: #07090e;
}

.mixed-editorial-layout {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 28px;
  align-items: start;
}

/* Medium Feature Card */
.medium-feature-card {
  background: var(--bg-dark-surface);
  border: 1px solid var(--bg-dark-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.medium-feature-card:hover {
  border-color: rgba(0, 240, 255, 0.35);
  box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.5);
}

.medium-feature-img-wrap {
  position: relative;
  height: 280px;
  overflow: hidden;
}

.medium-feature-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.medium-feature-card:hover .medium-feature-img {
  transform: scale(1.03);
}

.medium-feature-img-wrap .category-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
}

.medium-feature-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.medium-feature-headline {
  font-family: var(--font-editorial);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.28;
  color: #ffffff;
  margin-bottom: 12px;
}

.medium-feature-headline a:hover {
  color: var(--accent-cyan);
}

.medium-feature-excerpt {
  font-size: 0.92rem;
  color: var(--text-dark-secondary);
  line-height: 1.6;
  margin-bottom: 18px;
}

/* 4 Smaller Article Cards */
.sub-articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.sub-article-card {
  background: var(--bg-dark-surface);
  border: 1px solid var(--bg-dark-border);
  border-radius: var(--radius-md);
  padding: 14px;
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 16px;
  align-items: center;
  transition: all var(--transition-fast);
}

.sub-article-card:hover {
  border-color: rgba(0, 240, 255, 0.3);
  transform: translateX(4px);
}

.sub-card-media {
  width: 90px;
  height: 75px;
  border-radius: var(--radius-xs);
  overflow: hidden;
  background: #1e293b;
}

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

.sub-card-content {
  display: flex;
  flex-direction: column;
}

.sub-cat-badge {
  font-family: var(--font-editorial);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent-cyan);
  text-transform: uppercase;
}

.sub-card-title {
  font-family: var(--font-editorial);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.3;
  color: #ffffff;
  margin-bottom: 4px;
}

.sub-card-title a:hover {
  color: var(--accent-cyan);
}

.sub-card-desc {
  font-size: 0.78rem;
  color: var(--text-dark-secondary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Additional Dynamic Grid */
.additional-stories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 24px;
  animation: fadeIn 0.4s ease forwards;
}

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

@media (max-width: 980px) {
  .mixed-editorial-layout {
    grid-template-columns: 1fr;
  }
  .topic-filter-tabs {
    display: none;
  }
  .additional-stories-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------
   15. SECTION 10: ABOUT TECH PEG
-------------------------------------------------- */
.section-about {
  padding: 80px 0;
  background-color: #06080e;
  border-bottom: 1px solid var(--bg-dark-border-light);
}

.about-card-wrapper {
  background: var(--bg-dark-surface);
  border: 1px solid var(--bg-dark-border);
  border-radius: var(--radius-lg);
  padding: 50px 44px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-headline {
  font-family: var(--font-editorial);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.18;
  color: #ffffff;
  margin-bottom: 16px;
}

.about-body {
  font-size: 1rem;
  color: #cbd5e1;
  line-height: 1.65;
  margin-bottom: 14px;
}

.about-cta-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.domain-tag {
  font-family: monospace;
  font-size: 0.8rem;
  color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.08);
  padding: 6px 12px;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(0, 240, 255, 0.2);
}

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

.pillar-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--bg-dark-border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  position: relative;
  transition: all var(--transition-fast);
}

.pillar-card:hover {
  border-color: rgba(0, 240, 255, 0.3);
  background: rgba(0, 240, 255, 0.02);
}

.pillar-num {
  font-family: var(--font-editorial);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--accent-cyan);
  margin-bottom: 4px;
}

.pillar-title {
  font-family: var(--font-editorial);
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.pillar-desc {
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .about-card-wrapper {
    padding: 32px 24px;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* --------------------------------------------------
   16. SECTION 11: FINAL CTA
-------------------------------------------------- */
.section-final-cta {
  padding: 70px 0 90px;
  background-color: var(--bg-dark-base);
  border-bottom: 1px solid var(--bg-dark-border-light);
}

.final-cta-box {
  position: relative;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #0f1627 0%, #151f35 50%, #0c1220 100%);
  border: 1px solid rgba(0, 240, 255, 0.3);
  padding: 60px 40px;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), var(--shadow-glow);
}

.cta-backdrop-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 250px;
  background: radial-gradient(ellipse, rgba(0, 240, 255, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.final-cta-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}

.final-badge {
  display: inline-block;
  font-family: var(--font-editorial);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--accent-cyan);
  margin-bottom: 12px;
}

.final-headline {
  font-family: var(--font-editorial);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 14px;
}

.final-subheadline {
  font-size: 1.05rem;
  color: #cbd5e1;
  line-height: 1.55;
  margin-bottom: 32px;
}

.final-btn-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .final-cta-box {
    padding: 40px 20px;
  }
  .final-headline {
    font-size: 1.85rem;
  }
}

/* --------------------------------------------------
   17. SECTION 12: FOOTER
-------------------------------------------------- */
.site-footer {
  background-color: #04060a;
  border-top: 1px solid var(--bg-dark-border-light);
  padding: 70px 0 32px;
  color: #94a3b8;
  font-size: 0.88rem;
}

.footer-columns-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.3fr;
  gap: 36px;
  margin-bottom: 50px;
}

.brand-wordmark-footer {
  margin-bottom: 16px;
}

.footer-description {
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 18px;
}

.footer-domain-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 12px;
  border-radius: var(--radius-xs);
  font-size: 0.8rem;
  color: #cbd5e1;
  margin-bottom: 10px;
}

.footer-domain-badge strong {
  color: var(--accent-cyan);
}

.footer-client-tag {
  font-size: 0.75rem;
  color: #64748b;
}

.footer-col-title {
  font-family: var(--font-editorial);
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}

.footer-link-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link-list a {
  color: #94a3b8;
  font-size: 0.85rem;
  transition: color var(--transition-fast);
}

.footer-link-list a:hover {
  color: var(--accent-cyan);
  padding-left: 2px;
}

/* Follow & Compact signup */
.footer-follow-text {
  font-size: 0.82rem;
  color: #94a3b8;
  margin-bottom: 12px;
}

.social-icon-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.social-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--bg-dark-border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  transition: all var(--transition-fast);
}

.social-icon-btn svg {
  width: 16px;
  height: 16px;
}

.social-icon-btn:hover {
  background: var(--accent-cyan);
  color: #07090e;
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
}

.footer-compact-newsletter {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--bg-dark-border-light);
  border-radius: var(--radius-sm);
  padding: 12px;
}

.compact-news-title {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 8px;
}

.compact-input-group {
  display: flex;
  gap: 6px;
}

.compact-email-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xs);
  padding: 6px 10px;
  font-size: 0.8rem;
  color: #fff;
}

.btn-compact {
  padding: 6px 12px;
}

.btn-compact svg {
  width: 14px;
  height: 14px;
}

/* Footer Bottom Row */
.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.78rem;
  color: #64748b;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-legal-links a {
  color: #64748b;
}

.footer-legal-links a:hover {
  color: #cbd5e1;
}

.footer-legal-sep {
  opacity: 0.3;
}

@media (max-width: 1024px) {
  .footer-columns-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-col-brand {
    grid-column: span 3;
  }
}

@media (max-width: 640px) {
  .footer-columns-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-col-brand {
    grid-column: span 1;
  }
  .footer-bottom-row {
    flex-direction: column;
    text-align: center;
  }
}

/* --------------------------------------------------
   18. SEARCH MODAL / OVERLAY
-------------------------------------------------- */
.search-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(4, 6, 10, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1100;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 20px 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.search-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.search-modal-container {
  width: 100%;
  max-width: 720px;
  background: var(--bg-dark-surface);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), var(--shadow-glow);
  transform: translateY(-20px) scale(0.98);
  transition: transform var(--transition-normal);
  display: flex;
  flex-direction: column;
  max-height: 80vh;
}

.search-overlay.active .search-modal-container {
  transform: translateY(0) scale(1);
}

.search-modal-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--bg-dark-border);
  background: rgba(255, 255, 255, 0.02);
}

.search-input-wrapper {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

.search-icon-inside {
  position: absolute;
  left: 12px;
  width: 20px;
  height: 20px;
  color: var(--accent-cyan);
}

.search-main-input {
  width: 100%;
  background: transparent;
  border: none;
  padding: 10px 36px 10px 44px;
  font-family: var(--font-editorial);
  font-size: 1.15rem;
  color: #ffffff;
}

.search-main-input:focus {
  outline: none;
}

.search-clear-btn {
  position: absolute;
  right: 12px;
  font-size: 1.3rem;
  color: #94a3b8;
  line-height: 1;
}

.search-clear-btn:hover {
  color: #ffffff;
}

.search-close-btn {
  font-family: monospace;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-xs);
  color: #cbd5e1;
}

.search-suggestions-bar {
  padding: 12px 20px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--bg-dark-border-light);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.suggestions-label {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 600;
}

.search-tag-chip {
  font-family: var(--font-editorial);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  transition: all var(--transition-fast);
}

.search-tag-chip:hover {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.search-results-area {
  padding: 20px;
  overflow-y: auto;
  max-height: 480px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.search-placeholder-state {
  text-align: center;
  padding: 40px 20px;
  color: #64748b;
}

.search-placeholder-state svg {
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
  opacity: 0.5;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--bg-dark-border-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.search-result-item:hover {
  background: rgba(0, 240, 255, 0.06);
  border-color: rgba(0, 240, 255, 0.3);
  transform: translateX(4px);
}

.search-res-thumb {
  width: 60px;
  height: 44px;
  border-radius: var(--radius-xs);
  object-fit: cover;
  flex-shrink: 0;
}

.search-res-content {
  flex: 1;
}

.search-res-cat {
  font-family: var(--font-editorial);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent-cyan);
  text-transform: uppercase;
}

.search-res-title {
  font-family: var(--font-editorial);
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
}

/* --------------------------------------------------
   19. ARTICLE READER MODAL (Quick View)
-------------------------------------------------- */
.article-reader-modal {
  position: fixed;
  inset: 0;
  background-color: rgba(4, 6, 10, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 1200;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.article-reader-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.reader-modal-scroller {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  padding: 40px 20px 80px;
  display: flex;
  justify-content: center;
}

.reader-modal-container {
  width: 100%;
  max-width: 860px;
  background: #0b0f19;
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9);
  overflow: hidden;
  position: relative;
  height: fit-content;
}

.reader-header {
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--bg-dark-border);
  background: rgba(255, 255, 255, 0.02);
}

.reader-meta-group {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: #94a3b8;
}

.reader-close-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  transition: all var(--transition-fast);
}

.reader-close-btn:hover {
  background: #ef4444;
  color: #fff;
  border-color: #ef4444;
}

.reader-content-body {
  padding: 36px 36px 48px;
}

.reader-title {
  font-family: var(--font-editorial);
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 16px;
}

.reader-deck {
  font-size: 1.15rem;
  color: #cbd5e1;
  line-height: 1.55;
  margin-bottom: 24px;
}

.reader-author-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-top: 1px solid var(--bg-dark-border-light);
  border-bottom: 1px solid var(--bg-dark-border-light);
  margin-bottom: 28px;
  gap: 16px;
  flex-wrap: wrap;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  color: #07090e;
  font-family: var(--font-editorial);
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-weight: 700;
  color: #ffffff;
  font-size: 0.9rem;
}

.author-role {
  font-size: 0.75rem;
  color: #64748b;
}

.reader-actions-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.reader-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--bg-dark-border-light);
  font-size: 0.8rem;
  font-weight: 600;
  color: #cbd5e1;
}

.reader-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.reader-featured-media {
  margin-bottom: 30px;
}

.reader-hero-img {
  width: 100%;
  max-height: 420px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 1px solid var(--bg-dark-border);
}

.reader-caption {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 8px;
  font-style: italic;
}

.reader-prose {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #d1d5db;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.reader-prose p {
  margin-bottom: 0;
}

.reader-prose h3 {
  font-family: var(--font-editorial);
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  margin-top: 14px;
}

.reader-prose blockquote {
  border-left: 3px solid var(--accent-cyan);
  background: rgba(0, 240, 255, 0.04);
  padding: 16px 20px;
  font-style: italic;
  color: #e2e8f0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.reader-footer-box {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--bg-dark-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.reader-footer-note {
  font-size: 0.78rem;
  color: #64748b;
  max-width: 520px;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .reader-content-body {
    padding: 24px 20px;
  }
  .reader-title {
    font-size: 1.6rem;
  }
}

/* --------------------------------------------------
   20. LEGAL MODAL & TOAST NOTIFICATION HUB
-------------------------------------------------- */
.legal-modal {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 10, 0.85);
  backdrop-filter: blur(12px);
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.legal-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.legal-modal-card {
  width: 100%;
  max-width: 600px;
  background: #0f1422;
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.legal-title {
  font-family: var(--font-editorial);
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
}

.legal-close-btn {
  font-size: 1.4rem;
  color: #94a3b8;
  line-height: 1;
}

.legal-close-btn:hover {
  color: #fff;
}

.legal-body {
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 24px;
}

.legal-footer {
  display: flex;
  justify-content: flex-end;
}

/* Toast Hub */
.toast-hub {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1500;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: #0b0f19;
  border: 1px solid rgba(0, 240, 255, 0.4);
  color: #ffffff;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), 0 0 15px rgba(0, 240, 255, 0.15);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.toast.toast-out {
  animation: toastOut 0.3s ease forwards;
}

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

.toast-icon {
  color: var(--accent-cyan);
}

/* Back To Top Button */
.back-to-top-btn {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(11, 15, 23, 0.9);
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all var(--transition-fast);
}

.back-to-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top-btn:hover {
  background: var(--accent-cyan);
  color: #07090e;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 240, 255, 0.4);
}

.back-to-top-btn svg {
  width: 20px;
  height: 20px;
}

/* Spinner */
.btn-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
