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

/* ═══════════════════════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════════════════════ */
:root {
  /* Backgrounds */
  --bg: #030014;
  --bg-darker: #02000a;
  --bg-card: #0a0820;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-bright: rgba(255, 255, 255, 0.07);

  /* Borders */
  --border: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(99, 102, 241, 0.4);
  --border-focus: rgba(99, 102, 241, 0.6);

  /* Accent Colors */
  --accent: #6366f1;
  --accent-hover: #818cf8;
  --accent-secondary: #06b6d4;
  --accent-green: #10b981;
  --accent-red: #ef4444;
  --accent-amber: #f59e0b;
  --accent-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #06b6d4 100%);

  /* Text */
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-faint: #334155;

  /* Shadows */
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-accent: 0 0 40px -8px rgba(99, 102, 241, 0.25);
  --shadow-premium: 0 20px 60px -12px rgba(99, 102, 241, 0.2);

  /* Layout */
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  /* Transitions */
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;

  /* Admin */
  --sidebar-w: 265px;
  --topbar-h: 72px;

  /* Fluid Typography */
  --space-unit: clamp(4rem, 8vw, 7rem);
  --font-h1: clamp(2.8rem, 7vw, 6rem);
  --font-h2: clamp(2rem, 4.5vw, 3.5rem);
  --font-body: clamp(0.95rem, 1.2vw, 1.1rem);
}

/* ═══════════════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-darker); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-hover); }

/* ═══════════════════════════════════════════════════════
   BACKGROUND CANVAS
═══════════════════════════════════════════════════════ */
#bg-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
}

/* ═══════════════════════════════════════════════════════
   UTILITIES
═══════════════════════════════════════════════════════ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; position: relative; z-index: 1; }
.section { padding: var(--space-unit) 0; overflow: hidden; }

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.badge-premium {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 99px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-hover);
  backdrop-filter: blur(10px);
}

/* ═══════════════════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════════════════ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 2000;
  padding: 1.5rem 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(3, 0, 20, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.navbar-inner { display: flex; justify-content: space-between; align-items: center; }

.navbar-logo {
  font-size: 1.2rem; font-weight: 800;
  text-decoration: none; color: var(--text);
  display: flex; align-items: center; gap: 0.75rem;
  z-index: 2100;
}

.navbar-logo .logo-box {
  width: 38px; height: 38px;
  background: var(--accent-gradient);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 800;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
}

.navbar-links { display: flex; align-items: center; gap: 2rem; }

.navbar-links a {
  color: var(--text-muted); text-decoration: none;
  font-size: 0.88rem; font-weight: 500;
  transition: color 0.2s;
  position: relative;
}

.navbar-links a:not(.btn-premium)::after {
  content: '';
  position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--accent-gradient);
  border-radius: 2px; transform: scaleX(0);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar-links a:hover { color: var(--text); }
.navbar-links a:not(.btn-premium):hover::after { transform: scaleX(1); }

/* MOBILE MENU TOGGLE */
.nav-toggle {
  display: none; background: none;
  border: 1px solid var(--border); color: white;
  font-size: 1.1rem; cursor: pointer;
  z-index: 2100; border-radius: var(--radius-sm);
  padding: 0.5rem 0.65rem;
  transition: var(--transition-fast);
}
.nav-toggle:hover { background: var(--surface); border-color: var(--border-hover); }

/* MOBILE OVERLAY */
.mobile-overlay {
  position: fixed; inset: 0;
  background: rgba(2, 0, 14, 0.97);
  backdrop-filter: blur(24px);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 1.75rem; z-index: 2050;
  opacity: 0; pointer-events: none;
  transform: translateY(-8px);
  transition: var(--transition);
}

.mobile-overlay.active { opacity: 1; pointer-events: auto; transform: translateY(0); }

.mobile-overlay a {
  font-size: 1.8rem; font-weight: 800;
  color: var(--text-muted); text-decoration: none;
  transition: color 0.2s;
}
.mobile-overlay a:hover { color: var(--text); }

@media (max-width: 768px) {
  .navbar-links { display: none; }
  .nav-toggle { display: flex; align-items: center; }
}

/* ═══════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════ */
.btn-premium {
  padding: 0.8rem 2rem;
  border-radius: 99px; font-weight: 600;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.6rem;
  cursor: pointer; transition: var(--transition);
  border: none; font-size: 0.9rem; font-family: inherit;
  letter-spacing: 0.01em;
}

