/* ============================================================
   LegacyGamers Network — Silver / Platinum / Chrome
   Industrial futurism. Sharp, commanding, refined.
   Fonts: Orbitron (logo/display) + Barlow (body/UI)
   ============================================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ── Skip to Content ── */
.skip-to-content {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 99999;
  padding: 0.6rem 1.2rem;
  background: var(--silver-bright);
  color: var(--void);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 4px 4px;
  transition: top 0.2s ease;
}

.skip-to-content:focus {
  top: 0;
  outline: 2px solid var(--silver-bright);
  outline-offset: 2px;
}

/* ── Focus Visible ── */
:focus-visible {
  outline: 2px solid var(--silver);
  outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--silver);
  outline-offset: 2px;
}

:root {
  --void: #080510;
  --deep: #100e1e;
  --panel: #0c0a17;

  --silver: #b8b0a0;
  --silver-bright: #e0d8cc;
  --silver-pale: #d4cec0;
  --silver-dim: #7a746a;
  --silver-shine: #f0ece4;
  --chrome: #c8c0b0;

  --text: #ccc8bc;
  --text-dim: #827c72;
  --text-muted: #4a4565;

  --discord: #5865F2;
  --discord-hover: #7289da;

  --font-logo: 'Orbitron', sans-serif;
  --font-body: 'Barlow', sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --space-2xl: 10rem;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--void);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

a { color: inherit; text-decoration: none; }

/* ============================================================
   BACKGROUND — diagonal rotating strips, three layers
   ============================================================ */

.bg-scroll {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

/* Layer 1 — wide strips, slow clockwise */
.bg-scroll::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: repeating-linear-gradient(
    45deg,
    transparent 0px,
    transparent 80px,
    rgba(184,176,160,0.028) 80px,
    rgba(184,176,160,0.028) 83px,
    transparent 83px,
    transparent 200px,
    rgba(130,124,114,0.02) 200px,
    rgba(130,124,114,0.02) 204px,
    transparent 204px,
    transparent 340px
  );
  animation: strip-rotate-cw 90s linear infinite;
}

/* Layer 2 — counter-clockwise, different angle */
.bg-scroll::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: repeating-linear-gradient(
    -30deg,
    transparent 0px,
    transparent 120px,
    rgba(184,176,160,0.022) 120px,
    rgba(184,176,160,0.022) 123px,
    transparent 123px,
    transparent 280px,
    rgba(100,96,88,0.016) 280px,
    rgba(100,96,88,0.016) 285px,
    transparent 285px,
    transparent 500px
  );
  animation: strip-rotate-cw 120s linear infinite reverse;
}

/* Layer 3 — inner div, wider spacing, slower */
.bg-strip-3 {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: repeating-linear-gradient(
    15deg,
    transparent 0px,
    transparent 160px,
    rgba(184,176,160,0.015) 160px,
    rgba(184,176,160,0.015) 165px,
    transparent 165px,
    transparent 400px
  );
  animation: strip-rotate-cw 160s linear infinite;
}

@keyframes strip-rotate-cw {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Vignette */
.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 50% 40%,
      transparent 30%,
      rgba(8,5,16,0.35) 60%,
      rgba(8,5,16,0.85) 100%);
}

/* ============================================================
   HEADER
   ============================================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  transition: all 0.5s cubic-bezier(0.25, 0, 0.2, 1);
}

.site-header.scrolled {
  padding: 0.75rem 0;
  background: rgba(8,5,16,0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(184,176,160,0.06);
}

.site-header.minimal {
  background: transparent;
  border-bottom: none;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: var(--font-logo);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.25em;
  color: var(--silver-pale);
  transition: color 0.3s ease;
}

.nav-brand:hover {
  color: var(--silver-shine);
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2.5rem;
}

.nav-links a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--silver-dim);
  transition: color 0.35s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--silver-dim), transparent);
  transition: width 0.4s cubic-bezier(0.25, 0, 0.2, 1);
}

.nav-links a:hover { color: var(--silver-bright); }
.nav-links a:hover::after { width: 100%; }

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-md);
}

.hero-brand {
  font-family: var(--font-logo);
  font-weight: 700;
  font-size: clamp(2.2rem, 6.5vw, 4.2rem);
  letter-spacing: 0.25em;
  line-height: 1.05;
  color: transparent;
  background: linear-gradient(
    180deg,
    var(--silver-shine) 0%,
    var(--silver-bright) 18%,
    var(--chrome) 40%,
    var(--silver) 58%,
    var(--silver-dim) 80%,
    rgba(122,116,106,0.5) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 2px 30px rgba(184,176,160,0.08));
  margin-bottom: 0.5rem;
  opacity: 0;
  animation: hero-reveal 2.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.hero-subtitle {
  font-family: var(--font-logo);
  font-weight: 300;
  font-size: clamp(0.9rem, 2.2vw, 1.3rem);
  letter-spacing: 0.7em;
  text-transform: uppercase;
  color: var(--text-dim);
  opacity: 0;
  animation: hero-reveal 2s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
}

/* Ornament divider */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0 0;
  opacity: 0;
  animation: hero-reveal 1.8s cubic-bezier(0.16, 1, 0.3, 1) 1.2s forwards;
}

