/* ══════════════════════════════════════════════════
   XDA Rom — Green Theme Design System
   ══════════════════════════════════════════════════ */

:root {
  /* Green Color Palette */
  --accent:   #00e676;
  --accent2:  #00b248;
  --accent3:  #69f0ae;
  --warn:     #ffab40;
  --red:      #ff5252;

  /* Dark Green Backgrounds */
  --bg:       #050d0a;
  --bg2:      #071410;
  --surface:  #0c1f17;
  --surface2: #112a1e;
  --border:   #1a3d2b;
  --border2:  #2a5c40;
  --white:    #e8f5e9;
  --text:     #c8e6c9;
  --text2:    #a5c9a8;
  --text3:    #5a8a64;

  /* Typography */
  --font-display: 'Segoe UI', system-ui, sans-serif;
  --font-mono:    'Courier New', monospace;

  /* Spacing */
  --radius:  8px;
  --radius2: 14px;
}

/* ── Reset & Base ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}
a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent3); }
img { max-width: 100%; display: block; }

/* ── Container ────────────────────────────────────── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* ── Topbar ───────────────────────────────────────── */
.topbar {
  background: #020806;
  border-bottom: 1px solid var(--border);
  padding: 6px 0;
  font-size: 12px;
  color: var(--text3);
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.topbar a { color: var(--text3); }
.topbar a:hover { color: var(--accent); }

/* ── Header ───────────────────────────────────────── */
.site-header {
  background: linear-gradient(180deg, #040f09 0%, #071410 100%);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 900;
  box-shadow: 0 2px 20px rgba(0,230,118,.06);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 0 16px rgba(0,230,118,.3);
}
.logo-text {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
}
.logo-text span { color: var(--accent); }
.logo-sub { font-size: 11px; color: var(--accent); font-weight: 600; }

/* ── Navigation ───────────────────────────────────── */
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.main-nav > a {
  padding: 8px 14px;
  border-radius: var(--radius);
  color: var(--text2);
  font-size: 13px;
  font-weight: 500;
  transition: all .2s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}
.main-nav > a:hover,
.main-nav > a.active {
  background: rgba(0,230,118,.1);
  color: var(--accent);
}
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius2);
  min-width: 200px;
  padding: 6px;
  z-index: 999;
  box-shadow: 0 8px 30px rgba(0,0,0,.5);
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius);
  color: var(--text2);
  font-size: 13px;
  transition: all .15s;
}
.nav-dropdown-menu a:hover { background: rgba(0,230,118,.08); color: var(--accent); }

/* ── Header Search ────────────────────────────────── */
.header-search {
  display: flex;
  align-items: center;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  max-width: 280px;
  width: 100%;
  transition: border-color .2s;
}
.header-search:focus-within { border-color: var(--accent); }
.header-search input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  padding: 9px 14px;
  color: var(--white);
  font-size: 13px;
}
.header-search input::placeholder { color: var(--text3); }
.header-search button {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border: none;
  padding: 9px 14px;
  color: #000;
  cursor: pointer;
  font-size: 14px;
}
.nav-toggle { display: none; }
.admin-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: rgba(0,230,118,.1);
  border: 1px solid rgba(0,230,118,.25);
  border-radius: var(--radius);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

/* ── News Ticker ──────────────────────────────────── */
.news-ticker {
  display: flex;
  align-items: center;
  height: 34px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 10;
}
.ticker-label {
  padding: 0 14px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 1px;
}
.ticker-track-wrap {
  flex: 1;
  overflow: hidden;
  height: 100%;
  display: flex;
  align-items: center;
}
.ticker-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: ticker-scroll 20s linear infinite;
  width: max-content;
}
.ticker-track:hover { animation-play-state: paused; }
@keyframes ticker-scroll { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  text-decoration: none;
  font-size: 12px;
  transition: color .2s;
  white-space: nowrap;
}
.ticker-item:hover { color: var(--accent) !important; }
.ticker-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  opacity: .7;
}
.ticker-title { font-weight: 500; }
.ticker-sep { opacity: .3; padding: 0 4px; font-size: 10px; }

/* Keep old class as alias */
.ticker-wrap { display: none; }

/* ══════════════════════════════════════════════════
   HERO SLIDER
   ══════════════════════════════════════════════════ */
.hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--bg2);
}
.slider-track {
  display: flex;
  transition: transform .6s cubic-bezier(.4,0,.2,1);
}
.slide {
  min-width: 100%;
  position: relative;
  height: 480px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(.45);
  transition: transform 8s ease;
}
.slide:hover .slide-bg { transform: scale(1.04); }
.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.8) 0%, rgba(0,0,0,.2) 60%, transparent 100%);
}
.slide-content {
  position: relative;
  z-index: 2;
  padding: 0 60px;
  max-width: 640px;
}
.slide-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,230,118,.15);
  border: 1px solid rgba(0,230,118,.35);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.slide-title {
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 14px;
}
.slide-desc {
  font-size: 14px;
  color: rgba(255,255,255,.75);
  margin-bottom: 24px;
  line-height: 1.7;
  max-width: 480px;
}
.slide-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.slide-btn-primary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #000;
  border-radius: var(--radius2);
  font-weight: 700;
  font-size: 14px;
  transition: all .2s;
  box-shadow: 0 4px 20px rgba(0,230,118,.3);
}
.slide-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,230,118,.5); color: #000; }
.slide-btn-outline {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: 2px solid rgba(255,255,255,.3);
  color: #fff;
  border-radius: var(--radius2);
  font-weight: 600;
  font-size: 14px;
  transition: all .2s;
}
.slide-btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* Slider controls */
.slider-prev, .slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(0,0,0,.5);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50%;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
  backdrop-filter: blur(4px);
}
.slider-prev { left: 20px; }
.slider-next { right: 20px; }
.slider-prev:hover, .slider-next:hover {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}
.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  transition: all .3s;
  border: none;
}
.slider-dot.active {
  background: var(--accent);
  width: 24px;
  border-radius: 4px;
}

/* Slide counter */
.slider-counter {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(0,0,0,.5);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-family: var(--font-mono);
  z-index: 10;
  backdrop-filter: blur(4px);
}

/* ── Stats Bar ────────────────────────────────────── */
.stats-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.stats-bar .container {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--accent);
}
.stat-item span { font-size: 12px; color: var(--text3); }

/* ── Section ──────────────────────────────────────── */
.section { padding: 40px 0; }
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.section-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title::before {
  content: '';
  display: block;
  width: 4px;
  height: 24px;
  background: linear-gradient(180deg, var(--accent), var(--accent2));
  border-radius: 2px;
}

