/* ============================================
   BetaTimes — Design System v2
   Brand: Teal gradient #3ECFB2→#1AABB5, Navy #2B3466
   ============================================ */

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

:root {
  /* Brand */
  --brand-teal:    #3ECFB2;
  --brand-deep:    #1AABB5;
  --brand-navy:    #2B3466;
  --brand-navy2:   #1E2640;
  --brand-grad:    linear-gradient(135deg, #3ECFB2 0%, #1AABB5 100%);

  /* Neutrals */
  --black:         #0d0d0d;
  --dark:          #1a1a2e;
  --mid:           #4a5568;
  --light:         #718096;
  --border:        #e8ecf0;
  --bg:            #f7f9fc;
  --white:         #ffffff;

  /* Accents */
  --accent-red:    #e53e3e;
  --accent-blue:   #3182ce;
  --accent-purple: #805ad5;
  --accent-orange: #dd6b20;

  /* Type */
  --font-sans:  'Inter', 'Helvetica Neue', Arial, sans-serif;
  --font-serif: 'Georgia', 'Times New Roman', serif;

  /* Layout */
  --max-w:  1240px;
  --nav-h:  68px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(43,52,102,.07), 0 1px 2px rgba(43,52,102,.05);
  --shadow-md: 0 4px 16px rgba(43,52,102,.10), 0 2px 6px rgba(43,52,102,.06);
  --shadow-lg: 0 10px 40px rgba(43,52,102,.14);
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--white);
  color: var(--black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; object-fit: cover; }
ul, ol { list-style: none; }
button, input, select, textarea { font-family: inherit; }

/* ── Utilities ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 28px; }

.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--brand-teal);
  margin-bottom: 8px;
}
.divider { border: none; border-top: 1px solid var(--border); margin: 32px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all .18s ease;
  white-space: nowrap;
  line-height: 1;
}
.btn-brand {
  background: var(--brand-grad);
  color: white;
  box-shadow: 0 2px 12px rgba(62,207,178,.35);
}
.btn-brand:hover { box-shadow: 0 4px 20px rgba(62,207,178,.5); transform: translateY(-1px); }
.btn-outline {
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--dark);
}
.btn-outline:hover { border-color: var(--brand-teal); color: var(--brand-deep); }
.btn-outline-sm {
  padding: 7px 14px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  background: transparent;
  color: var(--mid);
  cursor: pointer;
  transition: all .15s;
}
.btn-outline-sm:hover { border-color: var(--brand-teal); color: var(--brand-deep); }
.btn-dark { background: var(--brand-navy); color: white; }
.btn-dark:hover { background: var(--brand-navy2); }
.btn-danger { background: var(--accent-red); color: white; }
.btn-danger:hover { background: #c53030; }
.btn-ghost { background: transparent; color: var(--mid); padding: 10px 14px; }
.btn-ghost:hover { background: var(--bg); color: var(--dark); }
.btn-sm { padding: 7px 14px; font-size: 12px; }
.btn-lg { padding: 14px 32px; font-size: 15px; border-radius: 10px; }
.btn-block { width: 100%; justify-content: center; }

/* ── Forms ── */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--dark); margin-bottom: 7px; }
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  color: var(--dark);
  background: var(--white);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--brand-teal);
  box-shadow: 0 0 0 3px rgba(62,207,178,.15);
}
.form-textarea { resize: vertical; min-height: 100px; line-height: 1.6; }
.form-hint { font-size: 12px; color: var(--light); margin-top: 5px; }
.form-error { font-size: 12px; color: var(--accent-red); margin-top: 5px; }

/* ── TICKER ── */
.ticker {
  background: var(--brand-navy);
  color: white;
  font-size: 12px;
  font-weight: 500;
  padding: 9px 0;
  overflow: hidden;
  white-space: nowrap;
}
.ticker-inner {
  display: inline-flex;
  animation: ticker-scroll 40s linear infinite;
}
.ticker-item { padding: 0 36px; border-right: 1px solid rgba(255,255,255,.15); }
.ticker-item span { color: var(--brand-teal); font-weight: 700; margin-right: 8px; }
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── NAVIGATION ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
}
.nav-inner {
  display: flex;
  align-items: center;
  height: var(--nav-h);
  gap: 32px;
}
.nav-logo img { height: 44px; width: auto; display: block; }
.nav-links {
  display: flex;
  gap: 2px;
  flex: 1;
}
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  padding: 6px 13px;
  border-radius: 6px;
  color: var(--mid);
  transition: color .15s, background .15s;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--brand-navy);
  background: rgba(62,207,178,.1);
}
.nav-cta, .nav-user {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-username {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-navy);
}

