/* ============================================
   KINISROCKS85 — Celestial Memorial Theme
   ============================================ */

:root {
  --sky-deep: #0a0a1a;
  --sky-mid: #1a1040;
  --sky-purple: #2a1545;
  --text-primary: #e8e4df;
  --text-muted: rgba(232, 228, 223, 0.8);
  --text-faint: rgba(200, 190, 220, 0.6);
  --text-ghost: rgba(200, 190, 220, 0.35);
  --accent-blue: #8ab4f8;
  --accent-blue-dim: rgba(138, 180, 248, 0.6);
  --accent-indigo: #6366f1;
  --accent-violet: #8b5cf6;
  --accent-pink: #f472b6;
  --accent-rose: rgba(220, 80, 120, 0.5);
  --border-subtle: rgba(120, 100, 200, 0.15);
  --border-faint: rgba(255, 255, 255, 0.06);
  --glass: rgba(255, 255, 255, 0.03);
  --glass-hover: rgba(255, 255, 255, 0.08);
  --radius-sm: 10px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  /* Light theme tokens */
  --light-bg: #fafaf9;
  --light-text: #1a1a2e;
  --light-text-muted: #4a4a5e;
  --light-border: rgba(26, 26, 46, 0.1);
  --light-card-bg: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font-body);
  background: var(--sky-deep);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  font-size: 18px;
}

body.rock-page {
  font-size: 18px;
  -webkit-text-size-adjust: 100%;
}

/* ============================================
   HERO
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem;
  background: linear-gradient(180deg, #0a1628 0%, var(--sky-mid) 40%, var(--sky-purple) 60%, var(--sky-mid) 80%, var(--sky-deep) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(70, 130, 220, 0.15) 0%, transparent 60%),
              radial-gradient(ellipse at 50% 70%, rgba(180, 60, 100, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.stars {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  overflow: hidden;
  pointer-events: none;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: white;
  border-radius: 50%;
  animation: twinkle var(--duration) ease-in-out infinite;
  opacity: 0;
}

.star.diamond {
  width: 4px;
  height: 4px;
  background: #fff;
  box-shadow: 0 0 6px 2px rgba(200, 220, 255, 0.6), 0 0 12px 4px rgba(150, 180, 255, 0.3);
}

@keyframes twinkle {
  0%, 100% { opacity: 0.1; }
  50% { opacity: var(--max-opacity); }
}

.stairway {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 100%;
  background: linear-gradient(0deg,
    rgba(70, 130, 220, 0.03) 0%,
    rgba(120, 100, 200, 0.02) 30%,
    rgba(180, 80, 150, 0.01) 60%,
    transparent 80%);
  clip-path: polygon(35% 100%, 65% 100%, 55% 0%, 45% 0%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 440px;
}

.rock-emoji {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: inline-block;
  animation: gentle-rock 3s ease-in-out infinite;
}

@keyframes gentle-rock {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(3deg); }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #6aadff 0%, #c084fc 50%, var(--accent-pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-faint);
  margin-bottom: 0.4rem;
}

.hero .tagline-sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--text-ghost);
  margin-bottom: 1.5rem;
}

.hero .intro {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.hero .intro strong {
  color: var(--accent-blue);
}

.hero .social-follow {
  font-size: 0.85rem;
  color: var(--text-faint);
  margin-bottom: 1.5rem;
}

.hero .social-follow strong {
  color: var(--accent-blue);
}

.hero .photo-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  border: 2px solid var(--border-subtle);
  background: var(--glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-ghost);
  font-size: 0.65rem;
  text-align: center;
  line-height: 1.3;
  padding: 0.5rem;
  overflow: hidden;
}

.hero .photo-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero .photo-circle .kini-photo {
  border-radius: 50%;
}

.rock-identity {
  margin-bottom: 1.2rem;
  text-align: center;
  background: var(--glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.8rem 1.2rem;
  display: inline-block;
}

.rock-label {
  display: block;
  font-size: 0.65rem;
  color: var(--text-faint);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 0.5rem;
}

.rock-label:first-child {
  margin-top: 0;
}

.rock-name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--accent-blue);
  margin-bottom: 0.2rem;
}

.rock-date {
  display: block;
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: 0.2rem;
}

.rock-distance {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent-violet);
}

.rock-distance-km {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-faint);
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-ghost);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: bob 2s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

.scroll-hint svg {
  width: 20px;
  height: 20px;
  stroke: var(--text-ghost);
  fill: none;
  stroke-width: 2;
}

/* ============================================
   SECTIONS
   ============================================ */

.section {
  padding: 3.5rem 1.5rem;
  max-width: 520px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-blue-dim);
  margin-bottom: 0.75rem;
}

.section h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: #f0ecf4;
}

.section p {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* Wings quote */
.wings-quote {
  text-align: center;
  padding: 2.5rem 1.5rem;
  max-width: 520px;
  margin: 0 auto;
}

.wings-quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-faint);
}

/* Story card */
.story-card {
  background: linear-gradient(135deg, rgba(70, 130, 220, 0.08), rgba(180, 80, 150, 0.08));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin: 1.5rem 0;
}