.ornament-line {
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--silver-dim), transparent);
}

.ornament-diamond {
  width: 5px;
  height: 5px;
  background: var(--silver);
  transform: rotate(45deg);
  box-shadow: 0 0 8px rgba(184,176,160,0.2);
}

/* Tagline */
.hero-tagline {
  font-family: var(--font-body);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(0.9rem, 1.8vw, 1.05rem);
  color: var(--text-muted);
  letter-spacing: 0.06em;
  margin-top: 1.5rem;
  opacity: 0;
  animation: hero-reveal 1.6s cubic-bezier(0.16, 1, 0.3, 1) 1.6s forwards;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  animation: hero-reveal 1.5s ease-out 2.2s forwards;
}

.hero-scroll-indicator {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, var(--silver-dim), transparent);
  animation: scroll-pulse 2.5s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50%      { opacity: 0.7; transform: scaleY(1.2); }
}

@keyframes hero-reveal {
  from { opacity: 0; transform: translateY(25px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   SECTION — shared
   ============================================================ */

.section {
  position: relative;
  z-index: 10;
  padding: var(--space-xl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.section-title {
  font-family: var(--font-logo);
  font-weight: 600;
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  letter-spacing: 0.2em;
  color: var(--silver-pale);
  margin-bottom: 0.6rem;
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

/* Section divider — reusable ornament between sections */
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: var(--space-md) 0;
  position: relative;
  z-index: 10;
}

.section-divider .ornament-line {
  width: 60px;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > .reveal:nth-child(1) { transition-delay: 0s; }
.reveal-stagger > .reveal:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: 0.24s; }
.reveal-stagger > .reveal:nth-child(4) { transition-delay: 0.36s; }

/* ============================================================
   FEATURED GAME CARD — wide, horizontal, commanding
   ============================================================ */

.games-section {
  padding-top: var(--space-lg);
  padding-bottom: var(--space-md);
}

.featured-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: 2.2rem 2.8rem;
  border: 1px solid rgba(184,176,160,0.08);
  background: linear-gradient(135deg, rgba(184,176,160,0.025) 0%, rgba(8,5,16,0.5) 100%);
  transition: all 0.55s cubic-bezier(0.25, 0, 0.2, 1);
  overflow: hidden;
  position: relative;
}

/* Animated border glow on hover */
.featured-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(184,176,160,0.04) 0%,
    transparent 40%,
    transparent 60%,
    rgba(184,176,160,0.02) 100%
  );
  opacity: 0;
  transition: opacity 0.55s ease;
}

.featured-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--silver), var(--silver-dim), transparent);
  transition: width 0.6s cubic-bezier(0.25, 0, 0.2, 1);
  box-shadow: 0 0 15px rgba(184,176,160,0.12);
}

.featured-card:hover {
  border-color: rgba(184,176,160,0.18);
  transform: translateY(-3px);
  box-shadow: 0 16px 50px rgba(0,0,0,0.35);
}

.featured-card:hover::before { opacity: 1; }
.featured-card:hover::after { width: 100%; }

.featured-card-body {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  position: relative;
  min-width: 0;
}

.featured-card-icon {
  font-size: 2.8rem;
  line-height: 1;
  flex-shrink: 0;
}

.featured-card-info {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.card-title {
  font-family: var(--font-logo);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  color: var(--silver-bright);
  position: relative;
}

.card-desc {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-dim);
  letter-spacing: 0.03em;
  position: relative;
}

.card-status {
  font-family: var(--font-logo);
  font-weight: 600;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--silver-dim);
  padding: 0.25rem 0.8rem;
  border: 1px solid rgba(184,176,160,0.1);
  position: relative;
  align-self: flex-start;
  margin-top: 0.2rem;
}

.featured-card-arrow {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(184,176,160,0.1);
  color: var(--silver-dim);
  transition: all 0.45s cubic-bezier(0.25, 0, 0.2, 1);
  position: relative;
}

.featured-card-arrow svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  transition: transform 0.35s ease;
}

