/* ═══════════════════════════════════════
   SYNAPSE SPPU PYQ — Public Stylesheet
   ═══════════════════════════════════════ */

:root {
  --bg: #030712;
  --surface: #0b0f19;
  --surface2: #111827;
  --border: #1f2937;
  --border-light: #374151;
  --accent: #8b5cf6;
  --accent-secondary: #ec4899;
  --accent-hover: #7c3aed;
  --accent-glow: rgba(139, 92, 246, 0.2);
  --text: #f9fafb;
  --text-secondary: #d1d5db;
  --muted: #9ca3af;
  --success: #10b981;
  --danger: #ef4444;
  --card-hover: #1e1b4b;
  --nav-bg: rgba(3, 7, 18, 0.85);
  --mobile-nav-bg: rgba(3, 7, 18, 0.98);
}

[data-theme="light"] {
  --bg: #eef0f5;
  --surface: #ffffff;
  --surface2: #e8eaf2;
  --border: #c8ccd8;
  --border-light: #d8dce8;
  --accent: #6d28d9;
  --accent-secondary: #db2777;
  --accent-hover: #5b21b6;
  --accent-glow: rgba(109, 40, 217, 0.18);
  --text: #0d1117;
  --text-secondary: #374151;
  --muted: #6b7280;
  --card-hover: #f5f3ff;
  --nav-bg: rgba(238, 240, 245, 0.92);
  --mobile-nav-bg: rgba(238, 240, 245, 0.99);
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.07);
  --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.10), 0 3px 8px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.13), 0 8px 16px rgba(0, 0, 0, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
.nav-brand,
.sidebar-brand {
  font-family: 'Syne', sans-serif;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 2rem;
  background: rgba(10, 10, 15, 0.45);
  backdrop-filter: blur(24px) saturate(200%) brightness(0.9);
  -webkit-backdrop-filter: blur(24px) saturate(200%) brightness(0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.25);
}

[data-theme="light"] .nav {
  background: rgba(238, 240, 245, 0.75);
  backdrop-filter: blur(24px) saturate(160%) brightness(1.05);
  -webkit-backdrop-filter: blur(24px) saturate(160%) brightness(1.05);
  border-bottom: 1px solid rgba(200, 204, 216, 0.5);
  box-shadow: 0 1px 16px rgba(0, 0, 0, 0.08);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: .05em;
}

.nav-logo {
  color: var(--accent);
  font-size: 1.4rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: .9rem;
  transition: color .2s;
}

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

.btn-ghost {
  padding: .45rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: var(--text);
  font-size: .85rem;
  transition: .2s;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

[data-theme="light"] .btn-ghost {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.6);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent);
}

[data-theme="light"] .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.85);
  border-color: var(--accent);
}

/* ── HERO ── */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 1.5rem 4rem;
}

.hero-bg-grid::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(99, 102, 241, .12), transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.hero-badge {
  display: inline-block;
  padding: .4rem 1.2rem;
  background: rgba(99, 102, 241, 0.10);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border: 1px solid rgba(139, 92, 246, 0.30);
  border-radius: 100px;
  font-size: .75rem;
  font-weight: 600;
  color: #a5b4fc;
  margin-bottom: 1.5rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .hero-badge {
  background: rgba(109, 40, 217, 0.08);
  border-color: rgba(109, 40, 217, 0.22);
  color: var(--accent);
  box-shadow: 0 4px 16px rgba(109, 40, 217, 0.10);
}

.hero-badge:hover {
  background: rgba(99, 102, 241, 0.18);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.20);
}

