/* ==========================================================================
   TECHNESTSL — DARK FUTURISTIC THEME
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&family=Orbitron:wght@600;700;800&display=swap');

:root {
  --primary-color:    #00e5ff;
  --primary-dark:     #00b8d4;
  --primary-light:    rgba(0, 229, 255, 0.12);
  --secondary-color:  #7c3aed;
  --accent-color:     #ff2bd6;
  --bg-black:         #05060a;
  --bg-white:         #0b0e16;
  --bg-light:         #06070d;
  --bg-lighter:       #0f1320;
  --bg-gray:          #1c2233;
  --text-dark:        #f5f7ff;
  --text-main:        #e6e9f5;
  --text-secondary:   #9aa3bd;
  --text-muted:       #5b6480;
  --success:          #22ffb1;
  --warning:          #ffb547;
  --danger:           #ff4d6d;
  --info:             #4cc9ff;
  --border-soft:      rgba(255, 255, 255, 0.06);
  --border-mid:       rgba(255, 255, 255, 0.10);
  --border-strong:    rgba(0, 229, 255, 0.35);
  --shadow-sm:        0 1px 2px 0 rgba(0, 0, 0, 0.4);
  --shadow-md:        0 4px 14px -2px rgba(0, 0, 0, 0.55);
  --shadow-lg:        0 18px 40px -12px rgba(0, 229, 255, 0.20);
  --shadow-xl:        0 30px 60px -20px rgba(124, 58, 237, 0.35);
  --glow-primary:     0 0 0 1px rgba(0, 229, 255, 0.35), 0 0 24px rgba(0, 229, 255, 0.25);
  --transition:       all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast:  all 0.15s ease-out;
}

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

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-black); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--primary-color), var(--secondary-color)); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-color); }
::selection { background: var(--primary-color); color: var(--bg-black); }

html { scroll-behavior: smooth; }

body {
  background: var(--bg-light);
  color: var(--text-main);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

body::before {
  content: ''; position: fixed; inset: 0;
  background:
    radial-gradient(900px 500px at 12% -10%, rgba(124, 58, 237, 0.18), transparent 60%),
    radial-gradient(700px 500px at 110% 10%, rgba(0, 229, 255, 0.14), transparent 60%),
    radial-gradient(600px 400px at 50% 110%, rgba(255, 43, 214, 0.10), transparent 60%);
  pointer-events: none; z-index: -2;
}
body::after {
  content: ''; position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  pointer-events: none; z-index: -1;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; line-height: 1.15;
  color: var(--text-dark); letter-spacing: -0.01em;
}
h1 {
  font-size: clamp(2.5rem, 7vw, 4.25rem);
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, #ffffff 0%, #aab2ce 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
h2 { font-size: clamp(2rem, 5vw, 3rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
p { font-size: 1rem; line-height: 1.75; color: var(--text-secondary); }
a { color: var(--primary-color); text-decoration: none; transition: var(--transition-fast); }
a:hover { color: #7df3ff; }

/* Nav */
nav.main-nav {
  position: fixed; top: 0; width: 100%; z-index: 1000;
  background: rgba(6, 7, 13, 0.65);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--border-soft);
  padding: 14px 5%;
  display: flex; justify-content: space-between; align-items: center;
  transition: var(--transition);
}
nav.main-nav.scrolled {
  background: rgba(6, 7, 13, 0.92);
  border-bottom-color: var(--border-mid);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}
.logo { display: inline-flex; align-items: center; cursor: pointer; }
.logo img { height: 38px; width: auto; display: block; }
.theme-toggle { font-size: 1.05rem !important; padding: 6px 10px !important; }