.story-card .quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.6;
  color: rgba(200, 190, 220, 0.9);
  margin-bottom: 0.75rem;
}

.story-card .attribution {
  font-size: 0.8rem;
  color: rgba(180, 160, 200, 0.6);
}

/* Facts grid */
.facts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}

.fact-card {
  background: var(--glass);
  border: 1px solid var(--border-faint);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
}

.fact-card .fact-icon { font-size: 1.8rem; margin-bottom: 0.5rem; }
.fact-card .fact-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(138, 180, 248, 0.5);
  margin-bottom: 0.3rem;
}
.fact-card .fact-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Dividers */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(120, 100, 200, 0.3), transparent);
  max-width: 520px;
  margin: 0 auto;
}

.diamond-divider {
  text-align: center;
  padding: 1rem 0;
  max-width: 520px;
  margin: 0 auto;
  position: relative;
}

.diamond-divider::before,
.diamond-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  height: 1px;
  width: calc(50% - 1.5rem);
  background: linear-gradient(90deg, transparent, rgba(120, 100, 200, 0.3));
}

.diamond-divider::before { left: 0; }
.diamond-divider::after { right: 0; background: linear-gradient(270deg, transparent, rgba(120, 100, 200, 0.3)); }
.diamond-divider span { font-size: 0.7rem; color: var(--text-ghost); }

/* Awareness */
.awareness-box {
  background: linear-gradient(135deg, rgba(220, 50, 80, 0.08), rgba(220, 100, 50, 0.05));
  border: 1px solid rgba(220, 80, 80, 0.15);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin: 1.5rem 0;
}

.awareness-box h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: #f0a0a0;
  margin-bottom: 0.75rem;
}

.awareness-box p {
  font-size: 0.85rem;
  line-height: 1.7;
  color: rgba(232, 228, 223, 0.75);
  margin-bottom: 0;
}

/* CTA buttons */
.cta-group {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 2rem 0;
}

.cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
}

.cta-btn.primary {
  background: linear-gradient(135deg, var(--accent-indigo), var(--accent-violet));
  color: white;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}
.cta-btn.primary:hover {
  box-shadow: 0 6px 30px rgba(99, 102, 241, 0.5);
  transform: translateY(-1px);
}

.cta-btn.secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}
.cta-btn.secondary:hover {
  background: var(--glass-hover);
  transform: translateY(-1px);
}

.cta-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Social links */
.social-row {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 2rem 0;
}

.social-link {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  transform: scale(1.1);
}

/* ============================================
   FIND LOG SECTION (public rock page)
   ============================================ */

.log-section {
  background: linear-gradient(135deg, rgba(70, 130, 220, 0.06), rgba(70, 200, 150, 0.04));
  border: 1px solid rgba(70, 160, 200, 0.12);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin: 1.5rem 0;
  text-align: center;
}

.log-section h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--accent-blue);
  margin-bottom: 0.5rem;
}

.log-section p {
  font-size: 0.85rem;
  color: rgba(232, 228, 223, 0.65);
  margin-bottom: 1.25rem;
}

.find-input {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.3);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-family: var(--font-body);
  margin-bottom: 0.75rem;
  outline: none;
  transition: border-color 0.2s;
}

.find-input:focus {
  border-color: var(--accent-blue-dim);
}

.find-input::placeholder {
  color: rgba(232, 228, 223, 0.35);
}

textarea.find-input {
  resize: vertical;
  min-height: 70px;
}

.find-input-file {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.2);
  color: var(--text-faint);
  font-size: 0.8rem;
  font-family: var(--font-body);
  margin-bottom: 0.75rem;
  cursor: pointer;
}

.find-btn {
  padding: 0.75rem 2rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #3b82f6, var(--accent-indigo));
  color: white;
  font-size: 0.85rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all 0.3s ease;
}

.find-btn:hover {
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
  transform: translateY(-1px);
}

.geo-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-faint);
  font-size: 0.75rem;
  font-family: var(--font-body);
  cursor: pointer;
  margin-bottom: 0.75rem;
  transition: all 0.2s;
}

.geo-btn:hover {
  background: var(--glass-hover);
  color: var(--accent-blue);
}

.geo-btn.located {
  border-color: rgba(70, 200, 150, 0.3);
  color: #6ee7b7;
}

/* Success flash */
.flash-success {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(16, 185, 129, 0.1));
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  text-align: center;
  font-size: 0.88rem;
  color: #6ee7b7;
  animation: flash-in 0.4s ease;
}