.featured-card:hover .featured-card-arrow {
  border-color: rgba(184,176,160,0.25);
  color: var(--silver-bright);
  background: rgba(184,176,160,0.04);
}

.featured-card:hover .featured-card-arrow svg {
  transform: translateX(3px);
}

/* ============================================================
   VALUES / PILLARS
   ============================================================ */

.about-section {
  padding-top: var(--space-lg);
  padding-bottom: var(--space-xl);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.value-item {
  text-align: center;
  padding: 1.5rem 1rem;
}

.value-icon {
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
  line-height: 1;
  filter: grayscale(0.3);
}

.value-title {
  font-family: var(--font-logo);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--silver-pale);
  margin-bottom: 0.5rem;
}

.value-desc {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.6;
  letter-spacing: 0.02em;
}

.about-content {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.about-content p {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.85;
  letter-spacing: 0.02em;
}

.about-content p + p {
  margin-top: 1.2rem;
}

/* ============================================================
   COMMUNITY / DISCORD
   ============================================================ */

.community-section {
  text-align: center;
  padding: var(--space-lg) 0 var(--space-xl);
}

.community-text {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dim);
  margin-bottom: 2rem;
  letter-spacing: 0.03em;
}

.discord-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-logo);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  padding: 0.85rem 2.2rem;
  background: rgba(88,101,242,0.12);
  border: 1px solid rgba(88,101,242,0.25);
  transition: all 0.45s cubic-bezier(0.25, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.discord-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(88,101,242,0.08) 0%,
    transparent 50%,
    rgba(114,137,218,0.05) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

.discord-btn:hover {
  background: rgba(88,101,242,0.2);
  border-color: rgba(114,137,218,0.4);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(88,101,242,0.12);
}

.discord-btn:hover::before { opacity: 1; }

.discord-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  position: relative;
}

/* ============================================================
   FOOTER — compact single row
   ============================================================ */

.site-footer {
  position: relative;
  z-index: 10;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(184,176,160,0.05);
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  font-family: var(--font-logo);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--silver-dim);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-links a {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: color 0.3s ease;
  letter-spacing: 0.02em;
}

.footer-links a:hover { color: var(--silver-pale); }

.footer-links .footer-sep {
  color: rgba(130,124,114,0.25);
  font-size: 0.75rem;
  margin: 0 0.4rem;
  user-select: none;
}

.footer-copy {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: rgba(130,124,114,0.35);
  letter-spacing: 0.06em;
}

.footer-copy .heart {
  color: rgba(184,176,160,0.45);
}

/* ============================================================
   404 PAGE
   ============================================================ */

.error-page {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-md);
}

.error-code {
  font-family: var(--font-logo);
  font-weight: 700;
  font-size: clamp(6rem, 20vw, 13rem);
  line-height: 1;
  color: transparent;
  background: linear-gradient(
    180deg,
    rgba(184,176,160,0.12) 0%,
    rgba(122,116,106,0.06) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  user-select: none;
  opacity: 0;
  animation: fade-in 1.5s ease-out 0.2s forwards;
}

.tombstone {
  font-size: 3.5rem;
  margin: -0.3rem 0 1.2rem;
  filter: grayscale(0.4);
  opacity: 0;
  animation: hero-reveal 1.5s ease-out 0.6s forwards;
}

.message {
  font-family: var(--font-logo);
  font-weight: 600;
  font-size: clamp(1.2rem, 3.5vw, 1.9rem);
  letter-spacing: 0.1em;
  color: var(--silver-pale);
  margin-bottom: 0.7rem;
  opacity: 0;
  animation: hero-reveal 1.5s ease-out 0.9s forwards;
}

.flavor {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  font-style: italic;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: hero-reveal 1.5s ease-out 1.2s forwards;
}

.error-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: hero-reveal 1.5s ease-out 1.4s forwards;
}

.home-link {
  font-family: var(--font-logo);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--silver-dim);
  padding: 0.75rem 2rem;
  border: 1px solid rgba(184,176,160,0.12);
  transition: all 0.5s cubic-bezier(0.25, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  opacity: 0;
  animation: hero-reveal 1.5s ease-out 1.6s forwards;
}

.home-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--silver);
  transition: all 0.5s cubic-bezier(0.25, 0, 0.2, 1);
  transform: translateX(-50%);
  box-shadow: 0 0 10px rgba(184,176,160,0.2);
}

.home-link:hover {
  color: var(--silver-bright);
  border-color: rgba(184,176,160,0.25);
  transform: translateY(-2px);
}