/* Light mode */
html[data-theme="light"] {
  --bg-light: #f5f7fb; --bg-white: #ffffff; --bg-black: #eef0f7; --bg-lighter: #ffffff; --bg-gray: #e6e9f3;
  --text-dark: #0c0f1c; --text-main: #1c2233; --text-secondary: #4a5170; --text-muted: #7a829c;
  --border-soft: rgba(0,0,0,0.06); --border-mid: rgba(0,0,0,0.10);
}
html[data-theme="light"] body { background: var(--bg-light); color: var(--text-main); }
html[data-theme="light"] body::before { background: radial-gradient(900px 500px at 12% -10%, rgba(124,58,237,0.10), transparent 60%), radial-gradient(700px 500px at 110% 10%, rgba(0,229,255,0.10), transparent 60%); }
html[data-theme="light"] body::after { display: none; }
html[data-theme="light"] nav.main-nav { background: rgba(255,255,255,0.78); }
html[data-theme="light"] nav.main-nav.scrolled { background: rgba(255,255,255,0.95); }
html[data-theme="light"] h1 { background: linear-gradient(180deg, #0c0f1c 0%, #4a5170 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
html[data-theme="light"] .card, html[data-theme="light"] .article-card, html[data-theme="light"] .metric { background: linear-gradient(180deg, #ffffff, #fafbff); }
html[data-theme="light"] input, html[data-theme="light"] textarea, html[data-theme="light"] select { background: #ffffff; }
html[data-theme="light"] footer { background: #0c0f1c; }
html[data-theme="light"] footer * { color: #cdd3e6 !important; }
.nav-links { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav-links a, .nav-links button {
  font-size: 0.88rem; font-weight: 500;
  color: var(--text-secondary); background: transparent; border: none;
  cursor: pointer; padding: 8px 14px; border-radius: 8px;
  transition: var(--transition-fast); text-decoration: none;
  font-family: inherit;
}
.nav-links a:hover, .nav-links button:hover { color: var(--primary-color); background: var(--primary-light); }
.nav-mobile-toggle { display: none; background: none; border: none; color: var(--text-main); font-size: 1.5rem; cursor: pointer; }

@media (max-width: 768px) {
  .nav-mobile-toggle { display: block; }
  .nav-links { position: fixed; top: 60px; left: 0; right: 0; flex-direction: column; background: rgba(6,7,13,0.98); padding: 20px; border-bottom: 1px solid var(--border-mid); display: none; }
  .nav-links.open { display: flex; }
  .nav-links a, .nav-links button { width: 100%; text-align: left; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 28px; border-radius: 10px; border: 1px solid transparent;
  font-size: 0.92rem; font-weight: 600; cursor: pointer;
  transition: var(--transition-fast); text-decoration: none; white-space: nowrap;
  font-family: 'Space Grotesk', sans-serif; letter-spacing: 0.01em;
  position: relative; overflow: hidden;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #04060c;
  box-shadow: 0 6px 24px rgba(0, 229, 255, 0.25), inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn-primary:hover { box-shadow: 0 10px 32px rgba(0, 229, 255, 0.45); transform: translateY(-2px); color: #04060c; }
.btn-secondary {
  background: rgba(255, 255, 255, 0.03); color: var(--text-main);
  border: 1px solid var(--border-mid); backdrop-filter: blur(8px);
}
.btn-secondary:hover { background: var(--primary-light); border-color: var(--border-strong); color: var(--primary-color); box-shadow: var(--glow-primary); }
.btn-danger { background: var(--danger); color: white; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }
.btn-sm { padding: 8px 16px; font-size: 0.82rem; }
.btn-lg { padding: 16px 36px; font-size: 1rem; }
.w-full { width: 100%; }

/* OAuth buttons */
.oauth-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.btn-oauth {
  background: rgba(255,255,255,0.04); border: 1px solid var(--border-mid);
  color: var(--text-main); padding: 12px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  cursor: pointer; transition: var(--transition-fast);
  font-family: inherit; font-size: 0.9rem; font-weight: 500;
  text-decoration: none;
}
.btn-oauth:hover { border-color: var(--border-strong); background: var(--primary-light); color: var(--primary-color); }
.btn-oauth svg { width: 18px; height: 18px; }

/* Forms */
.form-group { margin-bottom: 20px; }
label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--text-main); font-size: 0.9rem; }
input, textarea, select {
  width: 100%; padding: 13px 14px; border: 1px solid var(--border-mid);
  border-radius: 10px; font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem; color: var(--text-main);
  background: rgba(255, 255, 255, 0.02); transition: var(--transition-fast);
}
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--primary-color);
  background: rgba(0, 229, 255, 0.04);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.18);
}
input::placeholder, textarea::placeholder { color: var(--text-muted); }
textarea { resize: vertical; min-height: 120px; }
input[type="checkbox"], input[type="radio"] { width: auto; accent-color: var(--primary-color); }

/* Alerts */
.alert {
  padding: 14px 16px; border-radius: 10px;
  display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px;
  animation: slideDown 0.3s ease-out; border: 1px solid;
  background: rgba(255,255,255,0.03); backdrop-filter: blur(10px);
}
.alert-icon {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem;
}
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
.alert-success { border-color: rgba(34, 255, 177, 0.35); color: #b7ffe1; }
.alert-success .alert-icon { background: var(--success); color: #04060c; }
.alert-error { border-color: rgba(255, 77, 109, 0.40); color: #ffd1da; }
.alert-error .alert-icon { background: var(--danger); color: #04060c; }
.alert-warning { border-color: rgba(255, 181, 71, 0.40); color: #ffe2b8; }
.alert-warning .alert-icon { background: var(--warning); color: #04060c; }
.alert-info { border-color: rgba(76, 201, 255, 0.40); color: #cdeaff; }
.alert-info .alert-icon { background: var(--info); color: #04060c; }

/* Cards */
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid var(--border-mid); border-radius: 14px;
  padding: 24px; transition: var(--transition); backdrop-filter: blur(8px);
}
.card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-lg); transform: translateY(-4px); }

/* Badges */
.badge {
  display: inline-flex; align-items: center; padding: 4px 12px;
  border-radius: 20px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em;
}
.badge-primary { background: var(--primary-light); color: var(--primary-color); border: 1px solid var(--border-strong); }
.badge-success { background: rgba(34, 255, 177, 0.10); color: var(--success); border: 1px solid rgba(34, 255, 177, 0.35); }
.badge-warn { background: rgba(255,181,71,0.10); color: var(--warning); border: 1px solid rgba(255,181,71,0.35); }

/* Sections */
section { padding: 100px 5%; position: relative; }
.section-label {
  font-family: 'JetBrains Mono', monospace; font-size: 0.78rem;
  font-weight: 600; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--primary-color); margin-bottom: 14px;
  display: inline-block; padding: 5px 12px;
  border: 1px solid var(--border-strong); border-radius: 999px;
  background: var(--primary-light);
}
.section-title { font-size: 2.5rem; margin-bottom: 16px; }
.section-subtitle {
  font-size: 1.05rem; color: var(--text-secondary);
  max-width: 700px; margin: 0 auto 48px;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 5%; }

/* Grids */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.reveal { animation: fadeInUp 0.8s ease-out backwards; opacity: 0; }
.reveal.in { opacity: 1; }
.reveal-delay-1 { animation-delay: 0.1s; }
.reveal-delay-2 { animation-delay: 0.2s; }
.reveal-delay-3 { animation-delay: 0.3s; }

.spinner {
  display: inline-block; width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.2); border-top-color: var(--primary-color);
  border-radius: 50%; animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-4 { gap: 16px; } .gap-6 { gap: 24px; }
.text-center { text-align: center; }
.mt-2 { margin-top: 12px; } .mt-4 { margin-top: 24px; } .mt-6 { margin-top: 36px; }

/* Article cards */
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.article-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid var(--border-mid); border-radius: 16px;
  overflow: hidden; transition: var(--transition); cursor: pointer;
  display: flex; flex-direction: column;
}
.article-card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow-lg); }
.article-cover {
  aspect-ratio: 16/9; background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: #04060c; overflow: hidden; position: relative;
}
.article-cover img, .article-cover iframe { width: 100%; height: 100%; object-fit: cover; border: none; }
.article-cover .play-btn {
  position: absolute; inset: 0; background: rgba(0,0,0,0.4);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: white; transition: var(--transition-fast);
}
.article-cover .play-btn:hover { background: rgba(0,0,0,0.6); }
.article-body { padding: 20px 22px; flex: 1; display: flex; flex-direction: column; }
.article-tag {
  font-family: 'JetBrains Mono', monospace; font-size: 0.7rem;
  color: var(--primary-color); letter-spacing: 0.15em;
  text-transform: uppercase; margin-bottom: 8px;
}
.article-body h3 { font-size: 1.1rem; margin-bottom: 10px; color: var(--text-dark); line-height: 1.35; }
.article-body p { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 14px; flex: 1; }
.article-meta {
  display: flex; justify-content: space-between; align-items: center;
  color: var(--text-muted); font-size: 0.8rem;
  padding-top: 12px; border-top: 1px solid var(--border-soft);
}

/* Article view */
.article-view { max-width: 820px; margin: 0 auto; padding: 100px 5% 80px; }
.article-view .hero-cover {
  aspect-ratio: 16/9; border-radius: 16px; overflow: hidden;
  margin-bottom: 30px; background: var(--bg-gray);
}
.article-view .hero-cover img, .article-view .hero-cover iframe { width: 100%; height: 100%; object-fit: cover; border: 0; }
.article-view h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 16px; }
.article-view .meta-bar {
  display: flex; gap: 18px; flex-wrap: wrap;
  color: var(--text-muted); font-size: 0.88rem;
  padding: 16px 0; border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft); margin-bottom: 30px;
}
.article-view .content { font-size: 1.05rem; line-height: 1.85; color: var(--text-main); }
.article-view .content p { margin-bottom: 18px; color: var(--text-main); }
.article-view .content h2, .article-view .content h3 { margin: 30px 0 14px; }
.article-view .content img { max-width: 100%; border-radius: 12px; margin: 20px 0; }
.article-view .content a { color: var(--primary-color); text-decoration: underline; }
.article-view .content blockquote { border-left: 3px solid var(--primary-color); padding: 8px 18px; color: var(--text-secondary); margin: 20px 0; background: rgba(0,229,255,0.03); border-radius: 0 8px 8px 0; }

/* Summarize box */
.summarize-box {
  margin: 30px 0; padding: 24px;
  background: linear-gradient(135deg, rgba(0,229,255,0.06), rgba(124,58,237,0.06));
  border: 1px solid var(--border-strong); border-radius: 14px;
}
.summarize-box h4 { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; color: var(--text-dark); }
.summarize-box .ai-output { padding: 18px; background: rgba(0,0,0,0.3); border-radius: 10px; margin-top: 14px; line-height: 1.7; }
.locked-overlay {
  background: rgba(0,0,0,0.4); border: 1px dashed var(--border-mid);
  border-radius: 10px; padding: 24px; text-align: center; color: var(--text-secondary);
}

/* Footer */
footer {
  background: var(--bg-black); padding: 60px 5% 30px;
  border-top: 1px solid var(--border-mid); margin-top: 60px;
}
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 40px; max-width: 1200px; margin: 0 auto; }
.footer-grid h4 { color: var(--text-dark); font-size: 0.95rem; margin-bottom: 16px; }
.footer-grid a { display: block; padding: 6px 0; color: var(--text-secondary); font-size: 0.9rem; }
.footer-grid a:hover { color: var(--primary-color); }
.footer-bottom {
  max-width: 1200px; margin: 40px auto 0; padding-top: 30px;
  border-top: 1px solid var(--border-soft);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  font-size: 0.85rem; color: var(--text-muted);
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* Hero */
.hero {
  padding: 140px 5% 80px; text-align: center;
  position: relative;
}
.hero-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; background: var(--primary-light);
  border: 1px solid var(--border-strong); border-radius: 999px;
  margin-bottom: 24px; font-family: 'JetBrains Mono', monospace;
  color: var(--primary-color); font-weight: 600; font-size: 0.82rem;
}
.hero-meta { margin-top: 40px; display: flex; justify-content: center; gap: 28px; font-size: 0.88rem; color: var(--text-muted); flex-wrap: wrap; }

/* Reading progress bar */
.read-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0%; z-index: 1100; background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color)); box-shadow: 0 0 10px rgba(0,229,255,0.6); transition: width 0.05s linear; }

/* Scroll to top */
.to-top { position: fixed; bottom: 24px; right: 24px; width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); color: #04060c; border: none; cursor: pointer; display: none; align-items: center; justify-content: center; font-size: 1.2rem; box-shadow: var(--shadow-lg); z-index: 999; transition: var(--transition-fast); }
.to-top:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,229,255,0.45); }
.to-top.show { display: flex; }