@keyframes flash-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.toast-cooldown {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  background: rgba(30, 20, 50, 0.95);
  border: 1px solid rgba(240, 173, 78, 0.4);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: #f0c674;
  max-width: 90%;
  backdrop-filter: blur(12px);
  animation: toast-in 0.4s ease;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.toast-cooldown.fade-out {
  opacity: 0;
  transform: translateX(-50%) translateY(-20px);
}

@keyframes toast-in {
  from { opacity: 0; transform: translateX(-50%) translateY(-20px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ============================================
   JOURNEY / FINDS LIST
   ============================================ */

.journey-section {
  margin: 1.5rem 0;
}

.journey-section h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--accent-blue);
  margin-bottom: 1rem;
  text-align: center;
}

.journey-empty {
  text-align: center;
  padding: 2rem;
  color: var(--text-faint);
  font-size: 0.85rem;
  font-style: italic;
}

.find-entry {
  background: var(--glass);
  border: 1px solid var(--border-faint);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 0.75rem;
  position: relative;
  animation: find-in 0.3s ease;
}

@keyframes find-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.find-entry .find-location {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.find-entry .find-meta {
  font-size: 0.75rem;
  color: var(--text-faint);
}

.find-entry .find-message {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  font-style: italic;
  line-height: 1.5;
}

.find-entry .find-photo {
  margin-top: 0.75rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.find-entry .find-photo img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.find-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(70, 130, 220, 0.12);
  border: 1px solid rgba(70, 130, 220, 0.2);
  border-radius: 20px;
  padding: 0.3rem 0.8rem;
  font-size: 0.75rem;
  color: var(--accent-blue);
  margin-bottom: 1rem;
}

/* Map placeholder */
.map-placeholder {
  width: 100%;
  height: 180px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(70, 130, 220, 0.1), rgba(70, 160, 150, 0.08));
  border: 1px dashed rgba(138, 180, 248, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 1.5rem 0;
  color: rgba(138, 180, 248, 0.5);
  font-size: 0.8rem;
  gap: 0.4rem;
}

.map-placeholder .map-icon { font-size: 2rem; opacity: 0.5; }

/* ============================================
   MISC CARDS
   ============================================ */

.funny-aside {
  background: rgba(255, 255, 255, 0.02);
  border-left: 3px solid rgba(180, 160, 200, 0.3);
  padding: 1.25rem 1.25rem 1.25rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.funny-aside .aside-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-ghost);
  margin-bottom: 0.5rem;
}

.funny-aside p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(232, 228, 223, 0.75);
  margin-bottom: 0;
}

.cocktail-card {
  background: linear-gradient(180deg, rgba(70, 130, 220, 0.1) 0%, rgba(180, 60, 100, 0.1) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin: 1.5rem 0;
  text-align: center;
}

.cocktail-card .glass { font-size: 2.5rem; margin-bottom: 0.75rem; }

.cocktail-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #6aadff, var(--accent-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cocktail-card p {
  font-size: 0.85rem;
  color: rgba(232, 228, 223, 0.65);
  line-height: 1.6;
  margin-bottom: 0;
}

.stairway-card {
  background: linear-gradient(180deg, rgba(70, 130, 220, 0.08) 0%, rgba(100, 80, 180, 0.06) 100%);
  border: 1px solid rgba(70, 130, 220, 0.12);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin: 1.5rem 0;
  text-align: center;
}

.stairway-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--accent-blue);
  margin-bottom: 0.75rem;
}

.stairway-card p {
  font-size: 0.85rem;
  color: rgba(232, 228, 223, 0.65);
  line-height: 1.7;
  margin-bottom: 0;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  text-align: center;
  padding: 3rem 1.5rem 2rem;
  max-width: 520px;
  margin: 0 auto;
}

.footer .memorial {
  font-family: var(--font-display);
  font-size: 1rem;
  color: rgba(220, 215, 230, 0.85);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.footer .memorial .name {
  font-size: 1.2rem;
  color: #e0dae8;
}

.footer .memorial .dates {
  font-size: 0.85rem;
  color: rgba(220, 215, 230, 0.7);
}

.footer .heart { color: #e8708a; }

.footer .final-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.9rem;
  color: rgba(220, 215, 230, 0.75);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.footer .glitter {
  font-size: 0.75rem;
  color: rgba(220, 215, 230, 0.55);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* ============================================
   404 PAGE
   ============================================ */

.not-found-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  background: linear-gradient(180deg, #0a1628 0%, var(--sky-mid) 50%, var(--sky-deep) 100%);
}

.not-found-page .rock-lost { font-size: 4rem; margin-bottom: 1.5rem; opacity: 0.6; }

.not-found-page h1 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--text-faint);
  margin-bottom: 0.75rem;
}

.not-found-page p {
  font-size: 0.9rem;
  color: var(--text-ghost);
  line-height: 1.6;
  max-width: 320px;
}

.not-found-page a {
  color: var(--accent-blue);
  text-decoration: none;
}

/* ============================================
   ADMIN — CELESTIAL OBSERVATORY THEME
   ============================================ */

.admin-shell {
  min-height: 100vh;
  background: var(--sky-deep);
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(70, 130, 220, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(120, 60, 180, 0.04) 0%, transparent 40%);
}

/* Admin nav */
.admin-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(120, 100, 200, 0.1);
  background: rgba(10, 10, 26, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.admin-nav .nav-brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  background: linear-gradient(135deg, #6aadff, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}

.admin-nav .nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.admin-nav .nav-link {
  font-size: 0.8rem;
  color: var(--text-faint);
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.admin-nav .nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.admin-nav .nav-link.active {
  color: var(--accent-blue);
  background: rgba(138, 180, 248, 0.08);
}

.admin-nav .logout-btn {
  font-size: 0.75rem;
  color: var(--text-ghost);
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--font-body);
  transition: all 0.2s;
}

.admin-nav .logout-btn:hover {
  color: var(--accent-pink);
  border-color: rgba(244, 114, 182, 0.2);
}

/* Admin content area */
.admin-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.admin-content h1 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: #f0ecf4;
  margin-bottom: 0.5rem;
}

.admin-content .subtitle {
  font-size: 0.85rem;
  color: var(--text-faint);
  margin-bottom: 2rem;
}

/* Stats row */
.stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--glass);
  border: 1px solid var(--border-faint);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
}