.btn-fill {
  background: var(--accent-gradient);
  color: white;
  box-shadow: 0 8px 28px -8px rgba(99, 102, 241, 0.45);
}
.btn-fill:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px -8px rgba(99, 102, 241, 0.6);
}

.btn-outline {
  background: rgba(255,255,255,0.04);
  color: var(--text-muted);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.btn-outline:hover {
  background: rgba(99, 102, 241, 0.08);
  border-color: var(--border-hover);
  color: white;
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════
   HERO SECTION
═══════════════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 9rem 0 5rem;
  position: relative;
}

.hero-eyebrow { margin-bottom: 2rem; }

.hero-title {
  font-size: var(--font-h1);
  font-weight: 900; line-height: 1.02;
  letter-spacing: -0.04em;
  margin-bottom: 1.75rem;
}

.hero-description {
  font-size: var(--font-body);
  color: var(--text-muted);
  max-width: 580px; line-height: 1.75;
  margin-bottom: 3rem;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ═══════════════════════════════════════════════════════
   SECTION HEADER
═══════════════════════════════════════════════════════ */
.section-header { margin-bottom: 4rem; }
.section-header h2 {
  font-size: var(--font-h2);
  font-weight: 800; line-height: 1.1;
  margin-top: 0.75rem;
  letter-spacing: -0.03em;
}

/* ═══════════════════════════════════════════════════════
   ABOUT SECTION
═══════════════════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: center;
}

.about-image-wrap {
  position: relative;
}
.about-image-wrap::before {
  content: '';
  position: absolute;
  inset: -20px;
  background: var(--accent-gradient);
  border-radius: var(--radius-xl);
  opacity: 0.08;
  z-index: 0;
}
.about-image-wrap img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  position: relative; z-index: 1;
  object-fit: cover;
}
.about-image-placeholder {
  width: 100%; aspect-ratio: 3/4;
  background: linear-gradient(135deg, var(--bg-card), #0d0a2e);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 6rem; position: relative; z-index: 1;
}

.about-content .about-description {
  font-size: 1.05rem; color: var(--text-muted);
  line-height: 1.8; margin: 1.5rem 0 2.5rem;
  white-space: pre-line;
}

.skills-list {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
  margin-top: 1.5rem;
}

.skill-tag {
  padding: 0.4rem 1rem;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 99px;
  font-size: 0.8rem; font-weight: 600;
  color: var(--accent-hover);
  transition: var(--transition-fast);
}
.skill-tag:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: var(--accent);
}

/* ═══════════════════════════════════════════════════════
   PROJECTS GRID
═══════════════════════════════════════════════════════ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.project-card-premium {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}

.project-card-premium::before {
  content: '';
  position: absolute;
  inset: 0; border-radius: var(--radius-lg);
  background: var(--accent-gradient);
  opacity: 0; z-index: 0;
  transition: opacity 0.4s;
}

.project-card-premium:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: var(--shadow-premium);
}
.project-card-premium:hover::before { opacity: 0.03; }

.project-image-box {
  aspect-ratio: 16/10; overflow: hidden;
  background: var(--bg-card);
  position: relative; z-index: 1;
}
.project-image-box img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.project-card-premium:hover .project-image-box img { transform: scale(1.06); }

.project-info {
  padding: 1.75rem;
  position: relative; z-index: 1;
}
.project-info h3 {
  font-size: 1.3rem; font-weight: 700;
  margin-bottom: 0.75rem; color: var(--text);
}
.project-info p { color: var(--text-muted); margin-bottom: 1.5rem; font-size: 0.95rem; line-height: 1.65; }

/* ═══════════════════════════════════════════════════════
   CERTIFICATES GRID
═══════════════════════════════════════════════════════ */
.certificates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.75rem;
}

.cert-card-premium {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}
.cert-card-premium:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-accent);
}

.cert-image-box {
  width: 100%; aspect-ratio: 16/10;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--bg-darker);
}
.cert-image-box img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.cert-card-premium:hover .cert-image-box img { transform: scale(1.04); }

.cert-body { padding: 1.5rem; }
.cert-body h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.4rem; color: var(--text); }
.cert-body .cert-meta {
  color: var(--accent-hover); font-weight: 600;
  font-size: 0.85rem; margin-bottom: 1rem;
}
.cert-body .cert-verify {
  color: var(--text-dim); text-decoration: none;
  font-size: 0.82rem;
  display: inline-flex; align-items: center; gap: 0.4rem;
  transition: color 0.2s;
}
.cert-body .cert-verify:hover { color: var(--accent-hover); }

