/* =========================================
   OLI SYSTEM DEVELOPMENT — CUSTOM STYLES
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ---- CSS Variables ---- */
:root {
  --bg-primary:    #080808;
  --bg-secondary:  #100000;
  --bg-card:       #111111;
  --bg-card-hover: #1c0000;
  --accent:        #cc0000;
  --accent-mid:    #d90000;
  --accent-bright: #e80000;
  --accent-glow:   rgba(204, 0, 0, 0.4);
  --accent-subtle: rgba(204, 0, 0, 0.1);
  --text-primary:  #ffffff;
  --text-secondary:#a0a0a0;
  --text-muted:    #606060;
  --border:        rgba(204, 0, 0, 0.15);
  --border-hover:  rgba(204, 0, 0, 0.5);
  --nav-bg:        rgba(8, 8, 8, 0.85);
  --scrollbar-track: #111;
  --scrollbar-thumb: #cc0000;
}

.light {
  --bg-primary:    #fbfbfd;
  --bg-secondary:  #f1f1f6;
  --bg-card:       #ffffff;
  --bg-card-hover: #fff6f6;
  --accent:        #a30000;
  --accent-mid:    #c40000;
  --accent-bright: #cc0000;   /* readable, on-brand red on white */
  --accent-glow:   rgba(180, 0, 0, 0.20);
  --accent-subtle: rgba(180, 0, 0, 0.06);
  --text-primary:  #0b0b12;
  --text-secondary:#3d4452;
  --text-muted:    #6a7180;
  --border:        rgba(15, 15, 35, 0.10);
  --border-hover:  rgba(180, 0, 0, 0.42);
  --nav-bg:        rgba(251, 251, 253, 0.82);
  --scrollbar-track: #ececf0;
  --scrollbar-thumb: #a30000;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--scrollbar-track); }
::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 3px; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
}

/* ---- Typography ---- */
.text-gradient {
  background: linear-gradient(135deg, #ffffff 0%, var(--accent-bright) 60%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-red {
  background: linear-gradient(135deg, var(--accent-bright) 0%, #ff4444 50%, var(--accent-bright) 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 6s ease-in-out infinite;
}

.light .text-gradient-red {
  background: linear-gradient(135deg, #a30000 0%, #e01010 50%, #a30000 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* white-start gradient is invisible on light bg — recolor it */
.light .text-gradient {
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-bright) 75%);
  -webkit-background-clip: text;
  background-clip: text;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% center; }
  50%      { background-position: 100% center; }
}

/* ---- Navigation ---- */
#navbar {
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

#navbar.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.nav-link {
  position: relative;
  color: var(--text-secondary);
  transition: color 0.3s ease;
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--accent-bright);
  border-radius: 1px;
  transition: width 0.3s ease;
}

.nav-link:hover { color: var(--text-primary); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link.active { color: var(--text-primary); }

/* ---- Buttons ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid var(--accent-mid);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-mid), var(--accent-bright));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px var(--accent-glow); }
.btn-primary:active { transform: translateY(0); }
.btn-primary span, .btn-primary svg { position: relative; z-index: 1; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: transparent;
  color: var(--text-primary);
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid var(--border-hover);
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--accent-subtle);
  border-color: var(--accent-bright);
  transform: translateY(-2px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: transparent;
  color: var(--accent-bright);
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1px solid rgba(204, 26, 26, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-ghost:hover {
  background: var(--accent-subtle);
  border-color: var(--accent-bright);
}

/* ---- Hero Section ---- */
#hero {
  background: var(--bg-primary);
  position: relative;
}

.planet-wrap {
  position: absolute;
  bottom: -400px;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(600px, 80vw, 1000px);
  aspect-ratio: 1;
  pointer-events: none;
  z-index: 1;
}

.planet-circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(
    circle at 50% 5%,
    rgba(139, 0, 0, 0.08) 0%,
    rgba(80, 0, 0, 0.04) 30%,
    transparent 60%
  );
  border: 1px solid rgba(180, 20, 20, 0.22);
  box-shadow:
    0 -8px 60px rgba(150, 0, 0, 0.18),
    0 -2px 20px rgba(220, 0, 0, 0.12),
    inset 0 8px 40px rgba(100, 0, 0, 0.06);
}