.home-link:hover::after { width: 60%; }

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .hero-brand { font-size: clamp(1.8rem, 4.5vw, 2.8rem); }
  .values-grid { gap: var(--space-sm); }
  .container { padding-left: 1.5rem; padding-right: 1.5rem; }

  /* Pause continuous bg animations on tablets and below to save battery */
  .bg-scroll::before,
  .bg-scroll::after,
  .bg-strip-3 {
    animation-play-state: paused;
  }
}

/* Hamburger toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--silver-dim);
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(8, 5, 16, 0.97);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 999;
  }

  .nav-links.open { opacity: 1; visibility: visible; }
  .nav-links a { font-size: 0.9rem; padding: 0.75rem 1.5rem; }

  .nav-user {
    font-size: 0.78rem;
    opacity: 0.5;
  }

  .nav-login { margin-left: 0; }

  .hero-brand { letter-spacing: 0.15em; }
  .hero-subtitle { letter-spacing: 0.35em; }
  .ornament-line { width: 50px; }

  .featured-card {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1.8rem;
  }

  .featured-card-body {
    flex-direction: column;
    text-align: center;
  }

  .card-status { align-self: center; }

  .featured-card-arrow {
    width: 40px;
    height: 40px;
  }

  .featured-card-arrow svg {
    transform: rotate(90deg);
  }

  .featured-card:hover .featured-card-arrow svg {
    transform: rotate(90deg) translateX(3px);
  }

  .values-grid {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  .footer-row {
    flex-direction: column;
    gap: 0.8rem;
    text-align: center;
  }

  .nav-brand { font-size: 0.9rem; letter-spacing: 0.18em; }
}

@media (max-width: 480px) {
  .hero-brand { letter-spacing: 0.1em; }
  .section-title { letter-spacing: 0.1em; }
}

/* ============================================================
   NAV — auth-aware extensions
   ============================================================ */

.nav-user {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--silver-dim);
  opacity: 0.7;
}

.nav-login {
  color: var(--silver-pale) !important;
  padding: 0.35rem 1rem;
  border: 1px solid rgba(184,176,160,0.12);
  transition: all 0.4s cubic-bezier(0.25, 0, 0.2, 1) !important;
}

.nav-login:hover {
  border-color: rgba(184,176,160,0.3) !important;
  background: rgba(184,176,160,0.04);
}

.nav-links a.active { color: var(--silver-bright); }

.nav-links a.active::after {
  width: 100%;
  background: linear-gradient(90deg, transparent, var(--silver-dim), transparent);
}

/* ============================================================
   AUTH PAGE — login / register
   ============================================================ */

.auth-page {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem var(--space-md) var(--space-lg);
}

.auth-panel {
  width: 100%;
  max-width: 420px;
  padding: 2.8rem 2.5rem 2.2rem;
  background:
    linear-gradient(168deg,
      rgba(184,176,160,0.03) 0%,
      rgba(12,10,23,0.85) 40%,
      rgba(8,5,16,0.92) 100%);
  border: 1px solid rgba(184,176,160,0.07);
  position: relative;
  overflow: hidden;
}

/* Top accent line — swept chrome reflection */
.auth-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(184,176,160,0.08) 20%,
    rgba(224,216,204,0.2) 50%,
    rgba(184,176,160,0.08) 80%,
    transparent 100%
  );
}

/* Corner bevels */
.auth-panel::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 24px;
  height: 24px;
  background: linear-gradient(
    225deg,
    rgba(184,176,160,0.04) 0%,
    transparent 60%
  );
  clip-path: polygon(100% 0, 0 0, 100% 100%);
}

/* data-reveal entrance */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  animation: auth-enter 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}

@keyframes auth-enter {
  to { opacity: 1; transform: translateY(0); }
}

.auth-icon {
  text-align: center;
  margin-bottom: 1.2rem;
}

.auth-icon svg {
  width: 56px;
  height: 56px;
  color: var(--silver-dim);
  opacity: 0.4;
  filter: drop-shadow(0 0 12px rgba(184,176,160,0.06));
}

.auth-title {
  font-family: var(--font-logo);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.18em;
  text-align: center;
  color: var(--silver-pale);
  margin-bottom: 0.35rem;
}

.auth-subtitle {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.88rem;
  text-align: center;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  margin-bottom: 0.3rem;
}

.auth-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin: 1.2rem 0 1.8rem;
}

.auth-ornament .ornament-line { width: 50px; }

.auth-footer-link {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(184,176,160,0.05);
}

