:root {
  --green-dark: #0d3b24;
  --green: #145c3a;
  --green-light: #1d7a4c;
  --blue: #1857a6;
  --gold: #f4c418;
  --text: #1a2420;
  --text-muted: #5b6b63;
  --bg: #ffffff;
  --bg-soft: #f6faf7;
  --border: #e1e8e3;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(13, 59, 36, 0.08);
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  touch-action: pan-y;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--green-dark);
}

.brand img {
  height: 48px;
  width: auto;
  border-radius: 8px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  font-weight: 600;
  color: var(--text);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--green-dark);
  border-color: var(--green-dark);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}

.btn-primary {
  background: var(--green-dark);
  color: #fff;
  padding: 12px 22px;
}

.btn-primary:hover {
  background: var(--green);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-block {
  width: 100%;
  padding: 16px 24px;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  margin: 5px 0;
  background: var(--green-dark);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  padding: 56px 0 0;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.1rem, 3.6vw, 3.2rem);
  line-height: 1.15;
  margin: 0 0 18px;
  color: var(--green-dark);
  font-weight: 800;
}

.hero-copy h1 .highlight {
  color: var(--blue);
}

.hero-copy p.lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 46ch;
  margin: 0 0 28px;
}

.hero-features {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.hero-feature {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  max-width: 160px;
}

.hero-feature .icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--bg-soft);
  color: var(--green-dark);
}

.hero-feature .icon svg {
  width: 24px;
  height: 24px;
}

.hero-feature span {
  font-weight: 700;
  color: var(--green-dark);
  font-size: 0.95rem;
}

.hero-media {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  min-height: 420px;
  isolation: isolate;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: 28px;
  background: linear-gradient(100deg, var(--green-dark) 0%, var(--green-dark) 4%, var(--gold) 4%, var(--gold) 6%, transparent 6%);
}

/* ---------- Signup form ---------- */
.signup {
  margin-top: 48px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.signup .container {
  padding-top: 0;
  padding-bottom: 0;
}

.signup-inner {
  padding: 32px;
}

.signup h2 {
  margin: 0 0 22px;
  font-size: 1.3rem;
  color: var(--green-dark);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px 24px;
}

.form-grid.form-grid-wide {
  grid-template-columns: 1fr;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text);
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrap svg {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: var(--text-muted);
}

.input-wrap input {
  width: 100%;
  padding: 12px 14px 12px 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.98rem;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input-wrap input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(20, 92, 58, 0.15);
}

.field.invalid .input-wrap input {
  border-color: #d64545;
}

.field-error {
  display: none;
  font-size: 0.82rem;
  color: #c53030;
}

.field.invalid .field-error {
  display: block;
}

.choice-group {
  margin-top: 26px;
}

.choice-group > .choice-label {
  display: block;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.choice-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.choice-options input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.choice-options label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.choice-options input[type="radio"]:checked + label {
  border-color: var(--green-dark);
  background: var(--green-dark);
  color: #fff;
}

.choice-options .dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid currentColor;
  flex-shrink: 0;
  position: relative;
}

.choice-options input[type="radio"]:checked + label .dot::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #fff;
}

.signup-submit {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

.signup-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.88rem;
  max-width: 42ch;
}

.signup-note svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

.form-success {
  display: none;
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: 10px;
  background: #e6f4ea;
  color: var(--green-dark);
  font-weight: 600;
}

.form-success.visible {
  display: block;
}

/* ---------- Generic page sections ---------- */
.page-hero {
  padding: 64px 0 40px;
  background: var(--bg-soft);
  text-align: center;
}

.page-hero h1 {
  color: var(--green-dark);
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 0 0 12px;
}

.page-hero p {
  color: var(--text-muted);
  max-width: 60ch;
  margin: 0 auto;
}

.page-content {
  padding: 56px 0 80px;
}

.page-content p {
  max-width: 70ch;
  color: var(--text-muted);
}