.planet-atmosphere {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 110%;
  height: 80px;
  background: radial-gradient(
    ellipse at 50% 100%,
    rgba(139, 0, 0, 0.14) 0%,
    rgba(80, 0, 0, 0.07) 40%,
    transparent 70%
  );
  filter: blur(15px);
}

.hero-badge {
  opacity: 0;
  transform: translateY(20px);
}

.hero-title {
  opacity: 0;
  transform: translateY(30px);
}

.hero-subtitle {
  opacity: 0;
  transform: translateY(20px);
}

.hero-buttons {
  opacity: 0;
  transform: translateY(20px);
}

/* ---- Scroll Indicator ---- */
.scroll-indicator {
  width: 24px;
  height: 40px;
  border: 2px solid var(--border-hover);
  border-radius: 12px;
  position: relative;
  cursor: pointer;
}

.scroll-indicator::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--accent-bright);
  border-radius: 2px;
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { top: 6px; opacity: 1; }
  50%       { top: 20px; opacity: 0.3; }
}

/* ---- Marquee ---- */
.marquee-wrapper {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
  display: flex;
  gap: 80px;
  width: max-content;
  animation: marquee 35s linear infinite;
}

.marquee-track:hover { animation-play-state: paused; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.marquee-item:hover { color: var(--text-secondary); }

/* ---- Section headings ---- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 12px;
}

.section-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--accent-bright);
  border-radius: 1px;
}

/* ---- Service Cards ---- */
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

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

.service-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(139, 0, 0, 0.15);
}

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

.service-icon {
  width: 52px;
  height: 52px;
  background: var(--accent-subtle);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent-bright);
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  background: rgba(139, 0, 0, 0.2);
  border-color: var(--accent-bright);
  box-shadow: 0 0 20px var(--accent-glow);
}

/* ---- Project Cards ---- */
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: 0 25px 70px rgba(139, 0, 0, 0.18);
}

.project-image {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #2a0000 0%, #1a0808 50%, #111 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.project-image-placeholder {
  width: 60px;
  height: 60px;
  background: var(--accent-subtle);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-bright);
}

.category-badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--accent-subtle);
  color: var(--accent-bright);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(139, 0, 0, 0.2);
}

/* ---- Stats Section ---- */
.stats-section {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(139, 0, 0, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.stat-card {
  text-align: center;
  padding: 32px 20px;
  position: relative;
}

.stat-card::after {
  content: '';
  position: absolute;
  right: 0; top: 20%; bottom: 20%;
  width: 1px;
  background: var(--border);
}

.stat-card:last-child::after { display: none; }

.stat-number {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1;
  color: var(--accent-bright);
  display: block;
  margin-bottom: 8px;
}

/* ---- Process Steps ---- */
.process-step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.step-number {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: var(--accent-subtle);
  border: 1px solid var(--border-hover);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent-bright);
  position: relative;
}

.step-connector {
  position: absolute;
  top: 52px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 60px;
  background: linear-gradient(to bottom, var(--accent-bright), transparent);
}

/* ---- Contact Form ---- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  outline: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--accent-bright);
  box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.15);
}

.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-muted); }

.form-textarea { resize: vertical; min-height: 130px; }

/* ---- Footer ---- */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-link:hover { color: var(--accent-bright); }

/* ---- Theme Toggle ---- */
.theme-toggle {
  width: 42px;
  height: 42px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text-secondary);
}

.theme-toggle:hover {
  border-color: var(--accent-bright);
  color: var(--accent-bright);
  background: var(--accent-subtle);
}

/* ---- Mobile Menu ---- */
#mobileMenu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 49;
  background: var(--bg-primary);
  padding: 100px 24px 40px;
  flex-direction: column;
  gap: 8px;
}

#mobileMenu.open { display: flex; }