/* ═══════════════════════════════════════════════════════
   ACTIVITIES SECTION
═══════════════════════════════════════════════════════ */
.activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.75rem;
}

.activity-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex; flex-direction: column;
}
.activity-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-5px);
  box-shadow: var(--shadow-premium);
}

.activity-image-box {
  aspect-ratio: 16/10; overflow: hidden;
  background: var(--bg-card);
}
.activity-image-box img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.activity-card:hover .activity-image-box img { transform: scale(1.06); }
.activity-image-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-card); font-size: 3.5rem;
}

.activity-body {
  padding: 1.5rem;
  flex: 1; display: flex; flex-direction: column;
}
.activity-type-badge {
  display: inline-block; margin-bottom: 0.75rem;
  padding: 0.25rem 0.75rem;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 99px;
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent-hover);
}
.activity-body h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.4rem; }
.activity-meta { color: var(--accent-hover); font-size: 0.85rem; font-weight: 600; margin-bottom: 0.75rem; }
.activity-body p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.65; }

/* ═══════════════════════════════════════════════════════
   CONTACT SECTION
═══════════════════════════════════════════════════════ */
.contact-wrapper {
  background: linear-gradient(135deg, rgba(99,102,241,0.06) 0%, rgba(6,182,212,0.04) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 5rem 2rem;
  text-align: center;
  position: relative; overflow: hidden;
}
.contact-wrapper::before {
  content: '';
  position: absolute;
  top: -60px; left: 50%; transform: translateX(-50%);
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(99,102,241,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.contact-wrapper h2 {
  font-size: var(--font-h2);
  font-weight: 800; margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
}
.contact-wrapper p {
  font-size: 1.05rem; color: var(--text-muted);
  max-width: 520px; margin: 0 auto 3rem;
  line-height: 1.75;
}
.contact-actions {
  display: flex; gap: 1rem;
  justify-content: center; flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════ */
.site-footer {
  padding: 3.5rem 0;
  border-top: 1px solid var(--border);
  background: var(--bg-darker);
}
.site-footer .container {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer-copy { color: var(--text-dim); font-size: 0.85rem; }
.footer-logo { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 0.9rem; }

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — FRONTEND
═══════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-image-wrap { max-width: 340px; margin: 0 auto; }
  .projects-grid { grid-template-columns: 1fr; }
  .certificates-grid { grid-template-columns: 1fr; }
  .activities-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .hero { text-align: center; padding: 8rem 0 4rem; }
  .hero-description { margin-inline: auto; }
  .hero-actions { justify-content: center; flex-direction: column; }
  .btn-premium { width: 100%; justify-content: center; }
  .site-footer .container { flex-direction: column; text-align: center; }
  .contact-actions { flex-direction: column; align-items: center; }
}

/* ═══════════════════════════════════════════════════════
   ╔═══════════════════════════════════════════════════╗
   ║                  ADMIN PANEL                      ║
   ╚═══════════════════════════════════════════════════╝
═══════════════════════════════════════════════════════ */

/* ─── ADMIN SIDEBAR ─── */
.sidebar {
  position: fixed; left: 0; top: 0; bottom: 0;
  width: var(--sidebar-w);
  background: #030112;
  border-right: 1px solid var(--border);
  padding: 0;
  z-index: 1100;
  display: flex; flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}

.sidebar-logo {
  font-size: 1.1rem; font-weight: 800;
  display: flex; align-items: center; gap: 0.7rem;
  color: var(--text);
  text-decoration: none;
}

.sidebar-logo-icon {
  width: 34px; height: 34px;
  background: var(--accent-gradient);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem; font-weight: 900;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.sidebar-close {
  background: none; border: none;
  color: var(--text-muted); font-size: 1.25rem;
  cursor: pointer; display: none;
  padding: 0.25rem;
  transition: color 0.2s;
}
.sidebar-close:hover { color: var(--text); }

.sidebar-nav { flex: 1; overflow-y: auto; padding: 1.25rem 1rem; }
.sidebar-nav::-webkit-scrollbar { display: none; }

.sidebar-section-label {
  font-size: 0.65rem; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--text-dim);
  font-weight: 700; padding: 0.5rem 0.75rem 0.5rem;
  margin-top: 1rem; display: block;
}

.sidebar-link {
  display: flex; align-items: center; gap: 0.85rem;
  color: var(--text-muted); text-decoration: none;
  padding: 0.72rem 0.9rem;
  border-radius: 10px;
  font-size: 0.88rem; font-weight: 500;
  transition: all 0.2s; margin-bottom: 0.15rem;
  border: 1px solid transparent;
}

.sidebar-link i { width: 18px; text-align: center; font-size: 0.9rem; flex-shrink: 0; }

.sidebar-link:hover {
  background: rgba(99, 102, 241, 0.08);
  color: var(--text);
  border-color: rgba(99, 102, 241, 0.12);
}

.sidebar-link.active {
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent-hover);
  border-color: rgba(99, 102, 241, 0.25);
  font-weight: 600;
}

.sidebar-link.active i { color: var(--accent); }

.sidebar-footer {
  padding: 1rem;
  border-top: 1px solid var(--border);
}

.sidebar-footer .sidebar-link {
  color: var(--text-dim);
}
.sidebar-footer .sidebar-link:hover {
  color: var(--accent-red);
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.12);
}

/* ─── ADMIN MAIN ─── */
.admin-main {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  display: flex; flex-direction: column;
  background: #040218;
  transition: margin-left 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── TOPBAR ─── */
.topbar {
  height: var(--topbar-h);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem;
  background: rgba(4, 2, 24, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: sticky; top: 0; z-index: 1000;
}

.topbar-left { display: flex; align-items: center; gap: 1rem; }

.mobile-sidebar-toggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  font-size: 1rem; cursor: pointer;
  display: none; align-items: center; justify-content: center;
  transition: var(--transition-fast);
}
.mobile-sidebar-toggle:hover {
  background: var(--surface); color: var(--text);
  border-color: var(--border-hover);
}

.topbar-title {
  font-size: 1rem; font-weight: 700; color: var(--text);
}

.topbar-right { display: flex; align-items: center; gap: 0.75rem; }

.topbar-user-name {
  font-size: 0.82rem; color: var(--text-muted); font-weight: 500;
}

.topbar-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.9rem;
  box-shadow: 0 3px 12px rgba(99, 102, 241, 0.3);
}

/* ─── CONTENT AREA ─── */
.content-area {
  padding: 2rem;
  flex: 1;
}

/* ─── ADMIN ALERT / TOAST ─── */
.admin-alert {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.9rem 1.25rem;
  border-radius: 12px;
  margin-bottom: 1.75rem;
  font-size: 0.88rem; font-weight: 500;
}
.admin-alert-success {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #34d399;
}
.admin-alert-error {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #fca5a5;
}

/* ─── STAT CARDS (Dashboard) ─── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: #08051f;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex; gap: 1.25rem; align-items: center;
  transition: var(--transition-fast);
}
.stat-card:hover {
  border-color: rgba(99, 102, 241, 0.2);
  transform: translateY(-2px);
}

.stat-card-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}

.stat-card-num {
  font-size: 2rem; font-weight: 900;
  line-height: 1; margin-bottom: 0.3rem;
}

.stat-card-label {
  color: var(--text-muted); font-size: 0.82rem; font-weight: 500;
}

/* ─── PANEL CARD ─── */
.panel {
  background: #07041a;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.panel-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.panel-title {
  font-size: 0.95rem; font-weight: 700; color: var(--text);
  display: flex; align-items: center; gap: 0.6rem;
}
.panel-title i { color: var(--accent); }

/* ─── TABLE ─── */
.table-wrap { overflow-x: auto; }

table {
  width: 100%; border-collapse: collapse;
  font-size: 0.88rem;
}

thead tr {
  border-bottom: 1px solid var(--border);
}

th {
  padding: 0.85rem 1.5rem;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  white-space: nowrap;
}

td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--text-muted);
  vertical-align: middle;
}