.auth-footer-link p {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.auth-footer-link a {
  color: var(--silver);
  transition: color 0.3s ease;
  border-bottom: 1px solid rgba(184,176,160,0.12);
  padding-bottom: 1px;
}

.auth-footer-link a:hover { color: var(--silver-shine); }

/* ============================================================
   FORM COMPONENTS
   ============================================================ */

.form-group {
  margin-bottom: 1.15rem;
}

.form-label {
  display: block;
  font-family: var(--font-logo);
  font-weight: 500;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--silver-dim);
  margin-bottom: 0.45rem;
}

.form-input,
.form-select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--silver-bright);
  background: rgba(8,5,16,0.6);
  border: 1px solid rgba(184,176,160,0.08);
  outline: none;
  transition: all 0.35s cubic-bezier(0.25, 0, 0.2, 1);
  -webkit-appearance: none;
  appearance: none;
}

.form-input::placeholder {
  color: rgba(130,124,114,0.35);
  font-weight: 300;
}

.form-input:focus,
.form-select:focus {
  border-color: rgba(184,176,160,0.22);
  background: rgba(8,5,16,0.75);
  box-shadow:
    0 0 0 1px rgba(184,176,160,0.04),
    0 4px 20px rgba(0,0,0,0.2);
}

.form-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%237a746a' stroke-width='1.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.4rem;
}

.form-select option {
  background: var(--deep);
  color: var(--text);
}

.form-error {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: #a05050;
  margin-top: 0.35rem;
  min-height: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.3s ease;
}

.form-error.visible {
  min-height: 1rem;
  max-height: 3rem;
  opacity: 1;
}

.form-error-global {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: #c06060;
  background: rgba(160,60,60,0.06);
  border: 1px solid rgba(160,60,60,0.12);
  padding: 0.65rem 0.9rem;
  margin-bottom: 1.2rem;
  letter-spacing: 0.02em;
}

.form-success {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: #60a070;
  background: rgba(60,160,90,0.06);
  border: 1px solid rgba(60,160,90,0.12);
  padding: 0.65rem 0.9rem;
  margin-bottom: 1.2rem;
  letter-spacing: 0.02em;
}

.form-row {
  display: flex;
  gap: 1rem;
}

.form-group-half {
  flex: 1;
}

/* Password strength meter */
.strength-meter {
  height: 3px;
  background: rgba(184,176,160,0.06);
  margin-top: 0.5rem;
  overflow: hidden;
}

.strength-fill {
  height: 100%;
  width: 0;
  transition: width 0.4s cubic-bezier(0.25, 0, 0.2, 1),
              background-color 0.4s ease;
  box-shadow: 0 0 6px currentColor;
}

.strength-label {
  font-family: var(--font-logo);
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 0.3rem;
  min-height: 0.9rem;
  transition: color 0.3s ease;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-logo);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.8rem 2rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  outline: none;
}

.btn-silver {
  color: var(--void);
  background: linear-gradient(
    175deg,
    var(--silver-shine) 0%,
    var(--chrome) 35%,
    var(--silver) 65%,
    var(--silver-dim) 100%
  );
  border-color: rgba(184,176,160,0.2);
  text-shadow: 0 1px 0 rgba(255,255,255,0.1);
}

.btn-silver:hover {
  background: linear-gradient(
    175deg,
    #f5f0e8 0%,
    var(--silver-shine) 35%,
    var(--chrome) 65%,
    var(--silver) 100%
  );
  transform: translateY(-1px);
  box-shadow:
    0 4px 18px rgba(184,176,160,0.12),
    0 0 1px rgba(184,176,160,0.3);
}

.btn-silver:active {
  transform: translateY(0);
}

.btn-silver:disabled {
  opacity: 0.5;
  pointer-events: none;
}

.btn-outline {
  color: var(--silver-dim);
  background: transparent;
  border-color: rgba(184,176,160,0.12);
}

.btn-outline:hover {
  color: var(--silver-bright);
  border-color: rgba(184,176,160,0.25);
  background: rgba(184,176,160,0.03);
}

.btn-danger {
  color: #e8c0c0;
  background: rgba(140,50,50,0.2);
  border-color: rgba(160,60,60,0.25);
}

.btn-danger:hover {
  background: rgba(160,50,50,0.35);
  border-color: rgba(180,70,70,0.4);
  box-shadow: 0 4px 16px rgba(160,50,50,0.12);
}

.btn-sm {
  font-size: 0.62rem;
  padding: 0.55rem 1.3rem;
  letter-spacing: 0.15em;
}

/* ============================================================
   ADMIN LAYOUT
   ============================================================ */

.admin-page {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  padding-top: 4rem;
}

.admin-layout {
  display: flex;
  min-height: calc(100vh - 4rem);
}