.mobile-nav-link {
  padding: 16px 20px;
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.mobile-nav-link:hover {
  color: var(--text-primary);
  background: var(--accent-subtle);
  border-color: var(--border);
}

/* ---- Glow Lines ---- */
.glow-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-bright), transparent);
  opacity: 0.4;
}

/* ---- Floating Orbs ---- */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.25;
  animation: orbFloat 10s ease-in-out infinite;
}

.orb-red {
  background: radial-gradient(circle, #8b0000, transparent);
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(30px, -40px) scale(1.08); }
  66%       { transform: translate(-20px, 20px) scale(0.95); }
}

/* ---- Alert / Toast ---- */
.alert {
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.alert-success {
  background: rgba(0, 100, 0, 0.15);
  border: 1px solid rgba(0, 160, 0, 0.3);
  color: #4ade80;
}

.alert-error {
  background: rgba(139, 0, 0, 0.15);
  border: 1px solid rgba(200, 0, 0, 0.3);
  color: #f87171;
}

/* ---- Divider ---- */
.section-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
  border-radius: 2px;
  margin: 16px auto 0;
}

/* ---- Reveal animations (initial state) ---- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Links page grid ---- */
.link-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.link-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(139, 0, 0, 0.12);
}

.link-icon {
  width: 44px; height: 44px;
  background: var(--accent-subtle);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-bright);
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.link-card:hover .link-icon {
  background: rgba(139, 0, 0, 0.2);
  border-color: var(--accent-bright);
}

/* ---- Theme-aware logo (JS swaps src — no layout shift) ---- */
.site-logo {
  height: 44px !important;
  width: auto !important;
  max-height: 44px !important;
  display: block;
  transition: opacity 0.3s ease;
}

/* ---- Admin ---- */
.admin-sidebar {
  width: 260px; background: var(--bg-secondary);
  border-right: 1px solid var(--border); min-height: 100vh;
  flex-shrink: 0; display: flex; flex-direction: column;
}
.admin-nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 20px; color: var(--text-secondary);
  text-decoration: none; border-radius: 8px; margin: 2px 8px;
  font-size: 0.9rem; font-weight: 500; transition: all 0.3s ease;
  border: 1px solid transparent;
}
.admin-nav-item:hover { color: var(--text-primary); background: var(--accent-subtle); border-color: var(--border); }
.admin-nav-item.active { color: var(--accent-bright); background: rgba(204,0,0,0.12); border-color: rgba(204,0,0,0.25); }
.admin-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 28px; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { padding: 12px 16px; text-align: left; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); border-bottom: 1px solid var(--border); }
.admin-table td { padding: 14px 16px; font-size: 0.9rem; color: var(--text-secondary); border-bottom: 1px solid rgba(204,0,0,0.06); vertical-align: middle; }
.admin-table tr:hover td { background: var(--accent-subtle); }
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }
.badge-new     { background: rgba(59,130,246,.15); color: #60a5fa; border: 1px solid rgba(59,130,246,.3); }
.badge-read    { background: rgba(0,0,0,.2); color: var(--text-muted); border: 1px solid var(--border); }
.badge-replied { background: rgba(0,120,0,.15); color: #4ade80; border: 1px solid rgba(0,160,0,.3); }

/* ---- Companies section ---- */
.company-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  transition: all 0.35s ease;
  cursor: default;
  position: relative;
  overflow: hidden;
}
.company-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-subtle) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.company-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 35px var(--accent-glow);
}
.company-card:hover::before { opacity: 1; }
.company-name {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color 0.3s ease;
  text-align: center;
  position: relative;
}
.company-card:hover .company-name { color: var(--text-primary); }
.company-logo-img {
  max-height: 56px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.company-card:hover .company-logo-img { opacity: 1 !important; transform: scale(1.03); }

/* ---- Project gallery (detail page) ---- */
.project-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
}
.project-gallery-thumb {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  padding: 0;
  background: var(--bg-card);
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.project-gallery-thumb img {
  width: 100%;
  height: 72px;
  object-fit: cover;
  display: block;
}
.project-gallery-thumb:hover,
.project-gallery-thumb.active {
  border-color: var(--accent-bright);
  transform: translateY(-2px);
}

/* ---- Site pop-up message ---- */
.site-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.site-popup-overlay.open {
  opacity: 1;
  visibility: visible;
}
.site-popup-dialog {
  width: min(480px, 100%);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  position: relative;
}
.site-popup-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
}
.site-popup-close:hover { color: var(--text-primary); border-color: var(--border-hover); }