/* ---------- Prose block (narrative pages) ---------- */
.prose {
  max-width: 74ch;
  margin: 0 auto;
}

.prose h2 {
  color: var(--green-dark);
  font-size: 1.4rem;
  margin: 40px 0 14px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  color: var(--text-muted);
  margin: 0 0 16px;
  max-width: none;
}

.prose p.lead-line {
  color: var(--green-dark);
  font-weight: 700;
  font-size: 1.1rem;
}

.prose ul {
  margin: 0 0 16px;
  padding-left: 0;
  list-style: none;
}

/* ---------- Info list (schedule / facts) ---------- */
.info-list {
  display: grid;
  gap: 16px;
  margin: 32px auto 0;
  max-width: 74ch;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.info-item .icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #fff;
  color: var(--green-dark);
}

.info-item .icon svg {
  width: 20px;
  height: 20px;
}

.info-item strong {
  display: block;
  color: var(--text);
  margin-bottom: 2px;
}

.info-item span {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---------- Video gallery ---------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  margin-top: 8px;
}

.video-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0a2318;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-card-caption {
  padding: 14px 18px;
  font-weight: 700;
  color: var(--text);
  font-size: 0.95rem;
}

.video-embed video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #0a2318;
  object-fit: cover;
}

/* ---------- Photo gallery ---------- */
.gallery-section-title {
  margin: 48px 0 20px;
  font-size: 1.3rem;
  color: var(--text);
}

.page-content .gallery-section-title:first-child {
  margin-top: 0;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.photo-grid.photo-grid-portrait {
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
}

.photo-item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.photo-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.photo-item img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  cursor: zoom-in;
}

.photo-grid-portrait .photo-item img {
  aspect-ratio: 1 / 1;
}

.photo-item figcaption {
  padding: 10px 12px;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text);
  text-align: center;
}

/* ---------- Photo lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(6, 20, 14, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.22);
}

body.lightbox-open {
  overflow: hidden;
}

/* ---------- Team grid (Antrenori) ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 36px;
}

.team-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.team-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.avatar-initials {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green-dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
}

.team-card h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text);
}

.team-card .role {
  display: block;
  color: var(--blue);
  font-weight: 600;
  font-size: 0.88rem;
  margin-top: 2px;
}

.team-card p {
  color: var(--text-muted);
  font-size: 0.94rem;
  margin: 0 0 10px;
}

.team-card p:last-child {
  margin-bottom: 0;
}

/* ---------- Groups list ---------- */
.mt-lg {
  margin-top: 32px;
}

.note-muted {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.groups-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 32px;
}

.group-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.group-card .group-name {
  font-weight: 700;
  color: var(--text);
}