/* ── HERO ── */
.hero { padding: 52px 0 40px; border-bottom: 1px solid var(--border); }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 44px;
  align-items: start;
}
.hero-image {
  aspect-ratio: 16/9;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 22px;
  background: var(--bg);
  box-shadow: var(--shadow-md);
}
.hero-image img { height: 100%; transition: transform .5s ease; }
.hero-image:hover img { transform: scale(1.03); }
.hero-headline {
  font-family: var(--font-serif);
  font-size: 38px;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.025em;
  margin-bottom: 14px;
  color: var(--black);
}
.hero-headline a:hover { color: var(--brand-deep); }
.hero-excerpt { font-size: 17px; color: var(--mid); line-height: 1.7; margin-bottom: 18px; }
.hero-meta { font-size: 13px; color: var(--light); display: flex; gap: 14px; align-items: center; }
.hero-meta strong { color: var(--dark); }

.hero-sidebar { border-left: 1px solid var(--border); padding-left: 44px; }
.sidebar-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--light);
  margin-bottom: 16px;
}
.sidebar-stories { display: flex; flex-direction: column; }
.sidebar-story { padding: 16px 0; border-bottom: 1px solid var(--border); }
.sidebar-story:last-child { border-bottom: none; }
.sidebar-story h3 { font-size: 15px; font-weight: 600; line-height: 1.35; margin-bottom: 6px; }
.sidebar-story h3 a:hover { color: var(--brand-deep); }
.sidebar-story .meta { font-size: 12px; color: var(--light); }

/* ── SECTION HEADERS ── */
.section { padding: 44px 0; border-bottom: 1px solid var(--border); }
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 3px solid transparent;
  background: linear-gradient(var(--white), var(--white)) padding-box,
              var(--brand-grad) border-box;
}
.section-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand-navy);
}
.section-more {
  font-size: 12px;
  font-weight: 600;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-more:hover { opacity: .8; }

/* ── GRIDS ── */
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; }
.grid-featured {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}
.grid-featured-aside { display: flex; flex-direction: column; }
.grid-featured-aside .card--sm { padding: 16px 0; border-bottom: 1px solid var(--border); }
.grid-featured-aside .card--sm:last-child { border-bottom: none; }

/* ── CARDS ── */
.card { display: flex; flex-direction: column; }
.card-image {
  aspect-ratio: 3/2;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 14px;
  background: var(--bg);
}
.card-image img { height: 100%; transition: transform .35s ease; }
.card:hover .card-image img { transform: scale(1.04); }
.card-body {}
.card-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
}
.card-title a:hover { color: var(--brand-deep); }
.card-excerpt {
  font-size: 14px;
  color: var(--mid);
  line-height: 1.6;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta { font-size: 12px; color: var(--light); display: flex; gap: 10px; }
.card-meta strong { color: var(--dark); }
.card--lg .card-title { font-size: 22px; font-family: var(--font-serif); }
.card--sm {
  flex-direction: row;
  gap: 14px;
  align-items: flex-start;
}
.card--sm .card-image {
  width: 88px;
  min-width: 88px;
  aspect-ratio: 1;
  border-radius: 8px;
  margin-bottom: 0;
}
.card--sm .card-title { font-size: 14px; line-height: 1.3; }
.card--sm .card-excerpt { display: none; }

/* ── NEWSLETTER ── */
.newsletter {
  background: var(--brand-navy);
  padding: 72px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.newsletter::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top, rgba(62,207,178,.15) 0%, transparent 65%);
  pointer-events: none;
}
.newsletter-badge {
  display: inline-block;
  background: var(--brand-grad);
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.newsletter h2 {
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 700;
  color: white;
  letter-spacing: -.02em;
  margin-bottom: 12px;
  line-height: 1.15;
}
.newsletter p { font-size: 17px; color: rgba(255,255,255,.6); max-width: 480px; margin: 0 auto 32px; }
.newsletter-form { display: flex; max-width: 440px; margin: 0 auto; gap: 8px; }
.newsletter-form input[type="email"] {
  flex: 1;
  padding: 13px 16px;
  border-radius: 8px;
  border: 1.5px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.08);
  color: white;
  font-size: 14px;
  outline: none;
  transition: border .15s;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,.35); }