/* ── File Cards ───────────────────────────────────── */
.files-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.file-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  overflow: hidden;
  transition: all .25s;
  display: flex;
  flex-direction: column;
}
.file-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,230,118,.12);
}
.file-card-header {
  padding: 10px 12px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.file-type-badge {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}
.badge-flash    { background: rgba(255,171,64,.15); color: #ffab40; }
.badge-firmware { background: rgba(0,230,118,.12);  color: var(--accent); }
.badge-frp      { background: rgba(105,240,174,.12); color: var(--accent3); }
.badge-tool     { background: rgba(0,178,72,.12);    color: var(--accent2); }
.badge-test     { background: rgba(255,82,82,.12);   color: var(--red); }
.badge-other    { background: rgba(90,138,100,.12);  color: var(--text3); }
.featured-badge {
  background: rgba(255,171,64,.15);
  color: var(--warn);
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
}
.file-card-body { padding: 10px 12px; flex: 1; }
.file-title { font-weight: 600; color: var(--white); font-size: 14px; line-height: 1.4; margin-bottom: 8px; }
.file-title a { color: var(--white); }
.file-title a:hover { color: var(--accent); }
.file-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.file-meta-item { font-size: 11px; color: var(--text3); display: flex; align-items: center; gap: 4px; }
.file-meta-item i { color: var(--accent); font-size: 10px; }
.file-card-footer {
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.file-brand { font-size: 13px; color: var(--text2); display: flex; align-items: center; gap: 6px; }
.btn-download {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #000;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 700;
  transition: all .2s;
}
.btn-download:hover { transform: scale(1.04); color: #000; }

/* ── Categories ───────────────────────────────────── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
}
.cat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  padding: 20px 12px;
  text-align: center;
  text-decoration: none;
  transition: all .2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.cat-card:hover {
  border-color: var(--accent);
  background: rgba(0,230,118,.06);
  transform: translateY(-2px);
}
.cat-icon { font-size: 32px; }
.cat-name { font-size: 13px; font-weight: 600; color: var(--text); }
.cat-count { font-size: 11px; color: var(--text3); }

/* ── Buttons ──────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
  border: none;
  font-family: var(--font-display);
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #000;
}
.btn-primary:hover { opacity: .88; transform: translateY(-1px); color: #000; }
.btn-success {
  background: linear-gradient(135deg, #00e676, #00b248);
  color: #000;
}
.btn-success:hover { opacity: .88; color: #000; }
.btn-danger { background: rgba(255,82,82,.15); color: var(--red); border: 1px solid rgba(255,82,82,.3); }
.btn-danger:hover { background: var(--red); color: #fff; }
.btn-outline { background: transparent; color: var(--text2); border: 1px solid var(--border2); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-lg { padding: 13px 26px; font-size: 15px; }

/* ── Forms ────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
  margin-bottom: 6px;
}
.form-control {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  color: var(--white);
  font-size: 14px;
  font-family: var(--font-display);
  transition: border-color .2s;
  outline: none;
}
.form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,230,118,.1); }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { cursor: pointer; }
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  padding: 28px;
  max-width: 480px;
  margin: 60px auto;
}

/* ── Alerts ───────────────────────────────────────── */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: 14px;
}
.alert-success { background: rgba(0,230,118,.08); border: 1px solid rgba(0,230,118,.25); color: var(--accent3); }
.alert-error   { background: rgba(255,82,82,.08);  border: 1px solid rgba(255,82,82,.25);  color: var(--red); }
.alert-info    { background: rgba(0,230,118,.06);  border: 1px solid rgba(0,230,118,.15);  color: var(--accent); }
.alert-warning { background: rgba(255,171,64,.08); border: 1px solid rgba(255,171,64,.25); color: var(--warn); }

/* ── Breadcrumb ───────────────────────────────────── */
.breadcrumb { background: var(--surface); border-bottom: 1px solid var(--border); padding: 8px 0; }
.breadcrumb-inner { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text3); flex-wrap: wrap; }
.breadcrumb-inner a { color: var(--text3); }
.breadcrumb-inner a:hover { color: var(--accent); }
.breadcrumb-inner .sep { color: var(--border2); }
.breadcrumb-inner .current { color: var(--accent); }

/* ── Detail Page ──────────────────────────────────── */
.detail-grid { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
.detail-main { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius2); padding: 24px; }
.detail-sidebar { display: flex; flex-direction: column; gap: 16px; }
.sidebar-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius2); padding: 18px; }
.sidebar-card-title { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--white); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }

/* ── File Info Table ──────────────────────────────── */
.file-info-table { width: 100%; border-collapse: collapse; }
.file-info-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); font-size: 14px; }
.file-info-table td:first-child { color: var(--text3); width: 38%; font-weight: 500; }
.file-info-table td:last-child { color: var(--text); font-weight: 600; }

/* ── Download Button ──────────────────────────────── */
.download-countdown { text-align: center; padding: 20px; }
.countdown-ring { width: 80px; height: 80px; margin: 0 auto 16px; position: relative; }
.countdown-ring svg { transform: rotate(-90deg); }
.countdown-ring circle { fill: none; stroke-width: 4; }
.countdown-ring .bg-circle { stroke: var(--border); }
.countdown-ring .progress-circle { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset .9s linear; }
.countdown-number { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800; color: var(--accent); font-family: var(--font-mono); }
.download-btn-wrap .btn { width: 100%; justify-content: center; padding: 14px; font-size: 16px; letter-spacing: 1px; }

/* ── Admin Layout ─────────────────────────────────── */
.admin-layout { display: grid; grid-template-columns: 240px 1fr; gap: 0; min-height: calc(100vh - 60px); }
.admin-sidebar {
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 20px 0;
  position: sticky;
  top: 60px;
  height: calc(100vh - 60px);
  overflow-y: auto;
}
.admin-sidebar h3 {
  padding: 8px 20px 6px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text3);
}
.admin-sidebar a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  color: var(--text2);
  font-size: 13px;
  font-weight: 500;
  transition: all .15s;
}
.admin-sidebar a:hover { background: rgba(0,230,118,.06); color: var(--accent); }
.admin-sidebar a.active { background: rgba(0,230,118,.1); color: var(--accent); border-right: 3px solid var(--accent); }
.admin-sidebar a i { width: 16px; text-align: center; }
.admin-content { padding: 28px; }
.admin-content h1 { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--white); margin-bottom: 24px; display: flex; align-items: center; gap: 10px; }

