:root {
  --bg: #050915;
  --bg-elevated: #0b1220;
  --bg-soft: #111827;
  --accent: #3b82f6;
  --accent-soft: rgba(59, 130, 246, 0.1);
  --accent-strong: #2563eb;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --danger: #ef4444;
  --border: #1f2933;
  --radius-lg: 16px;
  --radius-md: 10px;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.7);
  --shadow-subtle: 0 8px 20px rgba(15, 23, 42, 0.6);
  --transition-fast: 0.18s ease-out;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI",
    sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  background: radial-gradient(circle at top, #111827 0, #020617 55%, #000 100%);
  color: var(--text);
  min-height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

main {
  flex: 1;
}

/* Layout */

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
}

.section-header {
  margin-bottom: 2rem;
}

.section-label {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 600;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0.5rem 0;
}

.section-subtitle {
  color: var(--muted);
  max-width: 640px;
}

/* Header & Nav */

.site-header {
  border-bottom: 1px solid rgba(15, 23, 42, 0.8);
  background: radial-gradient(circle at top, #020617 0, #020617 40%, #000 100%);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: conic-gradient(
      from 120deg,
      #0ea5e9,
      #22c55e,
      #eab308,
      #3b82f6,
      #0ea5e9
    );
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 18px rgba(37, 99, 235, 0.9);
}

.brand-logo span {
  font-weight: 800;
  font-size: 0.75rem;
  color: #020617;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-text strong {
  font-size: 0.95rem;
}

.brand-text span {
  font-size: 0.78rem;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.9rem;
}

.nav-links a {
  color: var(--muted);
  padding: 0.3rem 0.2rem;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.nav-links a:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  cursor: pointer;
  background: transparent;
  color: var(--text);
  transition: background var(--transition-fast), border-color var(--transition-fast),
    transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  border-color: rgba(37, 99, 235, 0.7);
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.65);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 45px rgba(37, 99, 235, 0.9);
}

.btn-outline {
  border-color: rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.4);
}

.btn-outline:hover {
  border-color: var(--accent);
  background: rgba(15, 23, 42, 0.9);
}

.btn-sm {
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
}

.nav-toggle {
  display: none;
  border: none;
  background: none;
  color: var(--text);
  font-size: 1.3rem;
  cursor: pointer;
}

/* Hero */

.hero {
  padding: 3.75rem 0 3.5rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  font-size: 0.75rem;
  margin-bottom: 0.75rem;
  color: #6ee7b7;
}

.hero-title {
  font-size: clamp(2rem, 3vw, 2.6rem);
  line-height: 1.1;
  margin: 0 0 0.75rem;
}

.hero-highlight {
  background: linear-gradient(135deg, #e5e7eb, #93c5fd);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-subtitle {
  max-width: 520px;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.7rem 0 1.2rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.hero-meta span::before {
  content: "• ";
  color: var(--accent);
}

.hero-panel {
  background: radial-gradient(circle at top left, #1d4ed8 0, #020617 60%);
  border-radius: 24px;
  padding: 1.6rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(37, 99, 235, 0.35);
  position: relative;
  overflow: hidden;
}

.hero-panel-badge {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 0, rgba(59, 130, 246, 0.25), transparent 55%);
  pointer-events: none;
}

.hero-panel-inner {
  position: relative;
  z-index: 1;
}

.hero-panel-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #bfdbfe;
  margin-bottom: 0.7rem;
}

.hero-program-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.4);
  font-size: 0.7rem;
  color: var(--muted);
}

.hero-panel-main {
  margin-top: 1.1rem;
}

.hero-panel-main h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.hero-panel-main p {
  margin: 0;
  font-size: 0.85rem;
  color: #d1d5db;
}

.hero-panel-meta {
  margin: 1rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  font-size: 0.78rem;
}

.hero-panel-meta span {
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.hero-panel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
}

.hero-panel-price {
  font-size: 0.9rem;
}

.hero-panel-price strong {
  font-size: 1.05rem;
}

/* Cards & Grids */

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: rgba(15, 23, 42, 0.92);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(31, 41, 55, 0.8);
  padding: 1.25rem;
  box-shadow: var(--shadow-subtle);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast),
    border-color var(--transition-fast), background var(--transition-fast);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.9);
  border-color: rgba(37, 99, 235, 0.6);
  background: rgba(15, 23, 42, 0.98);
}

