/* =====================================================
   style.css — Alex Morgan Portfolio (PHP version)
   Dark theme, Space Grotesk + DM Sans
   ===================================================== */

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

:root {
  --bg:         #171723;
  --bg2:        #1c1c2e;
  --card:       #1e1e30;
  --border:     #2a2a42;
  --fg:         #f0ede6;
  --fg-muted:   #7a7a9a;
  --primary:    #d4963a;   /* amber */
  --primary-fg: #171723;
  --blue:       #5b7fd4;
  --radius:     0.75rem;
  --font-head:  'Space Grotesk', system-ui, sans-serif;
  --font-body:  'DM Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.6;
}

h1,h2,h3,h4,h5,h6 { font-family: var(--font-head); line-height: 1.15; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ── Utility ── */
.container    { max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; }
.container-sm { max-width: 56rem; margin: 0 auto; padding: 0 1.5rem; }
.container-xs { max-width: 40rem; margin: 0 auto; padding: 0 1.5rem; }
.text-center  { text-align: center; }
.text-primary { color: var(--primary); }
.text-muted   { color: var(--fg-muted); }
.uppercase-label {
  font-family: var(--font-head);
  font-size: .75rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
}
.section-heading {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--fg);
}
.grad-amber {
  background: linear-gradient(135deg, #d4963a, #e8b86d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.grad-blue {
  background: linear-gradient(135deg, #5b7fd4, #7ba0e8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Fade-in on scroll */
.fade-in { opacity: 0; transform: translateY(2rem); transition: opacity .7s ease, transform .7s ease; }
.fade-in.visible { opacity: 1; transform: none; }

/* ── Navigation ── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s, border-color .3s;
}
.site-nav.scrolled {
  background: rgba(23,23,35,.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 72rem; margin: 0 auto;
  padding: .9rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-head);
  font-weight: 700; font-size: 1.1rem; color: var(--fg);
}
.nav-logo span { color: var(--primary); }
.nav-links {
  display: flex; gap: 2rem; align-items: center;
}
.nav-links a {
  font-family: var(--font-head);
  font-size: .85rem; letter-spacing: .05em;
  color: var(--fg-muted);
  transition: color .2s;
}
.nav-links a:hover { color: var(--fg); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--fg); border-radius: 2px; }

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none; flex-direction: column; gap: 1rem;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg2); padding: 1.5rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
}

/* ── Hero Section ── */
.hero-section {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(23,23,35,.85) 0%, rgba(23,23,35,.4) 50%, var(--bg) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center; padding: 0 1.5rem;
  max-width: 56rem; margin: 0 auto;
}
.hero-eyebrow {
  font-family: var(--font-head);
  font-size: .8rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--fg-muted); margin-bottom: 1.5rem;
}
.hero-name {
  font-family: var(--font-head);
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 700; line-height: 1; letter-spacing: -.02em;
  margin-bottom: 1.5rem;
}
.hero-desc { font-size: 1.1rem; color: var(--fg-muted); max-width: 40rem; margin: 0 auto 2.5rem; }
.hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  display: inline-block; padding: .75rem 2rem;
  background: var(--primary); color: var(--primary-fg);
  font-family: var(--font-head); font-size: .85rem; font-weight: 600; letter-spacing: .05em;
  border-radius: var(--radius); transition: opacity .2s;
}
.btn-primary:hover { opacity: .85; }
.btn-outline {
  display: inline-block; padding: .75rem 2rem;
  border: 1px solid var(--border); color: var(--fg);
  font-family: var(--font-head); font-size: .85rem; font-weight: 500; letter-spacing: .05em;
  border-radius: var(--radius); transition: background .2s;
}
.btn-outline:hover { background: rgba(255,255,255,.04); }
.hero-socials {
  margin-top: 3rem;
  display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap;
}
.hero-socials a {
  font-family: var(--font-head); font-size: .85rem; letter-spacing: .05em;
  color: var(--fg-muted); transition: color .2s;
}
.hero-socials a:hover { color: var(--primary); }
.scroll-hint {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  width: 1.25rem; height: 2rem;
  border: 2px solid rgba(122,122,154,.4); border-radius: 9999px;
  display: flex; align-items: flex-start; justify-content: center; padding: .2rem;
}
.scroll-dot {
  width: .25rem; height: .5rem;
  background: var(--primary); border-radius: 9999px;
  animation: scrollDot 1.5s infinite;
}
@keyframes scrollDot { 0%,100%{transform:translateY(0)} 50%{transform:translateY(.5rem)} }

/* ── Banner Carousel ── */
.banner-section { position: relative; background: var(--bg); overflow: hidden; }
.banner-track { display: flex; transition: transform .6s ease; }
.banner-slide {
  min-width: 100%; position: relative;
  height: 60vh;
}
@media (min-width: 768px) { .banner-slide { height: 75vh; } }
.banner-slide img { width: 100%; height: 100%; object-fit: cover; }
.banner-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(23,23,35,.88) 0%, rgba(23,23,35,.5) 50%, transparent 100%);
}
.banner-overlay-b {
  position: absolute; inset: 0;
  background: linear-gradient(to top, var(--bg) 0%, rgba(23,23,35,.15) 50%, transparent 100%);
}
.banner-content {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center;
  padding: 0 1.5rem;
  max-width: 72rem; margin: 0 auto;
}
.banner-inner { max-width: 36rem; }
.banner-eyebrow {
  font-family: var(--font-head); font-size: .75rem;
  letter-spacing: .3em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 1rem;
}
.banner-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700; color: var(--fg); line-height: 1.1;
}
.banner-desc { margin-top: 1rem; color: var(--fg-muted); font-size: 1rem; }
.banner-cta {
  display: inline-block; margin-top: 2rem;
  padding: .75rem 2rem;
  background: var(--primary); color: var(--primary-fg);
  font-family: var(--font-head); font-size: .85rem; font-weight: 600; letter-spacing: .05em;
  border-radius: var(--radius); transition: opacity .2s;
}
.banner-cta:hover { opacity: .85; }
.banner-dots {
  position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  z-index: 10; display: flex; gap: .5rem;
}
.banner-dot {
  height: 6px; border-radius: 9999px; transition: all .3s;
  background: rgba(122,122,154,.4); width: 1rem; border: none;
}
.banner-dot.active { background: var(--primary); width: 2rem; }