.stat-card .stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, #6aadff, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-card .stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  margin-top: 0.3rem;
}

/* Rock table */
.rock-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 0.5rem;
}

.rock-table th {
  text-align: left;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  padding: 0 1rem 0.5rem;
  border-bottom: 1px solid var(--border-faint);
}

.rock-table td {
  padding: 1rem;
  background: var(--glass);
  font-size: 0.85rem;
}

.rock-table tr td:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.rock-table tr td:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

.rock-table .rock-name {
  font-weight: 500;
  color: var(--text-primary);
}

.rock-table .rock-id {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.75rem;
  color: var(--text-faint);
  background: rgba(138, 180, 248, 0.08);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.rock-table .rock-finds {
  color: var(--accent-blue);
  font-weight: 500;
}

.rock-table .rock-date {
  color: var(--text-faint);
  font-size: 0.8rem;
}

.rock-table a {
  color: var(--accent-blue);
  text-decoration: none;
  font-size: 0.8rem;
}

.rock-table a:hover { text-decoration: underline; }

/* Admin forms */
.admin-error {
  background: rgba(220, 60, 80, 0.12);
  border: 1px solid rgba(220, 60, 80, 0.3);
  color: #e8708a;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: 0.9rem;
  max-width: 480px;
}

.admin-form {
  max-width: 480px;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.form-group .hint {
  font-size: 0.72rem;
  color: var(--text-ghost);
  margin-top: 0.3rem;
}

.admin-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.3);
  color: var(--text-primary);
  font-size: 0.88rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.admin-input:focus {
  border-color: rgba(138, 180, 248, 0.4);
  box-shadow: 0 0 0 3px rgba(138, 180, 248, 0.08);
}

.admin-input::placeholder { color: rgba(232, 228, 223, 0.25); }

textarea.admin-input {
  resize: vertical;
  min-height: 80px;
}

.admin-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  font-family: var(--font-body);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.admin-btn.primary {
  background: linear-gradient(135deg, var(--accent-indigo), var(--accent-violet));
  color: white;
  box-shadow: 0 2px 12px rgba(99, 102, 241, 0.25);
}

.admin-btn.primary:hover {
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
  transform: translateY(-1px);
}

.admin-btn.ghost {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
}

.admin-btn.ghost:hover {
  background: var(--glass-hover);
}

.admin-btn.danger {
  background: rgba(220, 50, 80, 0.1);
  border: 1px solid rgba(220, 80, 80, 0.2);
  color: #f0a0a0;
}

.admin-btn.danger:hover {
  background: rgba(220, 50, 80, 0.2);
}

/* Rock detail admin */
.rock-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.rock-detail-header .rock-info h1 { margin-bottom: 0.25rem; }

.rock-detail-header .rock-info .rock-id-display {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.8rem;
  color: var(--text-faint);
}

.qr-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
  flex-shrink: 0;
}

.qr-card img {
  width: 150px;
  height: 150px;
  display: block;
}

.qr-url {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.75rem;
  color: var(--text-faint);
  background: rgba(0, 0, 0, 0.3);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  margin-top: 0.75rem;
  word-break: break-all;
}

.action-row {
  display: flex;
  gap: 0.75rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

/* Admin login */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sky-deep);
  background-image:
    radial-gradient(ellipse at 50% 30%, rgba(70, 130, 220, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(120, 60, 180, 0.05) 0%, transparent 40%);
  padding: 2rem;
}

.login-card {
  width: 100%;
  max-width: 360px;
  text-align: center;
}

.login-card .brand {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  background: linear-gradient(135deg, #6aadff, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.login-card .brand-sub {
  font-size: 0.8rem;
  color: var(--text-faint);
  margin-bottom: 2rem;
}

.login-card .login-form {
  background: var(--glass);
  border: 1px solid var(--border-faint);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.login-error {
  background: rgba(220, 50, 80, 0.1);
  border: 1px solid rgba(220, 80, 80, 0.2);
  border-radius: var(--radius-sm);
  padding: 0.6rem 1rem;
  font-size: 0.8rem;
  color: #f0a0a0;
  margin-bottom: 1rem;
}

/* Admin empty state */
.empty-state {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--text-faint);
}

.empty-state .empty-icon { font-size: 3rem; margin-bottom: 1rem; opacity: 0.4; }
.empty-state p { font-size: 0.9rem; margin-bottom: 1.5rem; }

/* Admin help page */
.admin-help .help-card {
  background: var(--glass);
  border: 1px solid var(--border-faint);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.admin-help .help-card.highlight {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.06), rgba(139, 92, 246, 0.04));
  border-color: rgba(99, 102, 241, 0.15);
}