.group-card .group-coach {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.group-card .group-badge {
  flex-shrink: 0;
  background: var(--green-dark);
  color: #fff;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 6px 12px;
  border-radius: 999px;
}

/* ---------- Contact block ---------- */
.contact-block {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  margin-top: 32px;
  padding: 28px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.contact-block .contact-name {
  font-weight: 700;
  color: var(--green-dark);
  margin: 0 0 4px;
}

.contact-block .contact-role {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.95rem;
}

.contact-phone-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.closing-line {
  text-align: center;
  font-weight: 700;
  color: var(--green-dark);
  font-size: 1.15rem;
  margin-top: 40px;
}

@media (max-width: 620px) {
  .contact-block {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .contact-block .contact-phone-link {
    justify-content: center;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-dark);
  color: #fff;
  margin-top: 64px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 28px 0;
}

.footer-tagline {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-tagline .ball-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-tagline .ball-icon svg {
  width: 22px;
  height: 22px;
}

.footer-tagline strong {
  display: block;
  font-size: 1rem;
}

.footer-tagline span {
  display: block;
  font-size: 0.85rem;
  opacity: 0.8;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.footer-social a:hover {
  background: rgba(255, 255, 255, 0.25);
}

.footer-social svg {
  width: 18px;
  height: 18px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.footer-brand img {
  height: 34px;
  width: auto;
  background: #fff;
  padding: 3px;
  border-radius: 6px;
}

.footer-admin-link {
  text-align: center;
  padding: 10px 0 18px;
  background: var(--green-dark);
}

.footer-admin-link a {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.75rem;
  text-decoration: none;
}

.footer-admin-link a:hover {
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- Motion ---------- */
.site-header {
  transition: box-shadow 0.25s ease;
}

.site-header.scrolled {
  box-shadow: var(--shadow);
}

.main-nav a {
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 0;
  height: 2px;
  background: var(--green-dark);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  transform: scaleX(1);
}

.main-nav a.active {
  border-color: transparent;
}

.btn {
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}

.btn:active {
  transform: scale(0.97);
}

.hero-feature .icon {
  transition: transform 0.25s ease, background 0.25s ease;
}

.hero-feature:hover .icon {
  transform: translateY(-4px) scale(1.06);
  background: #e8f3ec;
}

.choice-options label {
  transition: border-color 0.2s, background 0.2s, color 0.2s, transform 0.15s ease;
}

.choice-options label:active {
  transform: scale(0.97);
}

.footer-tagline .ball-icon svg {
  animation: spin-slow 14s linear infinite;
}

@keyframes spin-slow {
  to {
    transform: rotate(360deg);
  }
}

@keyframes float-y {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes fade-in-left {
  from {
    opacity: 0;
    transform: translateX(-28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fade-in-right {
  from {
    opacity: 0;
    transform: translateX(28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Hero: plays automatically on page load — always above the fold, so a
   scroll-triggered reveal would never be seen. */
html.js-anim .hero-copy {
  animation: fade-in-left 0.8s ease both;
}

html.js-anim .hero-media {
  animation: fade-in-right 0.8s ease both, float-y 6s ease-in-out 0.8s infinite;
}

html.js-anim .hero-features .hero-feature {
  opacity: 0;
  animation: fade-in-up 0.6s ease forwards;
}

html.js-anim .hero-features .hero-feature:nth-child(1) {
  animation-delay: 0.35s;
}

html.js-anim .hero-features .hero-feature:nth-child(2) {
  animation-delay: 0.46s;
}

html.js-anim .hero-features .hero-feature:nth-child(3) {
  animation-delay: 0.57s;
}

/* Everything else: scroll-triggered via IntersectionObserver ([data-reveal] + .is-visible) */
[data-reveal] {
  opacity: 1;
  transform: none;
}

html.js-anim [data-reveal] {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

html.js-anim [data-reveal="up"] {
  transform: translateY(28px);
}

html.js-anim [data-reveal="left"] {
  transform: translateX(-28px);
}

html.js-anim [data-reveal="right"] {
  transform: translateX(28px);
}

html.js-anim [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html.js-anim [data-reveal],
  html.js-anim .hero-copy,
  html.js-anim .hero-media,
  html.js-anim .hero-features .hero-feature {
    opacity: 1;
    transform: none;
    transition: none;
    animation: none;
  }

  .footer-tagline .ball-icon svg {
    animation: none;
  }

  .btn:active {
    transform: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .container {
    grid-template-columns: 1fr;
  }

  .hero-media {
    order: -1;
    min-height: 320px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .signup-submit {
    grid-template-columns: 1fr;
  }

  .signup-note {
    max-width: none;
    order: 2;
  }
}

@media (max-width: 780px) {
  .main-nav {
    position: fixed;
    inset: 72px 16px auto 16px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 4px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav a {
    padding: 10px 8px;
    border-bottom: none;
    border-radius: 8px;
  }

  .main-nav a.active,
  .main-nav a:hover {
    background: var(--bg-soft);
  }

  .header-actions .btn-primary {
    padding: 10px 16px;
    font-size: 0.9rem;
  }

  .nav-toggle {
    display: block;
  }

  .signup-inner {
    padding: 22px;
  }
}

@media (max-width: 520px) {
  .hero {
    padding-top: 32px;
  }

  .hero-features {
    gap: 20px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ---------- Admin panel ---------- */
.admin-shell {
  min-height: 100vh;
  background: var(--bg-soft, #f4f7f5);
  display: flex;
  flex-direction: column;
}

.admin-header {
  background: var(--green-dark);
  color: #fff;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.admin-header .brand-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.admin-header .brand-mini img {
  height: 32px;
  width: auto;
  background: #fff;
  padding: 3px;
  border-radius: 6px;
}

.admin-header .btn-logout {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-weight: 600;
  cursor: pointer;
}

.admin-header .btn-logout:hover {
  background: rgba(255, 255, 255, 0.22);
}

.admin-main {
  flex: 1;
  padding: 32px 20px 64px;
}

.admin-login-box {
  max-width: 360px;
  margin: 80px auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
}

.admin-login-box h1 {
  margin: 0 0 6px;
  font-size: 1.3rem;
}

.admin-login-box p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 20px;
}

.admin-login-box input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  margin-bottom: 14px;
}

.admin-login-error {
  color: #b3261e;
  font-size: 0.85rem;
  margin: -6px 0 14px;
  min-height: 1.2em;
}

.admin-layout {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 28px;
}

.admin-sidebar {
  flex: 0 0 220px;
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.admin-sidebar-group {
  margin: 16px 0 4px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  font-weight: 700;
}

.admin-sidebar-group:first-child {
  margin-top: 0;
}

.admin-sidebar a {
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
}

.admin-sidebar a:hover {
  background: var(--bg-soft, #f4f7f5);
}

.admin-categories {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 22px;
}

.admin-category {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  scroll-margin-top: 20px;
}

.admin-category h2 {
  margin: 0 0 4px;
  font-size: 1.1rem;
}

.admin-category .admin-category-hint {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0 0 16px;
}

.admin-subheading {
  margin: 18px 0 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
}

.admin-single-slot {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: stretch;
}

.admin-current-preview {
  flex: 0 0 220px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-current-preview img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #eee;
}

.admin-current-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.admin-current-source {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.admin-single-slot .admin-dropzone {
  flex: 1;
  min-width: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-import-block {
  background: #fff8e1;
  border: 1px solid #f0d98c;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
}

.admin-import-note {
  font-size: 0.85rem;
  color: #6b5300;
  margin: 0 0 12px;
  line-height: 1.5;
}

.admin-static-preview-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 14px;
}

.admin-static-preview-strip img,
.admin-static-preview-strip video {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  border: 1px solid #f0d98c;
}

.admin-import-btn {
  padding: 10px 18px;
  font-size: 0.88rem;
}

@media (max-width: 900px) {
  .admin-layout {
    flex-direction: column;
  }

  .admin-sidebar {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
  }

  .admin-sidebar-group {
    display: none;
  }
}

.admin-dropzone {
  display: block;
  border: 2px dashed var(--border);
  border-radius: 10px;
  padding: 18px;
  text-align: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.admin-dropzone:hover,
.admin-dropzone.dragover {
  border-color: var(--green-dark);
  background: var(--bg-soft, #f4f7f5);
}

.admin-dropzone input[type="file"] {
  display: none;
}

.admin-thumb-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
}

.admin-thumb {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #eee;
}

.admin-thumb img,
.admin-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.admin-thumb .admin-thumb-delete {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.admin-thumb .admin-thumb-delete:hover {
  background: #b3261e;
}

.admin-status {
  font-size: 0.85rem;
  margin-top: 10px;
  min-height: 1.2em;
}

.admin-status.error {
  color: #b3261e;
}

.admin-status.success {
  color: var(--green-dark);
}

.admin-empty {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 12px;
}

.admin-setup-notice {
  max-width: 640px;
  margin: 24px auto 0;
  background: #fff8e1;
  border: 1px solid #f0d98c;
  border-radius: 10px;
  padding: 16px 18px;
  font-size: 0.88rem;
  color: #6b5300;
  line-height: 1.5;
}