.card-title {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.card-meta {
  display: flex;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.card-description {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.7rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.55rem;
  font-size: 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  color: var(--muted);
}

.badge-pill {
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(37, 99, 235, 0.6);
  color: #bfdbfe;
}

/* Programs page specifics */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.8rem;
}

.chip {
  border-radius: 999px;
  border: 1px solid rgba(55, 65, 81, 0.9);
  background: rgba(15, 23, 42, 0.8);
  padding: 0.3rem 0.9rem;
  font-size: 0.8rem;
  color: var(--muted);
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast),
    border-color var(--transition-fast), transform var(--transition-fast);
}

.chip-active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: #dbeafe;
}

/* Program Detail */

.program-hero {
  padding: 3rem 0 2rem;
}

.program-header {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.1fr);
  gap: 2.25rem;
  align-items: flex-start;
}

.program-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0.8rem 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.program-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.program-summary {
  color: var(--muted);
  font-size: 0.94rem;
  max-width: 560px;
}

.program-pane {
  background: rgba(15, 23, 42, 0.95);
  border-radius: 20px;
  border: 1px solid rgba(37, 99, 235, 0.6);
  padding: 1.4rem;
  box-shadow: var(--shadow-soft);
}

.program-price-main {
  font-size: 1.3rem;
  font-weight: 700;
}

.program-price-sub {
  font-size: 0.8rem;
  color: var(--muted);
}

.program-pane-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1rem 0 0.75rem;
  font-size: 0.85rem;
}

.program-pane-list {
  margin: 0.8rem 0 0;
  padding-left: 1rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.program-pane-list li {
  margin-bottom: 0.25rem;
}

/* Curriculum */

.curriculum {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.1fr);
  gap: 2rem;
}

.accordion {
  border-radius: var(--radius-md);
  border: 1px solid rgba(31, 41, 55, 0.9);
  background: rgba(15, 23, 42, 0.9);
  overflow: hidden;
}

.accordion-item + .accordion-item {
  border-top: 1px solid rgba(31, 41, 55, 0.9);
}

.accordion-header {
  padding: 0.85rem 1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.accordion-header span {
  opacity: 0.8;
}

.accordion-body {
  padding: 0.2rem 1.1rem 0.9rem;
  font-size: 0.83rem;
  color: var(--muted);
}

.curriculum-lessons {
  list-style: none;
  padding-left: 0;
  margin: 0.5rem 0 0;
}

.curriculum-lessons li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.25rem 0;
  font-size: 0.82rem;
}

/* Auth pages */

.auth-page {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
}

.auth-card {
  max-width: 420px;
  margin: 0 auto;
  padding: 2.3rem 2.1rem;
  background: rgba(15, 23, 42, 0.96);
  border-radius: 22px;
  border: 1px solid rgba(55, 65, 81, 0.9);
  box-shadow: var(--shadow-soft);
}

.auth-title {
  font-size: 1.4rem;
  margin-bottom: 0.3rem;
}

.auth-subtitle {
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.9rem;
}

label {
  font-size: 0.8rem;
  color: var(--muted);
}

input,
select {
  border-radius: 999px;
  border: 1px solid rgba(55, 65, 81, 0.9);
  padding: 0.55rem 0.9rem;
  background: rgba(15, 23, 42, 0.8);
  color: var(--text);
  font-size: 0.86rem;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.6);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(15, 23, 42, 0.9);
  padding: 1.8rem 0 1.6rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* Responsive */

@media (max-width: 880px) {
  .hero-inner,
  .program-header,
  .curriculum {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 2.4rem;
  }

  .hero-panel {
    order: -1;
  }

  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .nav-open .nav-links,
  .nav-open .nav-cta {
    display: flex;
    flex-direction: column;
    position: absolute;
    inset: 56px 0 auto 0;
    background: rgba(15, 23, 42, 0.97);
    padding: 0.75rem 1.5rem 1.1rem;
    border-bottom: 1px solid rgba(31, 41, 55, 0.9);
  }

  .nav-open .nav-links {
    align-items: flex-start;
  }

  .nav-open .nav-cta {
    margin-top: 0.5rem;
    align-items: flex-start;
  }

  .footer-inner {
    flex-direction: column;
  }

  .auth-card {
    padding-inline: 1.4rem;
  }
}
/* Dashboard */