.admin-help .help-card h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: #f0ecf4;
  margin-bottom: 0.75rem;
}

.admin-help .help-card p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

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

.admin-help .help-card a {
  color: var(--accent-blue);
  text-decoration: none;
}

.admin-help .help-card a:hover { text-decoration: underline; }

.admin-help .help-steps {
  list-style: none;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0;
}

.admin-help .help-steps li {
  counter-increment: step;
  display: flex;
  gap: 0.75rem;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.admin-help .help-steps li::before {
  content: counter(step);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent-blue);
  font-size: 0.72rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.admin-help .help-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.admin-help .help-list li {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-muted);
  padding-left: 1.25rem;
  position: relative;
}

.admin-help .help-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent-blue);
}

.admin-help .help-tip {
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(99, 102, 241, 0.06);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.admin-help .help-tip strong {
  color: var(--accent-blue);
}

/* ============================================
   ADMIN: CMS EDITOR
   ============================================ */

.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-faint);
  border-bottom: none;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.editor-toolbar button {
  padding: 0.4rem 0.6rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.15s;
}

.editor-toolbar button:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
}

.content-editor {
  width: 100%;
  min-height: 400px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-faint);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  color: var(--text-primary);
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.85rem;
  padding: 1rem;
  resize: vertical;
  line-height: 1.6;
}

.content-preview {
  display: none;
  min-height: 400px;
  padding: 1.5rem;
  background: #fafaf9;
  border: 1px solid var(--border-faint);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  color: #2a2a2a;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.7;
}

.content-preview h2 { font-family: var(--font-display); margin: 1.5rem 0 0.75rem; color: #1a1a2e; }
.content-preview h3 { font-family: var(--font-display); margin: 1.25rem 0 0.5rem; color: #1a1a2e; }
.content-preview p { margin-bottom: 1rem; }
.content-preview img { max-width: 100%; border-radius: 8px; margin: 1rem 0; }
.content-preview blockquote {
  border-left: 3px solid var(--accent-indigo);
  padding-left: 1rem;
  margin: 1rem 0;
  font-style: italic;
  color: #666;
}

.editor-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  align-items: center;
}

.admin-success {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #6ee7b7;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

/* ============================================
   ADMIN: GALLERY MANAGER
   ============================================ */

.gallery-upload-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: end;
  margin-bottom: 2rem;
  padding: 1.25rem;
  background: var(--glass);
  border: 1px solid var(--border-faint);
  border-radius: var(--radius-md);
}

.gallery-upload-form .form-group {
  margin-bottom: 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.gallery-card {
  background: var(--glass);
  border: 1px solid var(--border-faint);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.gallery-card img,
.gallery-card video {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.gallery-card-info {
  padding: 0.75rem;
}

.gallery-card-info input {
  width: 100%;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-faint);
  border-radius: 4px;
  color: var(--text-primary);
  padding: 0.3rem 0.5rem;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

.gallery-card-actions {
  display: flex;
  gap: 0.5rem;
  padding: 0 0.75rem 0.75rem;
}

.gallery-card-actions button,
.gallery-card-actions .btn-sm {
  padding: 0.3rem 0.5rem;
  font-size: 0.7rem;
  border-radius: 4px;
  border: 1px solid var(--border-faint);
  background: var(--glass);
  color: var(--text-muted);
  cursor: pointer;
}

.gallery-card-actions .btn-danger {
  border-color: rgba(220, 60, 80, 0.3);
  color: #e8708a;
}

.page-badge {
  display: inline-block;
  padding: 0.15rem 0.4rem;
  font-size: 0.65rem;
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent-indigo);
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================
   ADMIN: MEMORIES MANAGER
   ============================================ */

.memory-admin-list {
  display: grid;
  gap: 1rem;
}

.memory-admin-card {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: var(--glass);
  border: 1px solid var(--border-faint);
  border-radius: var(--radius-md);
  align-items: flex-start;
}

.memory-admin-card img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.memory-admin-info {
  flex: 1;
  min-width: 0;
}

.memory-admin-info strong {
  color: var(--text-primary);
}

.memory-admin-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.memory-admin-info .date {
  font-size: 0.75rem;
  color: var(--text-faint);
}

.memory-admin-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Admin finds list */
.admin-finds-list {
  margin-top: 2rem;
}

.admin-finds-list h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: #f0ecf4;
  margin-bottom: 1rem;
}

/* ============================================
   MOBILE-FIRST: HERO CTA
   ============================================ */

.hero-compact {
  min-height: 100svh;
  padding-bottom: 4rem;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--accent-indigo), var(--accent-violet));
  color: white;
  font-size: 1.05rem;
  font-weight: 600;
  font-family: var(--font-body);
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.4);
  margin: 1.5rem 0;
  transition: all 0.3s ease;
  animation: pulse-glow 2s ease-in-out infinite;
}