/* ── Stats Grid ───────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stat-card:hover { border-color: var(--accent); }
.stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.stat-icon.blue   { background: rgba(0,230,118,.12); color: var(--accent); }
.stat-icon.green  { background: rgba(105,240,174,.12); color: var(--accent3); }
.stat-icon.orange { background: rgba(255,171,64,.12); color: var(--warn); }
.stat-icon.purple { background: rgba(0,178,72,.12); color: var(--accent2); }
.stat-card strong { font-size: 28px; font-weight: 800; color: var(--white); }
.stat-card span   { font-size: 12px; color: var(--text3); }

/* ── Data Table ───────────────────────────────────── */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { padding: 10px 14px; background: var(--surface2); color: var(--text3); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; text-align: left; border-bottom: 1px solid var(--border); }
.data-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--text); vertical-align: middle; }
.data-table tr:hover td { background: rgba(0,230,118,.03); }
.data-table tr:last-child td { border-bottom: none; }

/* ── Comments ─────────────────────────────────────── */
.comment { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; margin-bottom: 12px; }
.comment-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.comment-avatar { width: 32px; height: 32px; background: linear-gradient(135deg, var(--accent), var(--accent2)); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; color: #000; flex-shrink: 0; }

/* ── Footer ───────────────────────────────────────── */
.site-footer {
  background: #030b06;
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
  margin-top: 60px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer-brand .logo-text { font-size: 20px; margin-bottom: 10px; }
.footer-desc { font-size: 13px; color: var(--text3); line-height: 1.7; margin-bottom: 16px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 34px; height: 34px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: var(--text3); font-size: 14px; transition: all .2s; }
.footer-social a:hover { border-color: var(--accent); color: var(--accent); }
.footer-heading { font-size: 13px; font-weight: 700; color: var(--white); margin-bottom: 14px; text-transform: uppercase; letter-spacing: 1px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { font-size: 13px; color: var(--text3); transition: color .2s; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--text3); }

/* ── Light Mode ───────────────────────────────────── */
body.light-mode {
  --bg: #f0faf3; --bg2: #e6f5eb; --surface: #ffffff; --surface2: #f5faf7;
  --border: #b2dfbd; --border2: #80c895; --text: #1b5e30; --text2: #2e7d42;
  --text3: #5a9a68; --white: #0d2e17; --red: #d32f2f;
}
body.light-mode .site-header { background: #fff; }
body.light-mode .topbar { background: #1b5e30; }
body.light-mode .topbar, body.light-mode .topbar a { color: #c8e6c9; }

/* ── Admin Edit Bar ───────────────────────────────── */
.admin-edit-bar { background: rgba(0,0,0,.7); border-bottom: 2px solid var(--accent); padding: 8px 0; backdrop-filter: blur(4px); position: sticky; top: 0; z-index: 998; }

/* ── Misc ─────────────────────────────────────────── */
.subtitle { color: var(--text3); font-size: 14px; margin-top: 4px; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 900px) {
  .detail-grid { grid-template-columns: 1fr; }
  .stats-grid  { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .topbar { display: none; }
  .site-header { padding: 10px 0; position: sticky; top: 0; z-index: 999; }
  .nav-toggle { display: flex !important; align-items: center; justify-content: center; width: 38px; height: 38px; background: var(--surface2); border: 1px solid var(--border2); border-radius: 8px; color: var(--text); cursor: pointer; }
  .main-nav { display: none; flex-direction: column; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: var(--bg); z-index: 9998; padding: 20px; overflow-y: auto; }
  .main-nav.open { display: flex; }
  .main-nav > a { padding: 14px 16px; font-size: 16px; border-bottom: 1px solid var(--border); }
  .slide { height: 320px; }
  .slide-content { padding: 0 20px; }
  .slide-title { font-size: 22px; }
  .files-grid { grid-template-columns: repeat(2,1fr) !important; gap: 10px !important; }
  .cat-grid { grid-template-columns: repeat(3,1fr) !important; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { position: fixed; left: -280px; top: 0; bottom: 0; width: 260px; z-index: 9997; transition: left .3s; overflow-y: auto; box-shadow: 4px 0 20px rgba(0,0,0,.5); }
  .admin-sidebar.open { left: 0; }
  .admin-menu-toggle { display: flex !important; align-items: center; gap: 8px; padding: 8px 14px; background: var(--surface2); border: 1px solid var(--border2); border-radius: 8px; color: var(--text); cursor: pointer; font-size: 13px; margin-bottom: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 400px) {
  .files-grid { grid-template-columns: 1fr !important; }
  .cat-grid { grid-template-columns: repeat(2,1fr) !important; }
}