/* ── About ── */
.about-section { padding: 6rem 1.5rem; }
.about-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; margin-top: 2.5rem; }
@media (min-width: 768px) { .about-grid { grid-template-columns: 1fr 1fr; } }
.about-grid p { color: var(--fg-muted); font-size: 1.05rem; line-height: 1.8; }
.stats-grid {
  display: grid; grid-template-columns: repeat(2,1fr); gap: 2rem;
  margin-top: 4rem;
}
@media (min-width: 640px) { .stats-grid { grid-template-columns: repeat(4,1fr); } }
.stat-item { text-align: center; }
.stat-value {
  font-family: var(--font-head); font-size: 2.25rem; font-weight: 700;
  display: inline-block;
  background: linear-gradient(135deg, #d4963a, #e8b86d);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-label { color: var(--fg-muted); font-size: .85rem; margin-top: .5rem; }

/* ── Creative Work (Projects) ── */
.work-section { padding: 6rem 1.5rem; }
.cards-grid {
  display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-top: 1rem;
}
@media (min-width: 768px) { .cards-grid { grid-template-columns: repeat(3,1fr); } }
.card {
  display: block; background: var(--card);
  border: 1px solid var(--border); border-radius: calc(var(--radius)*2);
  padding: 2rem; transition: border-color .4s;
}
.card:hover { border-color: rgba(212,150,58,.4); }
.card-icon { font-size: 2.25rem; margin-bottom: 1.5rem; display: block; }
.card-title { font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; color: var(--fg); margin-bottom: .75rem; }
.card-desc { color: var(--fg-muted); font-size: .9rem; line-height: 1.7; margin-bottom: 1.5rem; }
.tag-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.tag {
  font-size: .7rem; padding: .25rem .75rem; border-radius: 9999px;
  background: rgba(255,255,255,.05); color: var(--fg-muted);
  font-family: var(--font-head); letter-spacing: .05em;
}

/* ── Videography ── */
.video-section { padding: 6rem 1.5rem; background: rgba(30,30,48,.3); }
.featured-video { border-radius: calc(var(--radius)*2); overflow: hidden; border: 1px solid var(--border); background: var(--bg); margin-bottom: 2rem; }
.video-thumb-wrap { position: relative; aspect-ratio: 16/9; overflow: hidden; cursor: pointer; }
.video-thumb-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.video-thumb-wrap:hover img { transform: scale(1.04); }
.video-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(23,23,35,.9) 0%, rgba(23,23,35,.2) 50%, transparent 100%);
}
.play-btn-wrap {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
}
.play-btn {
  width: 5rem; height: 5rem; border-radius: 50%;
  background: var(--primary); color: var(--primary-fg);
  display: flex; align-items: center; justify-content: center;
  transition: transform .3s; box-shadow: 0 0 40px rgba(212,150,58,.3);
}
.play-btn svg { width: 2rem; height: 2rem; fill: currentColor; margin-left: .2rem; }
.video-thumb-wrap:hover .play-btn { transform: scale(1.1); }
.video-meta { text-align: center; }
.video-date { font-family: var(--font-head); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--primary); margin-bottom: .5rem; }
.video-title { font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; color: var(--fg); }
.video-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px)  { .video-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .video-grid { grid-template-columns: repeat(3,1fr); } }
.video-card {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); background: var(--card);
  transition: border-color .4s; cursor: pointer;
}
.video-card:hover { border-color: rgba(212,150,58,.4); }
.video-card-thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.video-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.video-card:hover .video-card-thumb img { transform: scale(1.08); }
.video-card-overlay {
  position: absolute; inset: 0;
  background: rgba(23,23,35,.5);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .3s;
}
.video-card:hover .video-card-overlay { opacity: 1; }
.play-btn-sm {
  width: 3.5rem; height: 3.5rem; border-radius: 50%;
  background: var(--primary); color: var(--primary-fg);
  display: flex; align-items: center; justify-content: center;
}
.play-btn-sm svg { width: 1.2rem; height: 1.2rem; fill: currentColor; margin-left: .1rem; }
.video-card-info { padding: 1rem; }
.video-card-info .video-date { text-align: left; }
.video-card-title { font-family: var(--font-head); font-size: .9rem; font-weight: 700; color: var(--fg); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
iframe.yt-embed { width: 100%; aspect-ratio: 16/9; border: none; display: block; }

/* ── Gallery ── */
.gallery-section { padding: 6rem 1.5rem; background: rgba(30,30,48,.3); }
.gallery-filters { display: flex; justify-content: center; gap: .5rem; flex-wrap: wrap; margin-bottom: 3rem; }
.filter-btn {
  padding: .5rem 1.25rem; border-radius: 9999px; font-size: .85rem;
  font-family: var(--font-head); letter-spacing: .05em;
  color: var(--fg-muted); border: 1px solid var(--border); background: var(--card);
  transition: all .3s;
}
.filter-btn.active, .filter-btn:hover { background: var(--primary); color: var(--primary-fg); border-color: var(--primary); }
.gallery-masonry {
  columns: 1; gap: 1rem;
  column-fill: balance;
}
@media (min-width: 640px)  { .gallery-masonry { columns: 2; } }
@media (min-width: 1024px) { .gallery-masonry { columns: 3; } }
.gallery-item {
  break-inside: avoid; margin-bottom: 1rem;
  border-radius: var(--radius); overflow: hidden;
  position: relative; cursor: pointer;
}
.gallery-item img { width: 100%; height: auto; object-fit: cover; transition: transform .6s; display: block; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item-caption {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(23,23,35,.85) 0%, transparent 50%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 1rem;
  opacity: 0; transition: opacity .3s;
}
.gallery-item:hover .gallery-item-caption { opacity: 1; }
.gallery-item-caption .caption-title { font-family: var(--font-head); font-weight: 700; font-size: .9rem; color: var(--fg); }
.gallery-item-caption .caption-cat { font-size: .7rem; letter-spacing: .15em; text-transform: uppercase; color: var(--primary); }
/* Lightbox */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(23,23,35,.95); backdrop-filter: blur(16px);
  align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: var(--radius); }
.lb-close { position: absolute; top: 1.5rem; right: 1.5rem; font-size: 2rem; color: var(--fg-muted); }
.lb-close:hover { color: var(--fg); }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); font-size: 2.5rem; color: var(--fg-muted); }
.lb-prev { left: 1rem; } .lb-next { right: 1rem; }
.lb-prev:hover, .lb-next:hover { color: var(--fg); }
.lb-caption { position: absolute; bottom: 1.5rem; text-align: center; left: 0; right: 0; }
.lb-caption p { color: var(--fg); font-size: .9rem; }
.lb-caption small { color: var(--fg-muted); font-size: .75rem; }