.hero-cta:active {
  transform: scale(0.97);
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 6px 24px rgba(99, 102, 241, 0.4); }
  50% { box-shadow: 0 6px 32px rgba(99, 102, 241, 0.6); }
}

/* ============================================
   MOBILE-FIRST: MISSION STRIP
   ============================================ */

.mission-strip {
  background: var(--light-bg);
  color: var(--light-text);
  text-align: center;
  padding: 1.5rem 1.5rem;
}

.mission-strip p {
  font-size: 1rem;
  line-height: 1.6;
  max-width: 400px;
  margin: 0 auto;
  color: var(--light-text-muted);
}

.mission-strip strong {
  color: var(--accent-indigo);
}

/* ============================================
   MOBILE-FIRST: JOURNEY BAR
   ============================================ */

.journey-bar {
  background: var(--light-card-bg);
  border-bottom: 1px solid var(--light-border);
  padding: 1.25rem 1.5rem;
}

.journey-bar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.journey-bar-header h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--light-text);
  margin: 0;
}

.journey-badge {
  background: var(--accent-indigo);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
}

.journey-timeline {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.timeline-dot {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.dot-marker {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-indigo), var(--accent-violet));
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dot-info {
  display: flex;
  flex-direction: column;
}

.dot-info strong {
  font-size: 0.85rem;
  color: var(--light-text);
}

.dot-info span {
  font-size: 0.72rem;
  color: var(--light-text-muted);
}

.dot-message {
  font-size: 0.8rem;
  color: var(--light-text);
  font-style: italic;
  margin-top: 0.2rem;
  opacity: 0.85;
}

.dot-photo {
  margin-top: 0.4rem;
}

.dot-photo img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid rgba(99, 102, 241, 0.2);
  cursor: pointer;
  transition: transform 0.2s;
}

.dot-photo img:hover {
  transform: scale(1.05);
}

/* Site link bar on rock QR page */
.rock-site-bar {
  background: linear-gradient(135deg, #1a1040, #2d1b69);
  text-align: center;
  padding: 0.65rem 1rem;
  position: relative;
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.rock-site-link {
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.rock-site-link:hover {
  color: #c4b5fd;
}

.rock-site-link__gem {
  font-size: 0.85rem;
}

/* Rock found hero */
.rock-photo-hero {
  margin-bottom: 1rem;
  text-align: center;
}

.rock-photo-hero img {
  max-width: 180px;
  border-radius: 12px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.rock-found-title {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.rock-found-name {
  color: #60a5fa;
}

.hero-story-nudge {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: color 0.2s;
}

.hero-story-nudge:hover {
  color: rgba(255, 255, 255, 0.7);
}

.rock-found-intro {
  font-size: 0.95rem;
  max-width: 320px;
  margin: 0 auto 1.5rem;
  opacity: 0.85;
  line-height: 1.5;
}

/* Journey stats row */
.journey-stats-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.journey-badge--distance {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
}

/* Origin marker */
.timeline-origin .origin-marker {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #92400e;
  font-size: 0.8rem;
}

.timeline-next .dot-marker--empty {
  background: rgba(99, 102, 241, 0.2);
  color: var(--accent-indigo);
  border: 2px dashed var(--accent-indigo);
  font-size: 0.7rem;
  font-weight: 700;
}

/* ========== DRAWER ========== */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 900;
}

.drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-height: 85dvh;
  background: var(--sky-mid, #1a1040);
  border-radius: 16px 16px 0 0;
  transform: translateY(100%);
  transition: transform 0.3s ease-out;
  z-index: 950;
  display: flex;
  flex-direction: column;
}

.drawer.open {
  transform: translateY(0);
}

.drawer-handle {
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.3);
  margin: 12px auto 0;
  flex-shrink: 0;
  cursor: grab;
}

.drawer-content {
  padding: 1.25rem 1.5rem 2rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  min-height: 0;
}

.drawer-title {
  font-size: 1.3rem;
  color: white;
  margin-bottom: 0.25rem;
}

.drawer-subtitle {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 1.25rem;
}

/* ========== SUCCESS CARD ========== */
.success-card {
  text-align: center;
  padding: 1rem 0;
  color: white;
}

.success-card__icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.success-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: white;
}

.success-card__stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.25rem;
}

.success-card__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.success-card__value {
  font-size: 2rem;
  font-weight: 700;
  color: #60a5fa;
  font-variant-numeric: lining-nums;
  font-feature-settings: 'lnum';
}

.success-card__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.7;
}

.success-card p {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 1.25rem;
  max-width: none;
}