/* ---- Scroll progress bar ---- */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright), #ff4444);
  z-index: 9999;
  transition: width 0.08s linear;
  box-shadow: 0 0 8px var(--accent-glow);
}

/* ---- Cursor glow ---- */
#cursor-glow {
  position: fixed;
  pointer-events: none;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(204,0,0,0.05) 0%, transparent 65%);
  border-radius: 50%;
  transform: translate(-50%,-50%);
  z-index: 1;
  transition: left 0.12s ease, top 0.12s ease;
  will-change: left, top;
}

/* ---- Custom cursor (ring follows + instant dot) ---- */
#cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 34px; height: 34px;
  border: 1.5px solid var(--accent-bright);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width .22s ease, height .22s ease, background-color .22s ease, border-color .22s ease, opacity .3s ease;
  will-change: left, top;
}
#cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 6px; height: 6px;
  background: var(--accent-bright);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10001;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px var(--accent-glow);
  transition: opacity .3s ease;
}
#cursor-ring.hovering {
  width: 56px; height: 56px;
  background: var(--accent-subtle);
  border-color: var(--accent-bright);
}
#cursor-ring.clicking { width: 24px; height: 24px; }

.cursor-trail {
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  background: var(--accent-bright);
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 6px var(--accent-glow);
}
@media (hover: none) { .cursor-trail { display: none !important; } }

/* Hide the native cursor only once the custom one is active (pointer devices) */
.has-custom-cursor,
.has-custom-cursor a,
.has-custom-cursor button,
.has-custom-cursor input,
.has-custom-cursor textarea,
.has-custom-cursor select { cursor: none; }

@media (hover: none) {
  #cursor-ring, #cursor-dot { display: none !important; }
}

/* ---- 3D card tilt ---- */
.service-card, .project-card {
  transform-style: preserve-3d;
  will-change: transform;
}

/* ---- Floating orb pulse ---- */
@keyframes orbPulse {
  0%, 100% { opacity: 0.18; transform: scale(1) translate(0,0); }
  33%       { opacity: 0.28; transform: scale(1.08) translate(20px,-30px); }
  66%       { opacity: 0.14; transform: scale(0.94) translate(-15px,15px); }
}
.orb { animation: orbPulse 12s ease-in-out infinite; }

/* ---- Shimmer on cards (hover) ---- */
.service-card::after, .project-card::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.04), transparent);
  transform: skewX(-20deg);
  transition: none;
  pointer-events: none;
}
.service-card:hover::after, .project-card:hover::after {
  animation: shimmer 0.65s ease forwards;
}
@keyframes shimmer {
  to { left: 160%; }
}