/* Premium lock badge over cards */
.premium-lock { position:absolute; top:10px; right:10px; background:linear-gradient(135deg,#ffb547,#ff2bd6); color:#04060c; font-weight:700; font-size:0.7rem; padding:4px 10px; border-radius:999px; letter-spacing:0.08em; text-transform:uppercase; box-shadow:0 4px 14px rgba(255,43,214,0.35); display:inline-flex; align-items:center; gap:4px; }
.article-cover { position: relative; }

/* Drag-drop zone */
.drop-zone { border: 2px dashed var(--border-mid); border-radius: 12px; padding: 28px; text-align: center; color: var(--text-secondary); transition: var(--transition-fast); cursor: pointer; background: rgba(255,255,255,0.02); }
.drop-zone:hover, .drop-zone.over { border-color: var(--primary-color); background: var(--primary-light); color: var(--primary-color); }
.drop-zone .big { font-size: 2rem; margin-bottom: 6px; }

/* Trending strip */
.ticker { background: linear-gradient(90deg, rgba(0,229,255,0.08), rgba(124,58,237,0.08)); border-top: 1px solid var(--border-mid); border-bottom: 1px solid var(--border-mid); padding: 10px 0; overflow: hidden; position: relative; margin-top: 64px; }
.ticker-row { display: flex; gap: 40px; white-space: nowrap; animation: tickerScroll 40s linear infinite; }
.ticker-row span { font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; color: var(--text-main); display: inline-flex; align-items: center; gap: 8px; }
.ticker-row .dot { color: var(--primary-color); }
@keyframes tickerScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Hero featured + side cards */
.featured-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 22px; margin-top: 30px; }
.featured-main { position: relative; min-height: 420px; border-radius: 18px; overflow: hidden; border: 1px solid var(--border-mid); display: flex; align-items: flex-end; padding: 30px; cursor: pointer; transition: var(--transition); }
.featured-main:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.featured-main .bg { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: -2; transition: transform 0.6s; }
.featured-main:hover .bg { transform: scale(1.04); }
.featured-main::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.85) 100%); z-index: -1; }
.featured-main .ftext { color: #fff; max-width: 600px; }
.featured-main h2 { color: #fff; font-size: 2rem; margin: 8px 0 6px; }
.featured-side { display: grid; gap: 16px; }
.side-card { display: flex; gap: 12px; padding: 14px; border: 1px solid var(--border-mid); border-radius: 12px; background: rgba(255,255,255,0.02); cursor: pointer; transition: var(--transition-fast); text-decoration: none; color: inherit; }
.side-card:hover { border-color: var(--border-strong); background: var(--primary-light); }
.side-card .thumb { width: 80px; aspect-ratio: 1; border-radius: 10px; flex-shrink: 0; background-size: cover; background-position: center; background-color: var(--bg-gray); }
.side-card h4 { font-size: 0.95rem; margin-bottom: 4px; color: var(--text-dark); line-height: 1.3; }
.side-card .meta { color: var(--text-muted); font-size: 0.78rem; }
@media (max-width: 900px) { .featured-grid { grid-template-columns: 1fr; } .featured-main { min-height: 320px; } }

/* Toast */
.toast-host { position: fixed; bottom: 30px; right: 30px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast-msg { padding: 12px 18px; background: rgba(11,13,20,0.95); border: 1px solid var(--border-mid); border-radius: 10px; color: var(--text-main); backdrop-filter: blur(12px); box-shadow: var(--shadow-lg); animation: slideDown 0.3s; }
.toast-msg.success { border-color: rgba(34,255,177,0.4); color: var(--success); }
.toast-msg.error { border-color: rgba(255,77,109,0.4); color: var(--danger); }

/* Admin */
.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-sidebar { background: var(--bg-black); border-right: 1px solid var(--border-mid); padding: 24px 16px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-sidebar .logo { display: block; margin-bottom: 30px; }
.admin-sidebar button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 10px 14px; border-radius: 8px; background: none; border: none; color: var(--text-secondary); cursor: pointer; font-family: inherit; font-size: 0.92rem; margin-bottom: 4px; transition: var(--transition-fast); }
.admin-sidebar button:hover, .admin-sidebar button.active { background: var(--primary-light); color: var(--primary-color); }
.admin-main { padding: 30px 40px; }
.metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; margin-bottom: 30px; }
.metric { background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01)); border: 1px solid var(--border-mid); border-radius: 14px; padding: 22px; }
.metric .label { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; color: var(--text-muted); letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 10px; }
.metric .value { font-family: 'Orbitron', sans-serif; font-size: 2.2rem; font-weight: 800; background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.metric .delta { font-size: 0.82rem; color: var(--text-secondary); margin-top: 6px; }

table.data-table { width: 100%; border-collapse: collapse; background: rgba(255,255,255,0.02); border: 1px solid var(--border-mid); border-radius: 12px; overflow: hidden; }
.data-table th, .data-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border-soft); font-size: 0.92rem; }
.data-table th { background: rgba(0,0,0,0.3); color: var(--text-muted); font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; }
.data-table tr:last-child td { border: none; }
.data-table tr:hover td { background: rgba(0,229,255,0.03); }