/* Sidebar */
.admin-sidebar {
  width: 220px;
  flex-shrink: 0;
  background: rgba(8,5,16,0.65);
  border-right: 1px solid rgba(184,176,160,0.05);
  display: flex;
  flex-direction: column;
  padding: 1.8rem 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.admin-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0 1.3rem 1.5rem;
  border-bottom: 1px solid rgba(184,176,160,0.05);
  margin-bottom: 1rem;
  font-family: var(--font-logo);
  font-weight: 600;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--silver-dim);
}

.admin-sidebar-icon {
  width: 18px;
  height: 18px;
  opacity: 0.5;
}

.admin-sidebar-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 0.6rem;
}

.admin-sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.7rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  transition: all 0.3s ease;
  border-left: 2px solid transparent;
  position: relative;
}

.admin-sidebar-link svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.admin-sidebar-link:hover {
  color: var(--silver-pale);
  background: rgba(184,176,160,0.02);
}

.admin-sidebar-link:hover svg { opacity: 0.8; }

.admin-sidebar-link.active {
  color: var(--silver-bright);
  border-left-color: var(--silver-dim);
  background: rgba(184,176,160,0.04);
}

.admin-sidebar-link.active svg { opacity: 1; }

.admin-sidebar-footer {
  padding: 1rem 0.6rem 0;
  border-top: 1px solid rgba(184,176,160,0.05);
  margin-top: 1rem;
}

.admin-sidebar-back {
  font-size: 0.78rem;
  color: var(--text-muted) !important;
}

/* Admin sidebar mobile toggle */
.admin-sidebar-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 24px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
}

.admin-sidebar-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--silver-dim);
  transition: transform 0.3s, opacity 0.3s;
}

.admin-sidebar-toggle.active span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.admin-sidebar-toggle.active span:nth-child(2) { opacity: 0; }
.admin-sidebar-toggle.active span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* Content area */
.admin-content {
  flex: 1;
  min-width: 0;
  padding: 2rem 2.5rem;
}

/* ============================================================
   ADMIN COMPONENTS
   ============================================================ */

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.8rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(184,176,160,0.06);
}

.admin-title {
  font-family: var(--font-logo);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.15em;
  color: var(--silver-pale);
}

.admin-panel {
  background: rgba(12,10,23,0.5);
  border: 1px solid rgba(184,176,160,0.06);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.admin-panel-title {
  font-family: var(--font-logo);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  color: var(--silver);
  margin-bottom: 1.2rem;
}

/* Admin table */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 0.85rem;
}

.admin-table th {
  font-family: var(--font-logo);
  font-weight: 500;
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--silver-dim);
  text-align: left;
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid rgba(184,176,160,0.08);
  white-space: nowrap;
}

.admin-table td {
  padding: 0.65rem 0.8rem;
  color: var(--text-dim);
  border-bottom: 1px solid rgba(184,176,160,0.03);
  vertical-align: middle;
}

.admin-table tr:hover td {
  background: rgba(184,176,160,0.015);
}

.admin-id {
  font-family: var(--font-logo);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.admin-title-cell {
  color: var(--silver-pale) !important;
  font-weight: 500;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-date {
  font-size: 0.78rem;
  color: var(--text-muted) !important;
  white-space: nowrap;
}

.admin-actions {
  display: flex;
  gap: 0.4rem;
}

.admin-actions button,
.btn-edit,
.btn-delete {
  background: none;
  border: 1px solid rgba(184,176,160,0.06);
  color: var(--silver-dim);
  cursor: pointer;
  padding: 0.3rem 0.5rem;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  line-height: 1;
}

.btn-edit:hover {
  color: var(--silver-bright);
  border-color: rgba(184,176,160,0.15);
  background: rgba(184,176,160,0.03);
}

.btn-delete:hover {
  color: #c07070;
  border-color: rgba(180,70,70,0.2);
  background: rgba(160,50,50,0.05);
}

.admin-empty {
  text-align: center;
  color: var(--text-muted) !important;
  font-style: italic;
  padding: 2rem 0 !important;
}

.admin-form-actions {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(184,176,160,0.05);
}

/* Checkbox */
.admin-checkbox {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-dim);
  cursor: pointer;
  user-select: none;
  padding: 0.7rem 0;
}

.admin-checkbox input { display: none; }

.admin-checkbox-mark {
  width: 16px;
  height: 16px;
  border: 1px solid rgba(184,176,160,0.15);
  background: rgba(8,5,16,0.6);
  position: relative;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.admin-checkbox input:checked + .admin-checkbox-mark {
  border-color: var(--silver);
  background: rgba(184,176,160,0.1);
}

.admin-checkbox input:checked + .admin-checkbox-mark::after {
  content: '';
  position: absolute;
  top: 2px; left: 5px;
  width: 4px; height: 8px;
  border: solid var(--silver-bright);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

/* Featured toggle */
.admin-featured-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--text-muted);
  transition: all 0.3s ease;
  padding: 0.15rem;
  line-height: 1;
}

.admin-featured-toggle:hover { color: var(--silver); }
.admin-featured-toggle.is-featured { color: var(--silver-bright); }

/* ============================================================
   SETTINGS
   ============================================================ */

.settings-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(184,176,160,0.04);
}