/* ---- Split-text hero title reveal ---- */
.char {
  display: inline-block;
  opacity: 0;
  transform: translateY(60px) rotate(4deg);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.char.in { opacity: 1; transform: none; }

/* section-label uses ::before only — no ::after */

/* ---- Animated counter pulse ---- */
@keyframes countPop {
  0%  { transform: scale(1); }
  50% { transform: scale(1.15); color: #ff4444; }
  100%{ transform: scale(1); }
}
.stat-number.popped { animation: countPop 0.4s ease; }

/* ---- Projects full page ---- */
.filter-btn {
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--accent-subtle);
  border-color: var(--accent-bright);
  color: var(--accent-bright);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .admin-sidebar { display: none; }
  .planet-wrap { width: 350px; bottom: -200px; }
  .stat-card::after { display: none; }
  .process-step .step-connector { display: none; }
  #cursor-glow { display: none; }
}

/* ============================================
   LIGHT MODE — FULL REDESIGN
   ============================================ */

/* Hide every dark-mode-only element */
.light #starCanvas,
.light .planet-wrap,
.light #cursor-glow { display: none; }
.light .orb          { display: none !important; }

/* NAV */
.light #navbar { border-bottom: 1px solid rgba(0,0,0,0.06); }
.light #navbar.scrolled { box-shadow: 0 1px 24px rgba(0,0,0,0.08); border-bottom-color: rgba(0,0,0,0.08); }

/* HERO — luminous tech canvas: drifting dot-grid + animated brand blobs */
.light #hero {
  background:
    radial-gradient(circle at 1.5px 1.5px, rgba(120,0,0,0.07) 1.5px, transparent 0) 0 0 / 34px 34px,
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(180,0,0,0.06) 0%, transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #fbfbfd 60%, #f4f4f8 100%) !important;
  animation: gridDrift 40s linear infinite;
}

.light #hero::before {
  content: '';
  position: absolute;
  top: -28vw; right: -16vw;
  width: 70vw; height: 70vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,0,0,0.10) 0%, rgba(180,0,0,0.035) 42%, transparent 70%);
  border: 1px solid rgba(180,0,0,0.07);
  pointer-events: none; z-index: 0;
  animation: blobFloat 18s ease-in-out infinite;
}

.light #hero::after {
  content: '';
  position: absolute;
  bottom: -14vw; left: -10vw;
  width: 46vw; height: 46vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,0,0,0.07) 0%, transparent 65%);
  border: 1px solid rgba(180,0,0,0.05);
  pointer-events: none; z-index: 0;
  animation: blobFloat 22s ease-in-out infinite reverse;
}

@keyframes gridDrift {
  from { background-position: 0 0, center top, center top; }
  to   { background-position: 34px 34px, center top, center top; }
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-3vw, 3vw) scale(1.06); }
}

/* Hero badge: fix salmon (#f87171) — bad contrast on white */
.light .hero-badge > span {
  color: var(--accent) !important;
  background: rgba(180,0,0,0.07) !important;
  border-color: rgba(180,0,0,0.22) !important;
}

/* Hero buttons */
.light .btn-secondary {
  color: var(--text-primary);
  border-color: rgba(0,0,0,0.18);
}
.light .btn-secondary:hover { border-color: var(--accent-bright); }

/* Logo — JS swaps to black logo; this filter covers the pre-JS flash */
.light .site-logo[src*="white"] { filter: invert(1); }