.newsletter-form input:focus { border-color: var(--brand-teal); }
.newsletter-perks {
  margin-top: 16px;
  font-size: 12px;
  color: rgba(255,255,255,.35);
  display: flex;
  justify-content: center;
  gap: 24px;
}
.newsletter-perks span::before { content: "✓ "; color: var(--brand-teal); }

/* ── FOOTER ── */
.site-footer { background: var(--brand-navy2); color: rgba(255,255,255,.45); padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 44px; margin-bottom: 44px; }
.footer-logo { margin-bottom: 14px; }
.footer-logo img { height: 40px; width: auto; filter: brightness(0) invert(1); opacity: .9; }
.footer-brand p { font-size: 13px; line-height: 1.75; max-width: 240px; }
.footer-col h4 {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 9px; }
.footer-col ul li a { font-size: 13px; transition: color .15s; }
.footer-col ul li a:hover { color: var(--brand-teal); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}
.footer-bottom a:hover { color: var(--brand-teal); }

/* ── ARTICLE PAGE ── */
.article-grid {
  display: grid;
  grid-template-columns: 700px 1fr;
  gap: 64px;
  padding: 44px 0;
}
.article-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 14px;
}
.article-headline {
  font-family: var(--font-serif);
  font-size: 44px;
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -.025em;
  margin-bottom: 20px;
}
.article-dek { font-size: 20px; color: var(--mid); line-height: 1.6; margin-bottom: 24px; font-style: italic; }
.article-byline {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.byline-avatar { width: 42px; height: 42px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: var(--bg); }
.byline-info { font-size: 13px; }
.byline-info strong { display: block; color: var(--dark); font-weight: 600; }
.byline-info span { color: var(--light); }
.article-hero-img {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
  background: var(--bg);
  box-shadow: var(--shadow-md);
}
.article-hero-img img { height: 100%; }
.img-caption { font-size: 12px; color: var(--light); margin-bottom: 36px; font-style: italic; }
.article-body {
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.82;
  color: var(--dark);
}
.article-body p { margin-bottom: 26px; }
.article-body h2 {
  font-size: 26px;
  font-weight: 700;
  font-family: var(--font-sans);
  letter-spacing: -.015em;
  margin: 44px 0 18px;
  color: var(--black);
}
.article-body blockquote {
  border-left: 4px solid var(--brand-teal);
  margin: 36px 0;
  padding: 4px 0 4px 26px;
  font-size: 22px;
  font-style: italic;
  color: var(--mid);
  line-height: 1.5;
}
.article-sidebar .sidebar-sticky { position: sticky; top: calc(var(--nav-h) + 24px); }

/* ── LOGIN / AUTH ── */
.auth-page {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 40px 24px;
}
.auth-card {
  background: var(--white);
  border-radius: 16px;
  padding: 48px;
  width: 100%;
  max-width: 460px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-logo img { height: 50px; margin: 0 auto; }
.auth-title { font-size: 26px; font-weight: 800; color: var(--brand-navy); margin-bottom: 6px; text-align: center; }
.auth-subtitle { font-size: 14px; color: var(--light); text-align: center; margin-bottom: 32px; }
.auth-tabs { display: flex; gap: 0; border-bottom: 2px solid var(--border); margin-bottom: 32px; }
.auth-tab {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--light);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color .15s, border-color .15s;
}
.auth-tab.active { color: var(--brand-deep); border-bottom-color: var(--brand-teal); }
.auth-divider { text-align: center; color: var(--light); font-size: 13px; margin: 20px 0; position: relative; }
.auth-divider::before {
  content: '';
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 1px;
  background: var(--border);
}
.auth-divider span { background: white; padding: 0 12px; position: relative; }

/* ── ABOUT PAGE ── */
.about-hero {
  background: var(--brand-navy);
  color: white;
  padding: 88px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.about-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(62,207,178,.18) 0%, transparent 70%);
}
.about-hero-logo { height: 64px; margin: 0 auto 24px; filter: brightness(0) invert(1); }
.about-hero h1 {
  font-family: var(--font-serif);
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -.03em;
  margin-bottom: 20px;
  line-height: 1.08;
  position: relative;
}
.about-hero p { font-size: 20px; color: rgba(255,255,255,.62); max-width: 560px; margin: 0 auto; line-height: 1.65; position: relative; }
.about-section { padding: 72px 0; border-bottom: 1px solid var(--border); }
.about-section h2 {
  font-family: var(--font-serif);
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 18px;
  color: var(--brand-navy);
}
.about-section p { font-size: 18px; line-height: 1.8; color: var(--mid); max-width: 700px; margin-bottom: 18px; }
.values-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 44px; }
.value-card {
  padding: 32px;
  background: var(--bg);
  border-radius: 14px;
  border: 1px solid var(--border);
  transition: box-shadow .2s, transform .2s;
}
.value-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.value-icon { font-size: 32px; margin-bottom: 14px; }
.value-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 10px; color: var(--brand-navy); }
.value-card p { font-size: 14px; color: var(--mid); line-height: 1.65; margin: 0; }
.team-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; margin-top: 44px; }
.team-card { text-align: center; }
.team-photo { width: 100%; aspect-ratio: 1; border-radius: 14px; overflow: hidden; margin-bottom: 14px; background: var(--bg); }
.team-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; color: var(--brand-navy); }
.team-card .role { font-size: 13px; color: var(--light); }
.stat-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin-top: 52px; }
.stat-item { text-align: center; padding: 36px 16px; background: var(--bg); border-radius: 14px; border: 1px solid var(--border); }
.stat-num {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -.04em;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { font-size: 14px; color: var(--light); margin-top: 6px; }

/* ── CATEGORY PAGE ── */
.category-header {
  padding: 40px 0 36px;
  border-bottom: 1px solid var(--border);
}
.category-header h1 {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--brand-navy);
  margin-bottom: 8px;
}
.category-header p { font-size: 16px; color: var(--mid); }
.category-filter { display: flex; gap: 8px; margin-bottom: 36px; flex-wrap: wrap; }
.filter-btn {
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--mid);
  cursor: pointer;
  transition: all .15s;
}
.filter-btn.active, .filter-btn:hover {
  background: var(--brand-grad);
  color: white;
  border-color: transparent;
}
.articles-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.load-more-wrap { text-align: center; padding: 44px 0 0; }