.settings-row:last-child { border-bottom: none; }

.settings-info { flex: 1; min-width: 0; padding-right: 2rem; }

.settings-label {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--silver-pale);
  margin-bottom: 0.2rem;
}

.settings-desc {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* Toggle switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 22px;
  flex-shrink: 0;
  cursor: pointer;
}

.toggle-switch input { display: none; }

.toggle-slider {
  position: absolute;
  inset: 0;
  background: rgba(184,176,160,0.06);
  border: 1px solid rgba(184,176,160,0.1);
  transition: all 0.35s cubic-bezier(0.25, 0, 0.2, 1);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  background: var(--silver-dim);
  transition: all 0.35s cubic-bezier(0.25, 0, 0.2, 1);
}

.toggle-switch input:checked + .toggle-slider {
  background: rgba(184,176,160,0.12);
  border-color: rgba(184,176,160,0.2);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(20px);
  background: var(--silver-bright);
  box-shadow: 0 0 8px rgba(184,176,160,0.2);
}

/* ============================================================
   TAGS
   ============================================================ */

.tag {
  display: inline-block;
  font-family: var(--font-logo);
  font-weight: 600;
  font-size: 0.52rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border: 1px solid transparent;
}

.tag-new {
  color: #7ab080;
  background: rgba(90,160,100,0.06);
  border-color: rgba(90,160,100,0.15);
}

.tag-update {
  color: #80a0c0;
  background: rgba(80,140,200,0.06);
  border-color: rgba(80,140,200,0.15);
}

.tag-event {
  color: #c0a070;
  background: rgba(180,140,80,0.06);
  border-color: rgba(180,140,80,0.15);
}

.tag-info {
  color: var(--silver);
  background: rgba(184,176,160,0.04);
  border-color: rgba(184,176,160,0.1);
}