/* CARDS — shadows so they're visible on white/light bg */
.light .service-card {
  border-color: rgba(0,0,0,0.07);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
}
.light .service-card:hover {
  border-color: rgba(185,28,28,0.2);
  box-shadow: 0 8px 32px rgba(185,28,28,0.1), 0 2px 8px rgba(0,0,0,0.05);
}
.light .project-card {
  border-color: rgba(0,0,0,0.07);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
}
.light .project-card:hover {
  border-color: rgba(185,28,28,0.2);
  box-shadow: 0 8px 32px rgba(185,28,28,0.1), 0 2px 8px rgba(0,0,0,0.05);
}
.light .company-card {
  border-color: rgba(0,0,0,0.06);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.light .link-card {
  border-color: rgba(0,0,0,0.07);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.light .link-card:hover {
  border-color: rgba(185,28,28,0.2);
  box-shadow: 0 6px 24px rgba(185,28,28,0.08);
}
.light .admin-card {
  border-color: rgba(0,0,0,0.07);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

/* Stat row */
.light .stat-row { border-color: rgba(0,0,0,0.07) !important; }
.light .stat-card::after { background: rgba(0,0,0,0.07); }

/* Form inputs */
.light .form-input,
.light .form-textarea,
.light .form-select {
  border-color: rgba(0,0,0,0.14);
  background: #fafafa;
}
.light .form-input:focus,
.light .form-textarea:focus {
  border-color: var(--accent-mid);
  box-shadow: 0 0 0 3px rgba(185,28,28,0.1);
}

/* Shimmer lighter */
.light .service-card:hover::after,
.light .project-card:hover::after {
  background: linear-gradient(90deg, transparent, rgba(0,0,0,0.025), transparent);
}

/* Section alternating bg for rhythm */
.light #services  { background: #ffffff !important; }
.light #projects  { background: #f5f5f7 !important; }
.light #process   { background: #ffffff !important; }
.light #contact   { background: #f5f5f7 !important; }

/* Glow line / scroll progress */
.light .glow-line { opacity: 0.15; }
.light #scroll-progress { box-shadow: 0 0 8px rgba(185,28,28,0.2); }

/* Marquee */
.light .marquee-item { color: var(--text-secondary); }

/* Mobile menu */
.light #mobileMenu { border-right: 1px solid rgba(0,0,0,0.06); }

/* Project image placeholder — swap dark maroon for light gray */
.light .project-image {
  background: linear-gradient(135deg, #f0f0f2 0%, #e8e8ea 50%, #e0e0e2 100%);
}

/* Stats section radial glow — tone down on white bg */
.light .stats-section::before {
  background: radial-gradient(circle, rgba(180,0,0,0.05) 0%, transparent 60%);
}

/* Featured badge inline style is dark-maroon-tuned — readable on light */
.light .category-badge {
  background: rgba(180,0,0,0.08);
  border-color: rgba(180,0,0,0.22) !important;
}

/* Success alert green is too pale on light bg */
.light .alert-success {
  background: rgba(22,128,60,0.10);
  border-color: rgba(22,128,60,0.30);
  color: #15803d;
}
.light .alert-error {
  background: rgba(180,0,0,0.08);
  border-color: rgba(180,0,0,0.28);
  color: #b30000;
}

/* Section divider + glow line read better with a touch more presence */
.light .section-divider { box-shadow: 0 1px 6px rgba(180,0,0,0.18); }

/* Step connector / number — keep crisp on light */
.light .step-number { box-shadow: 0 2px 10px rgba(180,0,0,0.10); }

/* Footer on light: clear separation */
.light footer { border-top-color: rgba(15,15,35,0.10); }

/* Theme toggle pops on light */
.light .theme-toggle { box-shadow: 0 1px 3px rgba(0,0,0,0.06); }

/* ============================================
   EXTRA MOTION — applies to both themes
   ============================================ */

/* Animated flowing section divider */
.section-divider {
  background: linear-gradient(90deg, var(--accent), var(--accent-bright), #ff5555, var(--accent-bright), var(--accent));
  background-size: 200% auto;
  animation: gradientShift 5s ease-in-out infinite;
}

/* Glow line gently breathes */
.glow-line {
  background: linear-gradient(90deg, transparent, var(--accent-bright), transparent);
  background-size: 200% auto;
  animation: gradientShift 7s ease-in-out infinite;
}

/* Pulsing ring around the "now accepting" status dot */
.hero-badge .animate-pulse {
  position: relative;
}
.hero-badge .animate-pulse::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--accent-bright);
  opacity: 0;
  animation: statusRing 2.4s ease-out infinite;
}
@keyframes statusRing {
  0%   { transform: scale(0.6); opacity: 0.7; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* Planet breathes (dark mode) */
.planet-circle { animation: planetBreathe 9s ease-in-out infinite; }
@keyframes planetBreathe {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50%      { transform: scale(1.025); filter: brightness(1.15); }
}

/* Logo lifts subtly on hover */
.site-logo { will-change: transform, opacity; }
a:hover > .site-logo { transform: scale(1.04); }

/* Service icons float on card hover for a touch of life */
.service-card:hover .service-icon { animation: iconFloat 1.6s ease-in-out infinite; }
@keyframes iconFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}

/* Primary buttons get a slow ambient sheen sweep */
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -150%;
  width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.28), transparent);
  transform: skewX(-20deg);
  animation: btnSheen 5.5s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}
@keyframes btnSheen {
  0%, 65% { left: -150%; }
  100%    { left: 150%; }
}

/* ---- FAQ Accordion ---- */
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .3s ease, box-shadow .3s ease, background .3s ease;
}
.light .faq-item { box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.faq-item:hover { border-color: var(--border-hover); }
.faq-item.open {
  border-color: var(--border-hover);
  box-shadow: 0 14px 44px var(--accent-glow);
}
.faq-question {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 26px;
  background: transparent; border: none; cursor: pointer;
  text-align: left;
  font-family: 'Inter', sans-serif;
  font-size: 1.02rem; font-weight: 600;
  color: var(--text-primary);
  transition: color .25s ease;
}
.faq-question:hover { color: var(--accent-bright); }
.faq-icon {
  flex-shrink: 0;
  color: var(--accent-bright);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
}
.faq-item.open .faq-icon { transform: rotate(135deg); }
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s ease;
}
.faq-item.open .faq-answer { grid-template-rows: 1fr; }
.faq-answer > p {
  overflow: hidden;
  margin: 0;
  padding: 0 26px;
  color: var(--text-secondary);
  font-size: .95rem; line-height: 1.7;
  transition: padding .35s ease;
}
.faq-item.open .faq-answer > p { padding: 0 26px 22px; }