tbody tr:last-child td { border-bottom: none; }

tbody tr { transition: background 0.15s; }
tbody tr:hover { background: rgba(99, 102, 241, 0.04); }

/* Table Components */
.project-thumb {
  width: 44px; height: 30px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.project-thumb-placeholder {
  width: 44px; height: 30px;
  background: #0d0a2e;
  border-radius: 6px;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; flex-shrink: 0;
}

.table-badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.25rem 0.65rem;
  border-radius: 99px;
  font-size: 0.72rem; font-weight: 600;
}

.table-badge-featured {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: #fcd34d;
}

.td-actions { display: flex; align-items: center; gap: 0.5rem; justify-content: flex-end; }

.empty-state {
  display: flex; flex-direction: column; align-items: center;
  gap: 0.75rem; padding: 3.5rem 1rem;
  color: var(--text-dim); text-align: center;
}
.empty-state i { font-size: 2.5rem; color: var(--text-faint); }
.empty-state p { font-size: 0.9rem; }

/* ─── ADMIN BUTTONS ─── */
.btn-admin {
  padding: 0.6rem 1.2rem;
  border-radius: 9px; font-weight: 600;
  cursor: pointer; transition: var(--transition-fast);
  border: 1px solid transparent;
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.83rem; font-family: inherit; white-space: nowrap;
  text-decoration: none; line-height: 1;
}