/* ============================================================
   MODAL
   ============================================================ */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(4,2,8,0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s ease;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-panel {
  width: 100%;
  max-width: 420px;
  background:
    linear-gradient(170deg,
      rgba(16,14,30,0.98) 0%,
      rgba(8,5,16,0.99) 100%);
  border: 1px solid rgba(184,176,160,0.08);
  padding: 2rem;
  transform: translateY(12px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.open .modal-panel {
  transform: translateY(0) scale(1);
}

.modal-title {
  font-family: var(--font-logo);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--silver-pale);
  margin-bottom: 0.8rem;
}

.modal-text {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.modal-actions {
  display: flex;
  gap: 0.8rem;
  justify-content: flex-end;
}

/* ============================================================
   QUILL EDITOR — dark theme overrides
   ============================================================ */

.ql-toolbar.ql-snow {
  border-color: rgba(184,176,160,0.08) !important;
  background: rgba(8,5,16,0.4);
}

.ql-container.ql-snow {
  border-color: rgba(184,176,160,0.08) !important;
  background: rgba(8,5,16,0.5);
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text);
  min-height: 140px;
}

.ql-editor.ql-blank::before {
  color: rgba(130,124,114,0.3) !important;
  font-style: italic;
}

.ql-snow .ql-stroke { stroke: var(--silver-dim) !important; }
.ql-snow .ql-fill { fill: var(--silver-dim) !important; }
.ql-snow .ql-picker-label { color: var(--silver-dim) !important; }

.ql-snow .ql-picker-options {
  background: var(--deep) !important;
  border-color: rgba(184,176,160,0.1) !important;
}

.ql-snow .ql-picker-item { color: var(--text-dim) !important; }
.ql-snow .ql-picker-item:hover { color: var(--silver-bright) !important; }

.ql-toolbar button:hover .ql-stroke,
.ql-toolbar button.ql-active .ql-stroke {
  stroke: var(--silver-bright) !important;
}

.ql-toolbar button:hover .ql-fill,
.ql-toolbar button.ql-active .ql-fill {
  fill: var(--silver-bright) !important;
}

.ql-snow .ql-tooltip {
  background: var(--deep) !important;
  border-color: rgba(184,176,160,0.1) !important;
  color: var(--text) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4) !important;
}

.ql-snow .ql-tooltip input[type="text"] {
  background: rgba(8,5,16,0.6) !important;
  border-color: rgba(184,176,160,0.1) !important;
  color: var(--text) !important;
}

/* ============================================================
   RESPONSIVE — auth + admin
   ============================================================ */

@media (max-width: 768px) {
  .auth-panel {
    padding: 2.2rem 1.6rem 1.8rem;
    margin: 0 0.5rem;
  }

  .admin-layout { flex-direction: column; }

  .admin-sidebar {
    width: 100%;
    flex-direction: column;
    padding: 0;
    overflow: visible;
  }

  .admin-sidebar-brand {
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    border-bottom: none;
    margin-bottom: 0;
    white-space: nowrap;
  }

  .admin-sidebar-toggle { display: flex; }

  .admin-sidebar-nav,
  .admin-sidebar-footer {
    display: none;
    border-top: none;
    margin-top: 0;
  }

  .admin-sidebar.open .admin-sidebar-nav,
  .admin-sidebar.open .admin-sidebar-footer {
    display: flex;
  }

  .admin-sidebar-nav {
    flex-direction: column;
    gap: 0;
    padding: 0 0.6rem 0.5rem;
  }

  .admin-sidebar-link {
    border-left: 2px solid transparent;
    border-bottom: none;
    padding: 0.5rem 0.7rem;
    white-space: nowrap;
    font-size: 0.82rem;
  }

  .admin-sidebar-link.active {
    border-left-color: var(--silver-dim);
    border-bottom-color: transparent;
  }

  .admin-sidebar-footer {
    flex-direction: column;
    padding: 0 0.6rem 0.5rem;
    border-left: none;
    margin-left: 0;
  }

  .admin-content {
    padding: 1.5rem 1.2rem;
  }

  .admin-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .form-row { flex-direction: column; gap: 0; }

  .settings-row { flex-direction: column; align-items: flex-start; gap: 0.8rem; }
  .settings-info { padding-right: 0; }

  .admin-panel {
    padding: 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .admin-table { min-width: 500px; }

  .admin-form-actions {
    flex-direction: column;
  }

  .admin-form-actions .btn { width: 100%; }

  /* Quill editor mobile */
  .ql-toolbar.ql-snow { padding: 4px; }
  .ql-toolbar button { width: 24px; height: 24px; }

  .modal-panel { padding: 1.5rem; }
}

@media (max-width: 480px) {
  .auth-panel { padding: 1.8rem 1.2rem 1.5rem; }
  .auth-title { font-size: 1rem; letter-spacing: 0.12em; }
  .admin-table { font-size: 0.78rem; }
  .admin-table th { font-size: 0.52rem; }
  .admin-header { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
  .admin-title { font-size: 0.85rem; }
}

/* Admin table scroll wrapper for mobile */
.admin-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */

/* ── Toast Notifications ── */
.toast-container {
  position: fixed;
  top: 1.2rem;
  right: 1.2rem;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1rem;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  background: var(--panel);
  border: 1px solid rgba(184,176,160,0.15);
  color: var(--text);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1), opacity 0.3s ease;
  max-width: 340px;
}

.toast-visible {
  transform: translateX(0);
  opacity: 1;
}

.toast-exit {
  transform: translateX(120%);
  opacity: 0;
}

.toast-icon {
  flex-shrink: 0;
  width: 1.3rem;
  height: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
}

.toast-success .toast-icon {
  background: rgba(60,160,90,0.15);
  color: #60a070;
}

.toast-error .toast-icon {
  background: rgba(160,60,60,0.15);
  color: #c06060;
}

.toast-success {
  border-color: rgba(60,160,90,0.2);
}

.toast-error {
  border-color: rgba(160,60,60,0.2);
}

/* ── Toggle Loading State ── */
.toggle-loading {
  opacity: 0.5;
  pointer-events: none;
  position: relative;
}

.toggle-loading::after {
  content: '';
  position: absolute;
  right: -1.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0.9rem;
  height: 0.9rem;
  border: 2px solid rgba(184,176,160,0.2);
  border-top-color: var(--silver);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: translateY(-50%) rotate(360deg); }
}

/* ── Row Animations ── */
.row-flash {
  animation: rowFlash 0.8s ease;
}

@keyframes rowFlash {
  0% { background: rgba(184,176,160,0.12); }
  100% { background: transparent; }
}

.row-removing {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .bg-scroll::before,
  .bg-scroll::after,
  .bg-strip-3 {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