/* ---- Back to Top ---- */
#back-to-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent-mid);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 9990;
  opacity: 0; visibility: hidden;
  transform: translateY(16px) scale(.9);
  transition: opacity .35s ease, transform .35s ease, visibility .35s, box-shadow .3s ease;
  box-shadow: 0 8px 30px var(--accent-glow);
}
#back-to-top.visible { opacity: 1; visibility: visible; transform: none; }
#back-to-top:hover { transform: translateY(-3px) scale(1.06); box-shadow: 0 12px 42px var(--accent-glow); }
.has-custom-cursor #back-to-top { cursor: none; }

/* ---- Mobile / responsive tightening ---- */
@media (max-width: 768px) {
  .service-card { padding: 26px; }
  .project-card .p-6 { padding: 20px; }
  .step-number { width: 46px; height: 46px; font-size: 1.05rem; }
  .process-step { gap: 18px; }
}

@media (max-width: 640px) {
  .service-card { padding: 22px; }
  .admin-card { padding: 20px; }
  .faq-question { padding: 18px 18px; font-size: .95rem; }
  .faq-answer > p { padding: 0 18px; }
  .faq-item.open .faq-answer > p { padding: 0 18px 18px; }
  .stat-number { font-size: clamp(2rem, 9vw, 2.6rem); }
  .stat-card { padding: 22px 10px; }
  .marquee-track { gap: 48px; }
  .marquee-item { font-size: .8rem; }
  .section-label { font-size: .72rem; letter-spacing: .12em; }
  .btn-primary, .btn-secondary { padding: 13px 22px; font-size: .92rem; }
  #back-to-top { bottom: 18px; right: 18px; width: 44px; height: 44px; }
  .link-card { padding: 18px; }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---- Project Detail Modal ---- */
.pm-overlay {
  position: fixed; inset: 0; z-index: 10050;
  display: none; align-items: center; justify-content: center;
  padding: 24px;
}
.pm-overlay.open { display: flex; }
.pm-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: pmFade .3s ease;
}
.light .pm-backdrop { background: rgba(25,12,12,0.42); }
.pm-dialog {
  position: relative; z-index: 1;
  width: 100%; max-width: 620px;
  max-height: 90vh; overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-hover);
  border-radius: 18px;
  box-shadow: 0 30px 90px rgba(0,0,0,0.55);
  animation: pmPop .38s cubic-bezier(.2,.9,.3,1.15);
}
.light .pm-dialog { box-shadow: 0 30px 90px rgba(120,0,0,0.18); }
.pm-image-wrap {
  position: relative;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #2a0000 0%, #1a0808 50%, #111 100%);
  display: flex; align-items: center; justify-content: center;
  border-radius: 18px 18px 0 0; overflow: hidden;
}
.light .pm-image-wrap { background: linear-gradient(135deg,#f0f0f2 0%,#e8e8ea 50%,#e0e0e2 100%); }
.pm-image { width: 100%; height: 100%; object-fit: cover; display: none; }
.pm-placeholder { color: var(--accent-bright); opacity: .6; display: flex; }
.pm-body { padding: 28px; }
.pm-close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(0,0,0,0.45); color: #fff; border: 1px solid rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background .25s ease, transform .25s ease;
}
.pm-close:hover { background: var(--accent); transform: rotate(90deg); }
.has-custom-cursor .pm-close, .has-custom-cursor [data-project] { cursor: none; }
@keyframes pmFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pmPop {
  from { opacity: 0; transform: translateY(22px) scale(.95); }
  to   { opacity: 1; transform: none; }
}
@media (max-width: 640px) { .pm-body { padding: 22px; } }

/* ---- Testimonials ---- */
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.4s ease;
  position: relative;
}
.light .testimonial-card { box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.testimonial-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 18px 50px rgba(139,0,0,0.14);
}
.testimonial-stars { color: #f59e0b; letter-spacing: 2px; font-size: 0.95rem; }
.testimonial-quote {
  color: var(--text-secondary);
  font-size: 0.96rem;
  line-height: 1.7;
  font-style: italic;
  flex: 1;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border-hover);
}
.testimonial-initial {
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-subtle);
  color: var(--accent-bright);
  font-weight: 800;
}