.dashboard-page {
  padding: 3rem 0 3.5rem;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.dashboard-title {
  font-size: 1.6rem;
  margin: 0 0 0.3rem;
}

.dashboard-subtitle {
  font-size: 0.9rem;
  color: var(--muted);
}

.dashboard-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-size: 0.8rem;
}

.dashboard-stat-pill {
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(55, 65, 81, 0.9);
  background: rgba(15, 23, 42, 0.92);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.2fr);
  gap: 1.7rem;
}

.dashboard-card-title {
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}

.dashboard-card-subtitle {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

/* Progress */

.progress-bar {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(31, 41, 55, 0.95);
  overflow: hidden;
  margin-top: 0.35rem;
}

.progress-bar-inner {
  height: 100%;
  width: 40%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #22c55e);
  transition: width 0.25s ease-out;
}

.course-progress-label {
  font-size: 0.8rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  margin-top: 0.35rem;
}

/* Tags / Status */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem 0.6rem;
  font-size: 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(75, 85, 99, 0.9);
  color: var(--muted);
}

.pill-primary {
  border-color: rgba(37, 99, 235, 0.8);
  background: rgba(37, 99, 235, 0.18);
  color: #bfdbfe;
}

.status-complete {
  color: #22c55e;
}

.status-in-progress {
  color: #facc15;
}

/* Course player */

.course-page {
  padding: 3rem 0 3.5rem;
}

.course-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 2.1fr);
  gap: 1.8rem;
}

.course-sidebar {
  background: rgba(15, 23, 42, 0.95);
  border-radius: 18px;
  border: 1px solid rgba(31, 41, 55, 0.9);
  padding: 1rem;
  box-shadow: var(--shadow-subtle);
  max-height: calc(100vh - 160px);
  position: sticky;
  top: 88px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.course-sidebar-header {
  margin-bottom: 0.7rem;
}

.course-sidebar-title {
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.course-sidebar-meta {
  font-size: 0.78rem;
  color: var(--muted);
}

.course-lessons-list {
  margin-top: 0.9rem;
  padding-top: 0.4rem;
  border-top: 1px solid rgba(31, 41, 55, 0.9);
  overflow-y: auto;
}

.course-module {
  margin-bottom: 0.8rem;
}

.course-module-title {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.3rem;
}

.course-lesson {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  padding: 0.25rem 0.4rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast),
    transform var(--transition-fast);
}

.course-lesson span {
  max-width: 210px;
}

.course-lesson-time {
  color: var(--muted);
  font-size: 0.75rem;
}

.course-lesson-active {
  background: rgba(37, 99, 235, 0.12);
  color: #dbeafe;
}

.course-lesson:hover {
  background: rgba(31, 41, 55, 0.95);
  transform: translateY(-1px);
}

/* Course main */

.course-main {
  background: rgba(15, 23, 42, 0.96);
  border-radius: 20px;
  border: 1px solid rgba(31, 41, 55, 0.9);
  box-shadow: var(--shadow-soft);
  padding: 1.25rem 1.3rem 1.4rem;
}

.video-shell {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(31, 41, 55, 0.9);
  background: radial-gradient(circle at top, #1d4ed8 0, #020617 60%);
  margin-bottom: 1rem;
  position: relative;
}

.video-placeholder {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
}

.video-placeholder-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #dbeafe;
  font-size: 0.9rem;
}

.video-controls-fake {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.35rem 0.8rem 0.55rem;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.95), transparent);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.course-main-header {
  display: flex;
  justify-content: space-between;
  gap: 1.2rem;
  align-items: flex-start;
  margin-bottom: 0.3rem;
}

.course-main-title {
  font-size: 1.05rem;
  margin: 0 0 0.2rem;
}

.course-main-meta {
  font-size: 0.78rem;
  color: var(--muted);
}

.course-main-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.course-main-body {
  font-size: 0.87rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.course-tabs {
  display: flex;
  gap: 0.8rem;
  border-bottom: 1px solid rgba(31, 41, 55, 0.9);
  margin-bottom: 0.9rem;
  font-size: 0.82rem;
}

.course-tab {
  padding: 0.35rem 0.1rem 0.5rem;
  cursor: pointer;
  color: var(--muted);
  border-bottom: 2px solid transparent;
}

.course-tab-active {
  color: var(--text);
  border-color: var(--accent);
}

.course-tab-content {
  font-size: 0.85rem;
  color: var(--muted);
}

.course-tab-content ul {
  padding-left: 1.1rem;
}

.course-footer-actions {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.1rem;
  font-size: 0.8rem;
}

/* Responsive for dashboard & course */

@media (max-width: 960px) {
  .dashboard-grid,
  .course-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .course-sidebar {
    position: static;
    max-height: none;
  }
}
/* Admin layout */

.admin-page {
  padding: 2.5rem 0 3rem;
}

.admin-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 1.6rem;
}