.hero h1 {
  font-size: clamp(2rem, 7vw, 4.2rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.accent {
  color: var(--accent);
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

/* 2024 Pattern Notice */
.pattern-notice {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(245, 158, 11, 0.05);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 12px;
  padding: 0.7rem 1.4rem;
  font-size: 0.85rem;
  color: #fbbf24;
  margin-bottom: 2.5rem;
  max-width: 500px;
  text-align: left;
  line-height: 1.5;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 0.5s ease 0.3s both;
}

.pattern-notice strong {
  color: #f59e0b;
  font-weight: 700;
}

.pattern-notice-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.pattern-badge {
  display: inline-block;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  vertical-align: middle;
  margin-left: 0.5rem;
  text-transform: uppercase;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-card {
  animation: fadeInUp 0.4s ease-out both;
}

/* Skeleton Loading */
.skeleton {
  background: var(--surface2);
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

[data-theme="light"] .skeleton {
  background: #d1d5db;
}

.skeleton::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.15),
      transparent);
  animation: shimmer 1.5s infinite;
}

[data-theme="light"] .skeleton::after {
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.80),
      transparent);
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

.skeleton-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

.skeleton-text {
  height: 14px;
  margin-bottom: 8px;
  border-radius: 4px;
  width: 80%;
}

.skeleton-text.short {
  width: 50%;
}

.skeleton-btn {
  height: 32px;
  width: 80px;
  border-radius: 7px;
  margin-left: auto;
}

/* Search */
.search-wrap {
  display: flex;
  gap: .5rem;
  max-width: 540px;
  margin: 0 auto 3rem;
}

.search-wrap input {
  flex: 1;
  padding: 1rem 1.5rem;
  background: var(--surface);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] .search-wrap input {
  box-shadow: var(--shadow-md);
  border-color: var(--border);
  background: #ffffff;
}

.search-wrap input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-wrap input::placeholder {
  color: var(--muted);
}

.search-wrap button {
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  border: none;
  border-radius: 14px;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-shadow: 0 4px 15px var(--accent-glow);
}

.search-wrap button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

/* Stats */
.hero-stats {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.stat {
  text-align: center;
}

.stat-num {
  display: block;
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
}

.stat-label {
  font-size: .8rem;
  color: var(--muted);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.stat-div {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ── SECTIONS ── */
.section {
  padding: 5rem 0;
}

.section-header {
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: .4rem;
}

.section-header p {
  color: var(--text-secondary);
}

/* ── YEAR GRID ── */
.year-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.year-card {
  background: rgba(11, 15, 25, 0.6);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  cursor: pointer;
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .year-card {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-color: rgba(200, 204, 216, 0.6);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

[data-theme="light"] .year-card:hover {
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transform: translateY(-5px);
  border-color: var(--accent);
  background: rgba(245, 243, 255, 0.85);
}

.year-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0;
  transition: .25s;
}

.year-card:hover {
  background: rgba(30, 27, 75, 0.7);
  border-color: rgba(139, 92, 246, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(139, 92, 246, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.year-card:hover::before {
  opacity: 1;
}

.year-icon {
  font-family: 'Syne', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 1rem;
}

.year-label {
  font-family: 'Syne', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: .3rem;
}

.year-sub {
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.year-count {
  font-size: .82rem;
  color: var(--accent);
  font-weight: 500;
}

/* ── BROWSER PANEL ── */
.browser-section {
  background: rgba(11, 15, 25, 0.7);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .browser-section {
  background: rgba(232, 234, 242, 0.75);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-color: rgba(200, 204, 216, 0.5);
}

.browser-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.browser-header h2 {
  font-size: 1.6rem;
}

.back-btn {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-secondary);
  padding: .45rem 1rem;
  font-family: inherit;
  font-size: .88rem;
  cursor: pointer;
  transition: .2s;
}

.back-btn:hover {
  border-color: var(--accent);
  color: var(--text);
}

.step-hint {
  color: var(--muted);
  font-size: .88rem;
  margin-bottom: 1rem;
}

/* Tag grid for branches/subjects */
.tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}

.tag {
  padding: .55rem 1.2rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  cursor: pointer;
  font-size: .88rem;
  color: var(--text-secondary);
  transition: all .2s ease;
}

[data-theme="light"] .tag {
  background: rgba(255, 255, 255, 0.65);
  border-color: var(--border);
}

.tag:hover,
.tag.active {
  background: rgba(99, 102, 241, .18);
  backdrop-filter: blur(12px);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 2px 12px rgba(99, 102, 241, 0.15);
}

/* File listing */
.file-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.file-list-header input {
  padding: .5rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: .88rem;
  outline: none;
}

.file-list-header input:focus {
  border-color: var(--accent);
}

.file-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.file-card {
  background: rgba(11, 15, 25, 0.55);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 1.2rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: all .2s ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .file-card {
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border-color: rgba(200, 204, 216, 0.5);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.file-card:hover {
  border-color: rgba(139, 92, 246, 0.35);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transform: translateY(-1px);
}

[data-theme="light"] .file-card:hover {
  border-color: rgba(109, 40, 217, 0.3);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.85);
}

.file-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(99, 102, 241, .15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.file-info {
  flex: 1;
  min-width: 0;
}

.file-name {
  font-size: .9rem;
  font-weight: 500;
  margin-bottom: .2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-meta {
  font-size: .78rem;
  color: var(--muted);
}

.btn-download {
  padding: .4rem .9rem;
  background: var(--accent);
  border: none;
  border-radius: 7px;
  color: #fff;
  font-family: inherit;
  font-size: .82rem;
  cursor: pointer;
  transition: .2s;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
  display: inline-block;
}

.btn-download:hover {
  background: var(--accent-hover);
}

.file-actions {
  display: flex;
  gap: .5rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.btn-view {
  padding: .4rem .9rem;
  background: transparent;
  border: 1px solid var(--border-light);
  border-radius: 7px;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: .82rem;
  cursor: pointer;
  transition: .2s;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
}

.btn-view:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(99, 102, 241, .08);
}

/* ── ABOUT ── */
.about-section {
  background: var(--bg);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: center;
}

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.feature-list li {
  font-size: .95rem;
  color: var(--text-secondary);
}

.about-card {
  background: rgba(11, 15, 25, 0.6);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  min-width: 200px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

[data-theme="light"] .about-card {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-color: rgba(200, 204, 216, 0.55);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.about-card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.about-card-text {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  margin-bottom: .3rem;
}

.about-card-sub {
  font-size: .82rem;
  color: var(--muted);
}

/* ── FOOTER ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0 0;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.footer-brand {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  color: var(--accent);
}

.footer-top span {
  color: var(--muted);
  font-size: .88rem;
}

.footer-top a {
  color: var(--muted);
  font-size: .82rem;
}

.footer-top a:hover {
  color: var(--accent);
}

.footer-copyright {
  text-align: center;
  padding: .9rem 0;
  font-size: .8rem;
  color: var(--muted);
  letter-spacing: .02em;
}

/* ── EMPTY STATE ── */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--muted);
  font-size: .95rem;
}

.empty-state.small {
  padding: 2rem;
}

.empty-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

/* ── HAMBURGER MENU ── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  padding: 6px;
  transition: .2s;
}

.hamburger:hover {
  border-color: var(--accent);
}

.hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: .3s;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {

  /* Nav */
  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--mobile-nav-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem;
    gap: .6rem;
    z-index: 99;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
  }

  .nav-links.mobile-open {
    display: flex;
    animation: fadeInDown 0.25s ease-out;
  }

  @keyframes fadeInDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .nav-links a {
    padding: .85rem .75rem;
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
    color: var(--text);
    font-weight: 500;
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  .nav-links .btn-ghost {
    margin-top: .75rem;
    text-align: center;
  }

  #studentAuthNav {
    flex-direction: column;
    align-items: stretch;
  }

  /* Hero */
  .hero {
    padding: 7rem 1.2rem 3rem;
    min-height: auto;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-sub {
    font-size: 1.05rem;
    margin-bottom: 2rem;
  }

  .search-wrap {
    flex-direction: column;
    gap: .75rem;
    width: 100%;
  }

  .search-wrap input {
    width: 100%;
  }

  .search-wrap button {
    width: 100%;
    padding: .95rem;
  }

  /* Suggestions Dropdown should span full width of search input on mobile */
  .suggestions-dropdown {
    right: 0 !important;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    width: 100%;
    max-width: 440px;
    margin: 2rem auto 0;
  }

  .stat-div {
    display: none;
  }

  .stat-num {
    font-size: 1.6rem;
  }

  /* Year grid */
  .year-grid {
    grid-template-columns: 1fr 1fr;
    gap: .85rem;
  }

  .year-card {
    padding: 1.5rem 1.2rem;
  }

  .year-icon {
    font-size: 2rem;
  }

  .year-label {
    font-size: 1.1rem;
  }

  /* File grid */
  .file-grid {
    grid-template-columns: 1fr;
  }

  .file-card {
    padding: 1.2rem;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .file-actions {
    width: 100%;
    display: flex;
    gap: 0.6rem;
    margin-top: 0;
  }

  .btn-view,
  .btn-download {
    flex: 1;
    text-align: center;
    padding: .6rem;
    font-size: .85rem;
  }

  /* Tags / Browser */
  .tag-grid {
    gap: .5rem;
  }

  .tag {
    padding: .5rem 1.1rem;
    font-size: .85rem;
  }

  /* About */
  .about-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-card {
    display: block;
    max-width: 320px;
    width: 100%;
    margin: 0 auto;
  }

  .about-text h2 {
    font-size: 1.8rem;
  }

  /* Feedback */
  .feedback-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .feedback-text h2 {
    font-size: 1.8rem;
  }

  /* Premium */
  .premium-card {
    padding: 2rem 1.2rem;
  }

  .premium-header h2 {
    font-size: 1.8rem;
  }

  .premium-content-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  /* Sections */
  .section {
    padding: 3.5rem 0;
  }

  .section-header h2 {
    font-size: 1.6rem;
  }

  /* Modals */
  .modal {
    padding: 1.8rem;
  }

  /* General */
  .container {
    padding: 0 1.2rem;
  }

  .browser-header {
    flex-direction: column;
    align-items: flex-start;
    gap: .75rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .year-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    max-width: 340px;
  }

  .stat-num {
    font-size: 1.4rem;
  }

  .file-actions {
    flex-direction: row;
  }
}

/* ── LIGHT MODE OVERRIDES ── */
:root[data-theme="light"] {
  --bg: #ffffff;
  --surface: #f8fafc;
  --surface2: #f1f5f9;
  --border: #e2e8f0;
  --border-light: #cbd5e1;
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-glow: rgba(79, 70, 229, 0.1);
  --text: #0f172a;
  --text-secondary: #475569;
  --muted: #64748b;
  --card-hover: #f1f5f9;
  --nav-bg: rgba(255, 255, 255, 0.8);
  --mobile-nav-bg: rgba(255, 255, 255, 0.98);
}

[data-theme="light"] .nav {
  background: var(--nav-bg) !important;
}

[data-theme="light"] .nav-links {
  background: var(--mobile-nav-bg);
}

[data-theme="light"] body {
  background: var(--bg);
  color: var(--text);
}

.theme-toggle {
  padding: 0.45rem !important;
  border-radius: 50% !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  cursor: pointer;
}

/* ── SEARCH SUGGESTIONS ── */
.suggestions-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 100px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-top: 5px;
  max-height: 250px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  text-align: left;
}

.suggestion-item {
  padding: 0.75rem 1.2rem;
  cursor: pointer;
  color: var(--text);
  border-bottom: 1px solid var(--border-light);
  font-size: 0.95rem;
  transition: .15s;
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover,
.suggestion-item.active {
  background: var(--surface2);
  color: var(--accent);
}

/* ── FEEDBACK ── */
.feedback-section {
  background: var(--surface2);
  border-top: 1px solid var(--border);
}

.feedback-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.feedback-text h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.feedback-text p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.feedback-form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
}

.feedback-form-group {
  margin-bottom: 1.2rem;
}

.feedback-form-card label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.feedback-form-card .req {
  color: var(--danger);
}

.feedback-form-card input,
.feedback-form-card textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: 0.2s;
  resize: vertical;
  box-sizing: border-box;
}

.feedback-form-card input:focus,
.feedback-form-card textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.feedback-form-card .btn-primary {
  padding: 0.9rem 1.5rem;
  background: var(--accent);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
  width: 100%;
  margin-top: 0.5rem;
}

.feedback-form-card .btn-primary:hover {
  background: var(--accent-hover);
}

.feedback-form-card .btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.alert {
  padding: 0.8rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
}

.alert.success {
  background: rgba(34, 197, 94, .15);
  color: var(--success);
  border: 1px solid rgba(34, 197, 94, .3);
}

.alert.error {
  background: rgba(239, 68, 68, .15);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, .3);
}

@media (max-width: 768px) {
  .feedback-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ── PREMIUM SECTION ── */
.premium-section {
  background: #121212;
  color: #ffffff;
  padding: 6rem 0;
  border-top: 1px solid #2a2a2a;
  border-bottom: 1px solid #2a2a2a;
}

.premium-header {
  text-align: center;
  margin-bottom: 3rem;
}

.premium-header h2 {
  font-size: 2.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  color: #fff;
}

.premium-badge {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-size: 0.85rem;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-weight: 800;
  letter-spacing: 1px;
}

.premium-header p {
  color: #a1a1aa;
  margin-top: 0.5rem;
}

.premium-card {
  max-width: 800px;
  margin: 0 auto;
  background: #1e1e1e;
  border: 1px solid #333;
  border-radius: 20px;
  padding: 3rem 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  transition: all 0.4s ease;
  text-align: center;
}

.premium-card:hover {
  border-color: #555;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

.premium-state {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.premium-state.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.premium-state.active.show {
  opacity: 1;
  transform: translateY(0);
}

.lock-icon,
.unlock-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.3));
}

.locked-state h3 {
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
  color: #fff;
}

.locked-state p {
  color: #a1a1aa;
  margin-bottom: 2rem;
  max-width: 400px;
}

.btn-premium {
  background: linear-gradient(135deg, #f59e0b, #b45309);
  color: #fff;
  border: none;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 30px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.btn-premium:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.6);
}

/* Unlocked State */
.unlocked-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
  width: 100%;
}

.unlocked-header h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: #f59e0b;
}

.premium-content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  width: 100%;
}

.premium-item {
  background: #252525;
  border: 1px solid #333;
  padding: 1.5rem;
  border-radius: 12px;
  text-align: left;
  transition: transform 0.2s, background 0.2s;
}

.premium-item:hover {
  background: #2a2a2a;
  transform: translateY(-5px);
  border-color: #444;
}

.premium-item-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.premium-item h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.premium-item p {
  font-size: 0.85rem;
  color: #a1a1aa;
  margin-bottom: 1.5rem;
  min-height: 40px;
}

.btn-outline {
  background: transparent;
  border: 1px solid #555;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s;
  font-size: 0.9rem;
  font-weight: 600;
  width: 100%;
}

.btn-outline:hover {
  background: #f59e0b;
  border-color: #f59e0b;
  color: #121212;
}

/* ── MODALS ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
}

.modal-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 16px;
  width: 100%;
  max-width: 500px;
  padding: 2rem;
  position: relative;
  transform: translateY(20px);
  transition: 0.3s;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.modal-overlay.show .modal {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  transition: 0.2s;
}

.modal-close:hover {
  color: var(--danger);
}

.modal-header {
  margin-bottom: 1.5rem;
  text-align: center;
}

.modal-header h3 {
  font-size: 1.5rem;
  color: var(--text);
}

.modal-body {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.modal-list {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.modal-list li {
  background: var(--surface);
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: 0.2s;
}

.modal-list li:hover {
  border-color: var(--accent);
  transform: translateX(5px);
}

.modal-list li span {
  font-weight: 500;
  color: var(--text);
}

.modal-list-btn {
  background: var(--accent);
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  transition: 0.2s;
  font-size: 0.8rem;
  text-decoration: none;
}

.modal-list-btn:hover {
  background: var(--accent-hover);
}

.modal-list-btn.secondary {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
}

.modal-list-btn.secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(99, 102, 241, 0.1);
}

/* ── PREMIUM CHAT WIDGET ── */
.chat-widget {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 360px;
  max-width: calc(100vw - 50px);
  background: rgba(26, 26, 46, 0.85);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chat-header {
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}

.chat-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

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

.bot-avatar {
  position: relative;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent), #818cf8);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.bot-status-dot {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  background: #22c55e;
  border: 2px solid rgba(26, 26, 46, 0.9);
  border-radius: 50%;
  box-shadow: 0 0 8px #22c55e;
}

.chat-header-info {
  display: flex;
  flex-direction: column;
}

.chat-header-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  letter-spacing: 0.5px;
}

.chat-header-status {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

.chat-toggle-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.chat-widget.open .chat-toggle-btn {
  transform: rotate(180deg);
  background: var(--accent);
  border-color: var(--accent);
}

.chat-body {
  height: 400px;
  max-height: 65vh;
  display: flex;
  flex-direction: column;
  background: transparent;
}

.chat-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.chat-messages::-webkit-scrollbar {
  width: 5px;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.chat-message {
  max-width: 85%;
  position: relative;
  animation: messageFadeIn 0.3s ease-out;
}

@keyframes messageFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.message-content {
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 0.92rem;
  line-height: 1.5;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.message-time {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 5px;
  padding: 0 4px;
}

.bot-message {
  align-self: flex-start;
}

.bot-message .message-content {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom-left-radius: 4px;
}

.user-message {
  align-self: flex-end;
}

.user-message .message-content {
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 4px;
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.2);
}

.chat-input-area {
  padding: 16px 20px 20px;
  background: transparent;
}

.chat-input-wrapper {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 5px 5px 5px 15px;
  transition: all 0.3s ease;
}

.chat-input-wrapper:focus-within {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.chat-input-area input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 0.9rem;
  padding: 10px 0;
  outline: none;
}

.chat-send-btn {
  background: var(--accent);
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.chat-send-btn:hover {
  background: var(--accent-hover);
  transform: scale(1.05);
}

.chat-loading {
  display: flex;
  gap: 5px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}

.chat-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: chatBounce 1.4s infinite ease-in-out both;
}

.chat-dot:nth-child(1) {
  animation-delay: -0.32s;
}

.chat-dot:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes chatBounce {

  0%,
  80%,
  100% {
    transform: scale(0.3);
    opacity: 0.3;
  }

  40% {
    transform: scale(1);
    opacity: 1;
  }
}

@media (max-width: 480px) {
  .chat-widget {
    bottom: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    border-radius: 20px 20px 0 0;
  }
}

/* ── PDF Preview Overlay ── */
.preview-overlay .preview-content {
  background: var(--surface);
  width: 90%;
  max-width: 600px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.preview-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.preview-header h3 {
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.preview-header p {
  font-size: 0.85rem;
  color: var(--muted);
}

.preview-body {
  position: relative;
  min-height: 400px;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-img-container {
  position: relative;
  width: 100%;
  height: 100%;
}

#previewImage {
  width: 100%;
  display: block;
}

.premium-lock-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 15, 0.4);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  z-index: 10;
}

.lock-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.1);
    opacity: 1;
  }

  100% {
    transform: scale(1);
    opacity: 0.8;
  }
}

.premium-lock-overlay h4 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #fff, #aaa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.premium-lock-overlay p {
  margin-bottom: 1.5rem;
  color: #ccc;
  max-width: 300px;
}

.btn-premium {
  background: linear-gradient(135deg, var(--accent), #ff0055);
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(0, 122, 255, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-premium:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(0, 122, 255, 0.4);
}

.preview-loader {
  text-align: center;
  color: var(--muted);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  margin: 0 auto 1rem;
  animation: spin 1s linear infinite;
}

/* ── MOBILE OPTIMIZATION ── */
@media (max-width: 768px) {
  .hero {
    padding: 6rem 1rem 3rem !important;
  }

  .hero h1 {
    font-size: 2.5rem !important;
    line-height: 1.2 !important;
    margin-bottom: 1rem !important;
  }

  .hero-sub {
    font-size: 1.05rem !important;
    margin-bottom: 2rem !important;
  }

  .search-wrap {
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: none !important;
  }

  .search-wrap input {
    width: 100% !important;
    height: 52px !important;
  }

  .search-wrap button {
    width: 100% !important;
    height: 52px !important;
  }

  .hero-stats {
    gap: 1.5rem !important;
    margin-top: 2rem !important;
  }

  .stat-num {
    font-size: 1.6rem !important;
  }
}

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

/* ── SEO CRAWLER CONTENT STYLING ── */
.seo-crawler-container:empty {
  display: none !important;
}

.seo-crawler-container {
  margin: 4rem auto;
  max-width: 1100px;
  padding: 2.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  backdrop-filter: blur(20px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .seo-crawler-container {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.seo-crawler-container h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: var(--accent);
}

.seo-crawler-container h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: var(--text);
  opacity: 0.9;
}

.seo-crawler-container p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.seo-crawler-container ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
}

.seo-crawler-container li {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1.2rem;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

[data-theme="light"] .seo-crawler-container li {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.seo-crawler-container li:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.seo-crawler-container li a {
  display: block;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.seo-crawler-container li span {
  display: block;
  font-size: 0.8rem;
  color: var(--text-secondary);
  opacity: 0.8;
}