/* ── Tech Skills ── */
.tech-section { padding: 6rem 1.5rem; }
.tech-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-top: 1rem; }
@media (min-width: 768px) { .tech-grid { grid-template-columns: 1fr 1fr; } }
.tech-card {
  background: var(--card); border: 1px solid var(--border); border-radius: calc(var(--radius)*2);
  padding: 2rem; transition: border-color .4s, box-shadow .4s;
}
.tech-card:hover { border-color: rgba(91,127,212,.4); box-shadow: 0 0 40px rgba(91,127,212,.08); }
.tech-tag {
  font-size: .7rem; padding: .25rem .75rem; border-radius: 9999px;
  background: rgba(91,127,212,.1); color: var(--blue); border: 1px solid rgba(91,127,212,.2);
  font-family: var(--font-head); letter-spacing: .05em;
}

/* ── Testimonials ── */
.testimonials-section { padding: 6rem 1.5rem; }
.testimonials-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-top: 1rem; }
@media (min-width: 768px) { .testimonials-grid { grid-template-columns: repeat(3,1fr); } }
.testimonial-card { background: var(--card); border: 1px solid var(--border); border-radius: calc(var(--radius)*2); padding: 2rem; }
.testimonial-quote { color: var(--fg-muted); font-size: .9rem; font-style: italic; line-height: 1.7; margin-bottom: 1.5rem; }
.testimonial-footer { display: flex; align-items: center; gap: .75rem; }
.testimonial-avatar {
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: rgba(212,150,58,.1); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: .75rem;
  border: 1px solid var(--border); flex-shrink: 0; overflow: hidden;
}
.testimonial-avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonial-name { font-family: var(--font-head); font-weight: 700; font-size: .9rem; color: var(--fg); }
.testimonial-role { font-size: .75rem; color: var(--fg-muted); margin-top: .15rem; }