.admin-sidebar {
  background: rgba(15, 23, 42, 0.97);
  border-radius: 18px;
  border: 1px solid rgba(31, 41, 55, 0.9);
  padding: 1.1rem 1rem;
  box-shadow: var(--shadow-subtle);
  height: fit-content;
}

.admin-sidebar-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.admin-sidebar-subtitle {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.9rem;
}

.admin-nav {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.admin-nav-item {
  margin-bottom: 0.25rem;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast),
    transform var(--transition-fast);
}

.admin-nav-link span {
  font-size: 0.7rem;
  opacity: 0.75;
}

.admin-nav-link:hover {
  background: rgba(31, 41, 55, 0.95);
  color: var(--text);
  transform: translateY(-1px);
}

.admin-nav-link-active {
  background: rgba(37, 99, 235, 0.15);
  color: #dbeafe;
  border: 1px solid rgba(37, 99, 235, 0.7);
}

/* Admin content */

.admin-main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.admin-title {
  font-size: 1.4rem;
  margin: 0 0 0.2rem;
}

.admin-subtitle {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Admin metrics */

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.metric-card {
  background: rgba(15, 23, 42, 0.96);
  border-radius: 16px;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(31, 41, 55, 0.9);
  box-shadow: var(--shadow-subtle);
  font-size: 0.82rem;
}

.metric-label {
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.metric-value {
  font-size: 1.2rem;
  font-weight: 700;
}

.metric-note {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

/* Admin table */

.table-card {
  background: rgba(15, 23, 42, 0.97);
  border-radius: 18px;
  border: 1px solid rgba(31, 41, 55, 0.9);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow-subtle);
  overflow-x: auto;
}

.table-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.7rem;
}

.table-title {
  font-size: 0.95rem;
}

.table-subtitle {
  font-size: 0.8rem;
  color: var(--muted);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.table th,
.table td {
  padding: 0.45rem 0.5rem;
  text-align: left;
  border-bottom: 1px solid rgba(31, 41, 55, 0.9);
  white-space: nowrap;
}

.table th {
  color: var(--muted);
  font-weight: 500;
}

.badge-status {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-size: 0.75rem;
  border: 1px solid rgba(55, 65, 81, 0.9);
}

.badge-status-success {
  border-color: rgba(34, 197, 94, 0.7);
  color: #bbf7d0;
  background: rgba(22, 163, 74, 0.2);
}

.badge-status-pending {
  border-color: rgba(234, 179, 8, 0.7);
  color: #fef3c7;
  background: rgba(202, 138, 4, 0.2);
}

.badge-status-draft {
  border-color: rgba(148, 163, 184, 0.7);
  color: #e5e7eb;
  background: rgba(31, 41, 55, 0.7);
}

/* Admin forms (creator panels) */

.admin-split {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr);
  gap: 1.4rem;
}

.form-card {
  background: rgba(15, 23, 42, 0.97);
  border-radius: 18px;
  border: 1px solid rgba(31, 41, 55, 0.9);
  padding: 1.1rem 1.1rem 1.3rem;
  box-shadow: var(--shadow-subtle);
}

.form-card-title {
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.form-card-subtitle {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.chip-mini {
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
  font-size: 0.75rem;
  border: 1px solid rgba(55, 65, 81, 0.9);
  color: var(--muted);
}

/* Coupons */

.coupon-type {
  font-size: 0.75rem;
  color: var(--muted);
}

.coupon-badge {
  display: inline-flex;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  font-size: 0.74rem;
  border: 1px solid rgba(59, 130, 246, 0.7);
  color: #bfdbfe;
  background: rgba(37, 99, 235, 0.15);
}

/* Responsive admin */

@media (max-width: 1024px) {
  .admin-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-sidebar {
    order: -1;
  }

  .admin-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-split {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .admin-metrics {
    grid-template-columns: minmax(0, 1fr);
  }
}