.btn-admin-primary {
  background: var(--accent);
  color: white; border-color: var(--accent);
}
.btn-admin-primary:hover {
  background: var(--accent-hover); border-color: var(--accent-hover);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
  transform: translateY(-1px);
}

.btn-admin-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}
.btn-admin-ghost:hover {
  background: var(--surface-bright);
  color: var(--text); border-color: rgba(255,255,255,0.15);
}

.btn-admin-danger {
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5; border-color: rgba(239, 68, 68, 0.25);
}
.btn-admin-danger:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ffffff; border-color: rgba(239, 68, 68, 0.5);
}

.btn-admin-success {
  background: rgba(16, 185, 129, 0.1);
  color: #34d399; border-color: rgba(16, 185, 129, 0.25);
}
.btn-admin-success:hover {
  background: rgba(16, 185, 129, 0.2); color: white;
}

/* ─── FORMS ─── */
.form-card { padding: 1.75rem; }

.form-section-title {
  font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-dim);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group { margin-bottom: 1.25rem; }

.form-label {
  display: block;
  font-size: 0.8rem; font-weight: 600;
  color: var(--text-muted); margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}

.form-label .required { color: #f87171; margin-left: 2px; }

.form-input, .form-textarea, .form-select {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  transition: all 0.2s;
  outline: none;
}

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

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--accent);
  background: rgba(99, 102, 241, 0.06);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

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

.form-select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.form-select option { background: #0a0820; color: var(--text); }

.form-hint {
  font-size: 0.78rem; color: var(--text-dim);
  margin-top: 0.35rem; line-height: 1.5;
}

.invalid-feedback {
  font-size: 0.78rem; color: #f87171;
  margin-top: 0.35rem;
  display: flex; align-items: center; gap: 0.3rem;
}

/* File input */
.form-input[type="file"] {
  padding: 0.5rem 0.75rem;
  cursor: pointer;
}
.form-input[type="file"]::-webkit-file-upload-button {
  padding: 0.4rem 0.9rem;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 7px;
  color: var(--accent-hover);
  font-family: inherit; font-size: 0.8rem; font-weight: 600;
  cursor: pointer; margin-right: 0.75rem;
  transition: all 0.2s;
}
.form-input[type="file"]::-webkit-file-upload-button:hover {
  background: rgba(99, 102, 241, 0.18);
}

/* Checkbox */
.form-check-row {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.9rem 1rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.form-check-row input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--accent); cursor: pointer; flex-shrink: 0;
}
.form-check-row label {
  font-size: 0.88rem; color: var(--text-muted); cursor: pointer;
}

/* Image preview */
.img-preview {
  width: 100%; max-width: 320px; max-height: 200px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
  margin-top: 0.75rem;
  display: none;
}
.img-preview.show { display: block; }

/* Form footer bar */
.form-footer {
  padding: 1.25rem 1.75rem;
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,0.15);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}

/* Inline form validation */
.form-input.is-invalid,
.form-textarea.is-invalid,
.form-select.is-invalid {
  border-color: rgba(239, 68, 68, 0.5);
  background: rgba(239, 68, 68, 0.04);
}

/* ─── SECTION DIVIDER ─── */
.section-divider {
  height: 1px;
  background: var(--border);
  margin: 1.5rem 0;
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — ADMIN
═══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.active { transform: translateX(0); box-shadow: 8px 0 40px rgba(0,0,0,0.5); }
  .admin-main { margin-left: 0 !important; }
  .mobile-sidebar-toggle { display: flex; }
  .sidebar-close { display: block; }
  .sidebar-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1099; display: none;
  }
  .sidebar-overlay.active { display: block; }
}

@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .content-area { padding: 1.25rem; }
  .topbar { padding: 0 1.25rem; }
  .topbar-user-name { display: none; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .form-card { padding: 1.25rem; }
  .panel-header { flex-wrap: wrap; gap: 0.75rem; }
  th, td { padding: 0.75rem 1rem; }
}