/* ── Contact ── */
.contact-section { padding: 6rem 1.5rem; }
.contact-ctas { display: flex; flex-direction: column; gap: 1rem; align-items: center; margin-top: 3rem; }
@media (min-width: 640px) { .contact-ctas { flex-direction: row; justify-content: center; } }
.contact-socials { margin-top: 4rem; display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap; }
.contact-socials a { font-family: var(--font-head); font-size: .85rem; letter-spacing: .05em; color: var(--fg-muted); transition: color .2s; }
.contact-socials a:hover { color: var(--primary); }
.contact-footer { margin-top: 6rem; text-align: center; color: rgba(122,122,154,.5); font-size: .75rem; font-family: var(--font-head); letter-spacing: .1em; }

/* ── Blog list ── */
.blog-page { padding: 8rem 1.5rem 6rem; }
.blog-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-top: 1rem; }
@media (min-width: 768px) { .blog-grid { grid-template-columns: 1fr 1fr; } }
.blog-card {
  display: block; border-radius: calc(var(--radius)*2); overflow: hidden;
  border: 1px solid var(--border); background: var(--card); transition: border-color .4s;
}
.blog-card:hover { border-color: rgba(212,150,58,.4); }
.blog-card.featured { grid-column: 1 / -1; }
.blog-card-thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--bg2); }
.blog-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.blog-card:hover .blog-card-thumb img { transform: scale(1.04); }
.blog-card-thumb-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(30,30,48,.9), rgba(30,30,48,.2), transparent);
}
.blog-card-cat {
  position: absolute; top: 1rem; left: 1rem;
  padding: .25rem .75rem; border-radius: 9999px;
  background: rgba(23,23,35,.8); backdrop-filter: blur(4px);
  font-size: .7rem; font-family: monospace; color: var(--primary); border: 1px solid var(--border);
}
.blog-card-body { padding: 1.5rem 2rem; }
.blog-card-meta { display: flex; gap: .75rem; align-items: center; font-size: .75rem; font-family: monospace; color: var(--fg-muted); margin-bottom: .75rem; }
.blog-card-title { font-family: var(--font-head); font-size: 1.4rem; font-weight: 700; color: var(--fg); transition: color .2s; }
.blog-card:hover .blog-card-title { color: var(--primary); }
.blog-card-excerpt { color: var(--fg-muted); margin-top: .75rem; font-size: .95rem; line-height: 1.7; }