/* ── ADMIN ── */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 260px;
  background: var(--brand-navy);
  color: rgba(255,255,255,.7);
  padding: 0;
  flex-shrink: 0;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 300;
}
.admin-sidebar-logo {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 8px;
}
.admin-sidebar-logo img { height: 38px; filter: brightness(0) invert(1); opacity: .9; }
.admin-sidebar-logo span {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brand-teal);
  margin-top: 6px;
}
.admin-nav { padding: 8px 12px; }
.admin-nav-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  padding: 16px 8px 8px;
}
.admin-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.65);
  transition: all .15s;
  margin-bottom: 2px;
}
.admin-nav a:hover, .admin-nav a.active {
  background: rgba(62,207,178,.15);
  color: white;
}
.admin-nav a.active { color: var(--brand-teal); }
.admin-nav .icon { font-size: 16px; width: 20px; text-align: center; }
.admin-main { margin-left: 260px; flex: 1; background: var(--bg); min-height: 100vh; }
.admin-topbar {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}
.admin-topbar h1 { font-size: 18px; font-weight: 700; color: var(--brand-navy); }
.admin-content { padding: 32px; }

.stat-cards { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin-bottom: 32px; }
.stat-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.stat-card-label { font-size: 12px; font-weight: 600; color: var(--light); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.stat-card-value { font-size: 36px; font-weight: 800; color: var(--brand-navy); letter-spacing: -.03em; }
.stat-card-sub { font-size: 12px; color: var(--light); margin-top: 6px; }
.stat-card .stat-icon { font-size: 28px; float: right; margin-top: -4px; }

.admin-card {
  background: white;
  border-radius: 12px;
  padding: 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}
.admin-card-title { font-size: 15px; font-weight: 700; color: var(--brand-navy); margin-bottom: 20px; display: flex; align-items: center; justify-content: space-between; }

.articles-table { width: 100%; border-collapse: collapse; }
.articles-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--light);
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
}
.articles-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  vertical-align: middle;
}
.articles-table tr:last-child td { border-bottom: none; }
.articles-table tr:hover td { background: var(--bg); }
.article-title-cell { font-weight: 600; color: var(--dark); max-width: 300px; }
.article-title-cell span { display: block; font-size: 12px; color: var(--light); font-weight: 400; margin-top: 2px; }
.cat-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(62,207,178,.12);
  color: var(--brand-deep);
}
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}
.status-badge.published { background: rgba(72,187,120,.12); color: #276749; }
.status-badge.draft { background: rgba(113,128,150,.12); color: var(--mid); }
.status-badge::before { content: '●'; font-size: 8px; }
.table-actions { display: flex; gap: 6px; }

/* ── EDITOR ── */
.editor-grid { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
.editor-toolbar {
  display: flex;
  gap: 4px;
  padding: 10px 14px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  flex-wrap: wrap;
}
.toolbar-btn {
  padding: 6px 10px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--mid);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  transition: all .12s;
}
.toolbar-btn:hover { background: var(--white); color: var(--dark); box-shadow: var(--shadow-sm); }
.toolbar-sep { width: 1px; background: var(--border); margin: 4px 2px; }
.editor-body {
  min-height: 360px;
  padding: 20px;
  border: 1.5px solid var(--border);
  border-radius: 0 0 8px 8px;
  outline: none;
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.8;
  color: var(--dark);
  background: white;
}
.editor-body:focus { border-color: var(--brand-teal); box-shadow: 0 0 0 3px rgba(62,207,178,.12); }
.editor-body h2 { font-size: 22px; font-family: var(--font-sans); font-weight: 700; margin: 28px 0 12px; }
.editor-body blockquote { border-left: 4px solid var(--brand-teal); padding-left: 20px; font-style: italic; color: var(--mid); margin: 20px 0; }
.editor-body p { margin-bottom: 16px; }

/* ── LAYOUT BUILDER ── */
.layout-list { display: flex; flex-direction: column; gap: 10px; }
.layout-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  cursor: grab;
  transition: box-shadow .15s, border-color .15s;
  user-select: none;
}
.layout-item:active { cursor: grabbing; }
.layout-item.sortable-chosen { box-shadow: var(--shadow-lg); border-color: var(--brand-teal); z-index: 10; }
.layout-item.sortable-ghost { opacity: .4; }
.drag-handle { color: var(--light); font-size: 18px; cursor: grab; }
.layout-item-label { flex: 1; font-size: 14px; font-weight: 600; color: var(--brand-navy); }
.layout-item-order { font-size: 12px; color: var(--light); width: 24px; text-align: center; }
.toggle-switch { position: relative; width: 42px; height: 24px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-track {
  position: absolute; inset: 0;
  background: var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: background .2s;
}
.toggle-track::after {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: white;
  top: 3px; left: 3px;
  transition: transform .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.toggle-switch input:checked + .toggle-track { background: var(--brand-teal); }
.toggle-switch input:checked + .toggle-track::after { transform: translateX(18px); }

/* ── BREADCRUMB ── */
.breadcrumb { font-size: 13px; color: var(--light); padding: 16px 0; display: flex; gap: 8px; align-items: center; }
.breadcrumb a:hover { color: var(--brand-deep); }
.breadcrumb span { color: var(--border); }

/* ── TOAST ── */
.toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  padding: 14px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: white;
  z-index: 9999;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .25s, transform .25s;
  box-shadow: var(--shadow-lg);
}
.toast--in { opacity: 1; transform: translateY(0); }
.toast--success { background: linear-gradient(135deg, #3ECFB2, #1AABB5); }
.toast--error { background: var(--accent-red); }
.toast--info { background: var(--brand-navy); }

/* ── EMPTY STATE ── */
.empty-state {
  text-align: center;
  padding: 80px 24px;
  color: var(--light);
}
.empty-state .emoji { font-size: 48px; margin-bottom: 16px; }
.empty-state h3 { font-size: 20px; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.empty-state p { font-size: 15px; max-width: 360px; margin: 0 auto 24px; }

/* ── MODAL ── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(13,13,13,.55);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: white;
  border-radius: 16px;
  padding: 36px;
  max-width: 480px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  transform: scale(.96);
  transition: transform .2s;
}
.modal-overlay.open .modal { transform: scale(1); }
.modal h3 { font-size: 20px; font-weight: 800; color: var(--brand-navy); margin-bottom: 10px; }
.modal p { font-size: 14px; color: var(--mid); margin-bottom: 28px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-sidebar { border-left: none; padding-left: 0; border-top: 1px solid var(--border); padding-top: 28px; }
  .article-grid { grid-template-columns: 1fr; }
  .article-headline { font-size: 34px; }
  .editor-grid { grid-template-columns: 1fr; }
  .stat-cards { grid-template-columns: repeat(2,1fr); }
  .team-grid { grid-template-columns: repeat(2,1fr); }
  .stat-row { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero-headline { font-size: 28px; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-featured { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .about-hero h1 { font-size: 38px; }
  .newsletter h2 { font-size: 32px; }
  .newsletter-form { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .admin-sidebar { width: 220px; }
  .admin-main { margin-left: 220px; }
  .stat-cards { grid-template-columns: 1fr 1fr; }
  .articles-grid { grid-template-columns: 1fr; }
}