.success-card__share {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  border: none;
  border-radius: 24px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.success-card__links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.success-card__links a {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.8rem;
  text-decoration: none;
  transition: color 0.2s;
}

.success-card__links a:hover {
  color: #60a5fa;
}

.success-card__done {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0.5rem;
}

.success-card__done:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* Drawer responsive */
@media (min-width: 768px) {
  .drawer {
    max-width: 480px;
    left: 50%;
    right: auto;
    transform: translateX(-50%) translateY(100%);
  }

  .drawer.open {
    transform: translateX(-50%) translateY(0);
  }
}

.journey-empty-light {
  font-size: 0.85rem;
  color: var(--light-text-muted);
  font-style: italic;
  text-align: center;
  padding: 0.5rem 0;
}

/* Journey map */
.journey-distance {
  text-align: center;
  padding: 0.8rem;
  margin-bottom: 0.75rem;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-md);
}

.distance-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-indigo);
  margin-right: 0.3rem;
}

.distance-unit {
  font-size: 0.95rem;
  color: var(--light-text);
  font-weight: 500;
}

.distance-km {
  display: block;
  font-size: 0.75rem;
  color: var(--light-muted);
  margin-top: 0.15rem;
}

.journey-map {
  width: 100%;
  height: 220px;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  overflow: hidden;
  border: 1px solid var(--light-border);
}

.journey-map .leaflet-popup-content-wrapper {
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.journey-map .leaflet-popup-tip {
  box-shadow: none;
}

/* ============================================
   MOBILE-FIRST: STORY SWIPER
   ============================================ */

.story-swiper-section {
  background: var(--light-bg);
  padding: 1.5rem 0 1rem;
}

.story-swiper-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--light-text-muted);
  text-align: center;
  margin-bottom: 1rem;
}

.story-swiper {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.story-swiper::-webkit-scrollbar { display: none; }

.story-swiper-track {
  display: flex;
  gap: 1rem;
  padding: 0 1.5rem;
}

.story-slide {
  flex: 0 0 85%;
  scroll-snap-align: center;
  background: var(--light-card-bg);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--light-border);
}

.story-slide .slide-number {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--light-text-muted);
  margin-bottom: 0.75rem;
}

.story-slide h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--light-text);
  margin-bottom: 0.75rem;
}

.story-slide p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--light-text-muted);
  margin-bottom: 0.75rem;
}

.story-slide p:last-child { margin-bottom: 0; }

.slide-quote {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.06), rgba(139, 92, 246, 0.06));
  border-left: 3px solid var(--accent-indigo);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1rem 0;
}

.slide-quote em {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--light-text);
  display: block;
}

.slide-quote span {
  font-size: 0.75rem;
  color: var(--light-text-muted);
  margin-top: 0.3rem;
  display: block;
}

.slide-quote.big em {
  font-size: 1.4rem;
  text-align: center;
  padding: 0.5rem 0;
}

.slide-facts {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 1rem 0;
}

.slide-fact {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--light-text);
  padding: 0.6rem 0.75rem;
  background: var(--light-bg);
  border-radius: var(--radius-sm);
}

.slide-fact span {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.slide-cocktail-icon {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 0.75rem;
}

.slide-subtle {
  font-size: 0.82rem !important;
  color: var(--light-text-muted) !important;
  font-style: italic;
}

.slide-recipe-btn {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.6rem 1.25rem;
  border-radius: 50px;
  background: linear-gradient(135deg, #8b1a2b, #d4365c);
  color: white;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

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

.swiper-dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  padding: 1rem 0 0.5rem;
}

.swiper-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.2);
  transition: all 0.3s;
}

.swiper-dot.active {
  background: var(--accent-indigo);
  width: 18px;
  border-radius: 3px;
}

/* ============================================
   MOBILE-FIRST: LIGHT THEME SECTIONS
   ============================================ */

.section-light {
  background: var(--light-bg);
  padding: 2rem 1.5rem;
  max-width: 100%;
}

.section-light h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--light-text);
  margin-bottom: 1rem;
}

.section-light p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--light-text-muted);
  margin-bottom: 0.75rem;
}

.section-label-light {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-indigo);
  margin-bottom: 0.5rem;
  display: block;
}

.funny-aside-light {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.04), rgba(139, 92, 246, 0.04));
  border-left: 3px solid var(--accent-indigo);
  padding: 1.25rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.aside-label-light {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--light-text-muted);
  margin-bottom: 0.5rem;
}

.funny-aside-light p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--light-text-muted);
  margin: 0;
}

/* ============================================
   MOBILE-FIRST: AWARENESS SECTION
   ============================================ */

.awareness-section {
  background: #fff5f5;
  padding: 2rem 1.5rem;
}

.awareness-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.awareness-icon { font-size: 1.5rem; }

.awareness-header h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: #b91c1c;
}

.awareness-lead {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #4a4a5e;
  margin-bottom: 1.25rem;
}

.sign-boxes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.sign-box {
  background: white;
  border: 2px solid #fecaca;
  border-radius: var(--radius-md);
  padding: 1rem;
}

.sign-box strong {
  display: block;
  font-size: 0.85rem;
  color: #991b1b;
  margin-bottom: 0.2rem;
}

.sign-box span {
  font-size: 0.72rem;
  color: #6b7280;
}

.awareness-action {
  background: #b91c1c;
  color: white;
  padding: 1rem;
  border-radius: var(--radius-md);
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
}