@media (max-width: 768px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { position: relative; height: auto; }
  .admin-main { padding: 20px; }
}

/* Comments */
.comment { padding: 16px; border-radius: 10px; background: rgba(255,255,255,0.02); border: 1px solid var(--border-soft); margin-bottom: 12px; }
.comment-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 0.85rem; color: var(--text-muted); }
.comment-head .author { color: var(--primary-color); font-weight: 600; }
.comment-body { color: var(--text-main); font-size: 0.95rem; line-height: 1.6; }

/* Search bar */
.search-bar { position: relative; max-width: 600px; margin: 0 auto 30px; }
.search-bar input { padding-left: 44px; }
.search-bar::before { content: '🔍'; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 1rem; }

/* Auth split layout */
.auth-wrapper { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 65px); padding-top: 65px; }
.auth-left { background: radial-gradient(600px 400px at 20% 20%, rgba(0,229,255,0.18), transparent 60%), radial-gradient(600px 400px at 80% 80%, rgba(124,58,237,0.22), transparent 60%), linear-gradient(135deg, #0a0d1c 0%, #14082a 100%); padding: 60px; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid var(--border-soft); }
.auth-right { padding: 60px; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.auth-card { max-width: 460px; width: 100%; }
.auth-card h2 { margin-bottom: 8px; font-size: 1.8rem; }
.auth-card > p { margin-bottom: 28px; color: var(--text-secondary); }
.form-divider { text-align: center; margin: 20px 0; color: var(--text-muted); position: relative; font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; font-family: 'JetBrains Mono', monospace; }
.form-divider::before, .form-divider::after { content: ''; position: absolute; top: 50%; width: 40%; height: 1px; background: var(--border-mid); }
.form-divider::before { left: 0; } .form-divider::after { right: 0; }
@media (max-width: 900px) { .auth-wrapper { grid-template-columns: 1fr; } .auth-left { display: none; } .auth-right { padding: 40px 24px; } }

/* Hero stats */
.stats-section { background: radial-gradient(800px 400px at 50% 0%, rgba(124,58,237,0.18), transparent 60%); color: white; padding: 80px 5%; text-align: center; border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 30px; margin-top: 40px; max-width: 1100px; margin-left: auto; margin-right: auto; }
.stat-number { font-family: 'Orbitron', sans-serif; font-size: 2.8rem; font-weight: 800; background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.stat-label { font-size: 0.85rem; color: rgba(255,255,255,0.7); letter-spacing: 0.15em; text-transform: uppercase; font-family: 'JetBrains Mono', monospace; }

/* Empty state */
.empty-state { padding: 60px 30px; text-align: center; color: var(--text-muted); }
.empty-state .icon { font-size: 3rem; margin-bottom: 14px; opacity: 0.6; }

/* Tabs */
.tab-bar { display: flex; gap: 4px; border-bottom: 1px solid var(--border-mid); margin-bottom: 24px; flex-wrap: wrap; }
.tab-bar button { background: none; border: none; padding: 12px 18px; color: var(--text-secondary); cursor: pointer; font-family: inherit; font-size: 0.92rem; font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: var(--transition-fast); }
.tab-bar button:hover { color: var(--primary-color); }
.tab-bar button.active { color: var(--primary-color); border-bottom-color: var(--primary-color); }

/* Bookmark / share row */
.action-row { display: flex; gap: 10px; margin: 20px 0; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.04); border: 1px solid var(--border-mid); color: var(--text-secondary); cursor: pointer; transition: var(--transition-fast); display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.icon-btn:hover, .icon-btn.active { color: var(--primary-color); border-color: var(--border-strong); background: var(--primary-light); }