/* ---- Team ---- */
.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
  position: relative;
  transition: all 0.4s ease;
}
.light .team-card { box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.team-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 18px 50px rgba(139,0,0,0.14);
}
.team-photo {
  width: 88px; height: 88px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto;
  display: block;
  border: 2px solid var(--border-hover);
  transition: transform 0.4s ease;
}
.team-card:hover .team-photo { transform: scale(1.05); }
.team-initial {
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-subtle);
  color: var(--accent-bright);
  font-size: 2rem; font-weight: 800;
}
.team-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  margin-top: 14px;
  border-radius: 50%;
  background: var(--accent-subtle);
  border: 1px solid var(--border);
  color: var(--accent-bright);
  transition: all 0.3s ease;
}
.team-link:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ---- Skip link (a11y) ---- */
.skip-link {
  position: absolute;
  left: -9999px; top: 0;
  z-index: 100000;
  background: var(--accent);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 8px 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* Visible keyboard focus everywhere (a11y) */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 2px;
}

/* ---- Drag-to-reorder handle ---- */
.drag-handle {
  cursor: grab;
  color: var(--text-muted);
  font-size: 1.1rem;
  letter-spacing: -2px;
  user-select: none;
  width: 28px;
  text-align: center;
}
.drag-handle:active { cursor: grabbing; }
tr[draggable="true"] { background: var(--accent-subtle) !important; }

/* ---- Blog cards ---- */
.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: all 0.4s ease;
}
.light .post-card { box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.post-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-5px);
  box-shadow: 0 20px 55px rgba(139,0,0,0.16);
}
.post-cover {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #2a0000 0%, #1a0808 50%, #111 100%);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  color: var(--accent-bright);
}
.light .post-cover { background: linear-gradient(135deg,#f0f0f2 0%,#e8e8ea 50%,#e0e0e2 100%); }
.post-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post-card:hover .post-cover img { transform: scale(1.05); }
.post-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.prose p { margin-bottom: 1.1rem; line-height: 1.8; color: var(--text-secondary); }

/* ---- Admin table search ---- */
.admin-search-wrap {
  position: relative; margin-bottom: 18px; max-width: 320px;
}
.admin-search-wrap svg {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); pointer-events: none;
}
.admin-search {
  width: 100%; padding: 10px 14px 10px 38px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 9px; color: var(--text-primary); font-size: .9rem; outline: none;
  font-family: 'Inter', sans-serif;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.admin-search:focus { border-color: var(--accent-bright); box-shadow: 0 0 0 3px var(--accent-subtle); }