/* ============================================
   MOBILE-FIRST: LOG FIND SECTION
   ============================================ */

.log-find-section {
  background: var(--sky-deep);
  padding: 2.5rem 1.5rem;
}

.log-find-inner {
  max-width: 520px;
  margin: 0 auto;
}

.log-find-inner h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: #f0ecf4;
  margin-bottom: 0.5rem;
}

.log-find-inner > p {
  font-size: 0.88rem;
  color: var(--text-faint);
  margin-bottom: 1.5rem;
}

.log-form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.find-input-light {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.2s;
}

.find-input-light:focus {
  border-color: var(--accent-blue-dim);
  background: rgba(255, 255, 255, 0.08);
}

.find-input-light::placeholder {
  color: rgba(232, 228, 223, 0.35);
}

textarea.find-input-light {
  resize: vertical;
  min-height: 60px;
}

.form-row {
  display: flex;
  gap: 0.5rem;
}

.form-row .find-input-light { flex: 1; }

.location-detect {
  margin-bottom: 0.75rem;
}

.location-autocomplete {
  position: relative;
}

.location-results {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #1a1040;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  z-index: 50;
  max-height: 220px;
  overflow-y: auto;
}

.location-results.visible {
  display: block;
}

.location-result-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 0.8rem;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.15s;
}

.location-result-item:last-child {
  border-bottom: none;
}

.location-result-item:hover,
.location-result-item:active {
  background: rgba(255, 255, 255, 0.08);
}

.result-pin {
  font-size: 0.9rem;
  flex-shrink: 0;
}

.result-name {
  font-size: 0.85rem;
  color: var(--text-primary);
  line-height: 1.3;
}

.geo-detect-btn {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(138, 180, 248, 0.12);
  border: 1px solid rgba(138, 180, 248, 0.25);
  color: var(--accent-blue);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s;
}

.geo-detect-btn:active {
  background: rgba(138, 180, 248, 0.2);
}

.geo-detect-btn.located {
  border-color: rgba(70, 200, 150, 0.4);
  background: rgba(70, 200, 150, 0.1);
  color: #46c896;
}

.geo-detect-btn:disabled {
  opacity: 0.7;
  cursor: default;
}

.geo-icon { font-size: 1.2rem; }

.geo-status {
  font-size: 0.8rem;
  margin-top: 0.4rem;
  min-height: 1.2em;
  color: var(--text-faint);
}

.geo-status-loading { color: var(--accent-blue); }
.geo-status-success { color: #46c896; }
.geo-status-warn { color: #f0ad4e; }
.geo-status-error { color: #e8708a; }

.photo-upload-light {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-faint);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}

.photo-upload-light input { display: none; }

.photo-upload-light:active {
  background: rgba(255, 255, 255, 0.06);
}

.log-submit-btn {
  width: 100%;
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent-indigo), var(--accent-violet));
  color: white;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
  transition: all 0.2s;
}

.log-submit-btn:active {
  transform: scale(0.98);
}

/* ============================================
   MOBILE-FIRST: STICKY BOTTOM BAR
   ============================================ */

.sticky-spacer {
  height: 72px;
}

.sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
  background: rgba(10, 10, 26, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(120, 100, 200, 0.15);
  transform: translateY(0);
  transition: transform 0.3s ease;
}

.sticky-bar.hidden {
  transform: translateY(100%);
}

.sticky-log-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--accent-indigo), var(--accent-violet));
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  font-family: var(--font-body);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
  border: none;
  cursor: pointer;
}

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

.sticky-share-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s;
}

.sticky-share-btn:active {
  background: rgba(255, 255, 255, 0.15);
}

/* ============================================
   MOBILE-FIRST: THEME TRANSITIONS
   ============================================ */

.theme-transition {
  height: 80px;
  background: linear-gradient(180deg, var(--sky-deep) 0%, var(--light-bg) 100%);
}

.theme-transition-reverse {
  height: 80px;
  background: linear-gradient(180deg, var(--light-bg) 0%, var(--sky-deep) 100%);
}

.wings-quote.light-zone {
  background: var(--light-bg);
  color: var(--light-text);
}

.wings-quote.light-zone p {
  color: var(--light-text-muted);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 480px) {
  .hero h1 { font-size: 2.2rem; }
  .stats-row { grid-template-columns: 1fr; }
  .rock-detail-header { flex-direction: column; align-items: center; text-align: center; }
  .sign-boxes { grid-template-columns: 1fr; }
}

@media (min-width: 768px) {
  .story-slide { flex: 0 0 60%; }
  .sticky-bar { max-width: 480px; left: 50%; transform: translateX(-50%); border-radius: 28px 28px 0 0; }
  .sticky-bar.hidden { transform: translateX(-50%) translateY(100%); }
  .section-light, .awareness-section, .mission-strip { padding-left: 2.5rem; padding-right: 2.5rem; }
}

@media print {
  .admin-nav, .admin-btn, .action-row, .sticky-bar, .sticky-spacer { display: none !important; }
  .qr-card { box-shadow: none; border: 2px solid #000; }
  body { background: white; color: black; }
}