/* ── Blog post ── */
.post-page { padding: 6rem 1.5rem 6rem; }
.post-back { display: inline-flex; align-items: center; gap: .5rem; font-family: monospace; font-size: .85rem; color: var(--fg-muted); margin-bottom: 2rem; }
.post-back:hover { color: var(--primary); }
.post-cover { border-radius: calc(var(--radius)*2); overflow: hidden; aspect-ratio: 21/9; background: var(--bg2); margin-bottom: 3rem; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-meta { display: flex; gap: .75rem; align-items: center; font-family: monospace; font-size: .75rem; color: var(--fg-muted); margin-bottom: 1.5rem; }
.post-meta .cat { color: var(--primary); }
.post-title { font-family: var(--font-head); font-size: clamp(2rem,5vw,3.25rem); font-weight: 700; color: var(--fg); line-height: 1.15; }
.post-excerpt { margin-top: 1.5rem; font-size: 1.15rem; color: var(--fg-muted); line-height: 1.8; }
.post-body { margin-top: 3rem; color: rgba(240,237,230,.9); line-height: 1.85; white-space: pre-wrap; font-size: 1rem; }
.post-body p { margin-bottom: 1.2em; }

/* ── Admin ── */
.admin-body { background: var(--bg2); font-family: var(--font-body); }
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar { width: 220px; background: var(--bg); border-right: 1px solid var(--border); padding: 1.5rem 0; flex-shrink: 0; }
.admin-sidebar .logo { padding: 0 1.25rem 1.5rem; font-family: var(--font-head); font-weight: 700; font-size: 1rem; color: var(--fg); border-bottom: 1px solid var(--border); margin-bottom: 1rem; }
.admin-sidebar .logo span { color: var(--primary); }
.admin-sidebar nav a {
  display: block; padding: .6rem 1.25rem;
  font-size: .875rem; color: var(--fg-muted); transition: color .2s, background .2s;
}
.admin-sidebar nav a:hover, .admin-sidebar nav a.active { color: var(--fg); background: rgba(255,255,255,.04); }
.admin-main { flex: 1; padding: 2rem; overflow-x: auto; }
.admin-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.admin-header h1 { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; color: var(--fg); }
.admin-logout { font-size: .8rem; color: var(--fg-muted); }
.admin-logout:hover { color: var(--fg); }
.admin-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.5rem; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.admin-table th { text-align: left; padding: .75rem 1rem; border-bottom: 1px solid var(--border); color: var(--fg-muted); font-family: var(--font-head); font-size: .75rem; letter-spacing: .05em; text-transform: uppercase; }
.admin-table td { padding: .75rem 1rem; border-bottom: 1px solid rgba(42,42,66,.5); color: var(--fg); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table a { color: var(--primary); }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: .8rem; color: var(--fg-muted); margin-bottom: .4rem; font-family: var(--font-head); letter-spacing: .05em; text-transform: uppercase; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: .6rem .9rem;
  background: var(--bg); border: 1px solid var(--border); border-radius: calc(var(--radius) - .2rem);
  color: var(--fg); font-family: var(--font-body); font-size: .9rem;
  transition: border-color .2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--primary);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.btn-save { padding: .6rem 1.5rem; background: var(--primary); color: var(--primary-fg); font-family: var(--font-head); font-size: .85rem; font-weight: 600; border-radius: var(--radius); border: none; cursor: pointer; }
.btn-save:hover { opacity: .85; }
.btn-danger { padding: .4rem 1rem; background: #c0392b; color: #fff; font-size: .8rem; border-radius: calc(var(--radius) - .2rem); border: none; cursor: pointer; }
.btn-danger:hover { opacity: .85; }
.badge { display: inline-block; padding: .15rem .6rem; border-radius: 9999px; font-size: .7rem; font-family: var(--font-head); }
.badge-green { background: rgba(39,174,96,.15); color: #27ae60; }
.badge-gray  { background: rgba(100,100,140,.15); color: var(--fg-muted); }
.flash { padding: .75rem 1rem; border-radius: var(--radius); margin-bottom: 1.5rem; font-size: .875rem; }
.flash-ok  { background: rgba(39,174,96,.1); border: 1px solid rgba(39,174,96,.3); color: #27ae60; }
.flash-err { background: rgba(192,57,43,.1); border: 1px solid rgba(192,57,43,.3); color: #e74c3c; }

/* ── Login page ── */
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2rem; }
.login-card { background: var(--card); border: 1px solid var(--border); border-radius: calc(var(--radius)*2); padding: 2.5rem; width: 100%; max-width: 26rem; }
.login-logo { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; text-align: center; margin-bottom: 2rem; }
.login-logo span { color: var(--primary); }
.login-title { text-align: center; font-family: var(--font-head); font-size: 1.1rem; font-weight: 600; color: var(--fg); margin-bottom: 1.5rem; }
