/* ==========================================================================
   THE RUNYANS - Pure Michigan Digital Hub & Clan HQ
   Ultra-modern, glassmorphism, responsive design system
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  /* Color Palette - Aurora & Great Lakes Midnight */
  --bg-primary: #07090e;
  --bg-secondary: #0d121f;
  --bg-card: rgba(16, 23, 38, 0.75);
  --bg-card-hover: rgba(23, 34, 56, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --bg-glass-active: rgba(255, 255, 255, 0.09);

  /* Michigan Water & Aurora Accents */
  --accent-cyan: #00f2fe;
  --accent-blue: #4facfe;
  --accent-aurora: #10b981;
  --accent-purple: #9d4edd;
  --accent-gold: #f59e0b;
  --accent-rose: #f43f5e;
  
  --gradient-aurora: linear-gradient(135deg, #00f2fe 0%, #4facfe 50%, #9d4edd 100%);
  --gradient-pure-mi: linear-gradient(135deg, #0284c7 0%, #06b6d4 50%, #10b981 100%);
  --gradient-sunset: linear-gradient(135deg, #f97316 0%, #ec4899 50%, #8b5cf6 100%);
  --gradient-gold: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --gradient-card-border: linear-gradient(135deg, rgba(255,255,255,0.18), rgba(255,255,255,0.02));

  /* Text & Borders */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-bright: rgba(0, 242, 254, 0.35);

  /* Shadows & Glows */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 36px rgba(0, 0, 0, 0.5);
  --glow-cyan: 0 0 25px rgba(0, 242, 254, 0.25);
  --glow-aurora: 0 0 35px rgba(16, 185, 129, 0.3);

  /* Typography */
  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Space Grotesk', monospace;

  /* Transitions & Spacing */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
}

/* Light Theme Overrides (Optional Toggle) */
[data-theme="sunset"] {
  --bg-primary: #0c0814;
  --bg-secondary: #170d24;
  --bg-card: rgba(30, 16, 44, 0.75);
  --accent-cyan: #ff758c;
  --accent-blue: #ff7eb3;
  --gradient-aurora: linear-gradient(135deg, #ff758c 0%, #ff7eb3 50%, #fa709a 100%);
  --glow-cyan: 0 0 25px rgba(255, 117, 140, 0.3);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-main);
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
}

/* Canvas Background for Constellation & Aurora */
#ambient-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.65;
}

/* Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0.85rem 2rem;
  background: rgba(7, 9, 14, 0.75);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-smooth);
}

.nav-container {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--text-main);
}

.brand-emblem {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.35);
  border: 1px solid var(--border-bright);
  transition: transform var(--transition-fast);
}

.brand-link:hover .brand-emblem {
  transform: rotate(5deg) scale(1.08);
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  background: var(--gradient-aurora);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 1.75rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  transition: color var(--transition-fast);
  padding: 0.35rem 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--gradient-aurora);
  border-radius: var(--radius-full);
  transition: width var(--transition-fast);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

/* Sound Controller Pill */
.audio-toggle-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.4rem 0.9rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.audio-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  border-color: var(--border-bright);
}

.audio-toggle-btn.playing {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: var(--glow-cyan);
}

.audio-waves {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}

.wave-bar {
  width: 2px;
  height: 4px;
  background: currentColor;
  border-radius: 1px;
}

.audio-toggle-btn.playing .wave-bar:nth-child(1) { animation: wavePulse 0.9s ease-in-out infinite alternate; }
.audio-toggle-btn.playing .wave-bar:nth-child(2) { animation: wavePulse 0.6s ease-in-out infinite 0.2s alternate; }
.audio-toggle-btn.playing .wave-bar:nth-child(3) { animation: wavePulse 0.8s ease-in-out infinite 0.4s alternate; }

@keyframes wavePulse {
  0% { height: 3px; }
  100% { height: 12px; }
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  background: var(--gradient-aurora);
  color: #07090e;
  box-shadow: var(--glow-cyan);
  border: none;
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0, 242, 254, 0.5);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Page Layout */
main {
  position: relative;
  z-index: 10;
  max-width: 1300px;
  margin: 0 auto;
  padding: 6.5rem 1.5rem 3rem;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 3rem 1rem 5rem;
}

.hero-banner-container {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg);
}

.hero-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.42) contrast(1.15);
  transform: scale(1.02);
  transition: transform 10s ease;
}

.hero-banner-container:hover .hero-banner-img {
  transform: scale(1.08);
}

.hero-banner-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(7, 9, 14, 0.2) 0%, rgba(7, 9, 14, 0.85) 100%),
              linear-gradient(to top, var(--bg-primary) 0%, transparent 60%);
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.3);
  backdrop-filter: blur(12px);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.2);
  animation: floatSoft 4s ease-in-out infinite alternate;
}

@keyframes floatSoft {
  0% { transform: translateY(0); }
  100% { transform: translateY(-5px); }
}

.hero-badge-pill .pulse-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10b981;
  animation: blink 1.8s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.hero-title {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}

.hero-title-highlight {
  background: var(--gradient-aurora);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  text-shadow: 0 0 40px rgba(0, 242, 254, 0.4);
}

.hero-tagline {
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  color: #e2e8f0;
  max-width: 740px;
  margin: 0 auto 2.25rem;
  font-weight: 400;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* Michigan Stats & Live Vitals Bar */
.live-vitals-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  width: 100%;
  max-width: 1050px;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.75rem;
  box-shadow: var(--shadow-lg);
}

.vital-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-align: left;
}

.vital-icon {
  font-size: 1.6rem;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-subtle);
}

.vital-data {
  display: flex;
  flex-direction: column;
}

.vital-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--text-dim);
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
}

.vital-val {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  font-family: var(--font-mono);
}

/* Section Header Styles */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 5rem auto 3rem;
  position: relative;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.08);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(0, 242, 254, 0.2);
  margin-bottom: 0.85rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
  margin-bottom: 0.75rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* Filter Buttons */
.filter-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}

.filter-btn {
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius-full);
  font-size: 0.86rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
}

.filter-btn.active {
  background: var(--gradient-aurora);
  color: #07090e;
  font-weight: 700;
  border-color: transparent;
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.3);
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

/* 3D Glass Card */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.4s ease, 
              box-shadow 0.4s ease;
  transform-style: preserve-3d;
  display: flex;
  flex-direction: column;
}

.glass-card:hover {
  border-color: var(--border-bright);
  box-shadow: var(--shadow-lg), var(--glow-cyan);
  transform: translateY(-6px);
}

.card-media {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover .card-media img {
  transform: scale(1.07);
}

.card-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(7, 9, 14, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  font-weight: 600;
}

.card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.35rem;
}

.card-role {
  font-size: 0.85rem;
  color: var(--accent-aurora);
  font-family: var(--font-mono);
  font-weight: 500;
  margin-bottom: 0.85rem;
}

.card-text {
  font-size: 0.93rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}

.tag {
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
  margin-top: auto;
}

.card-action-btn {
  background: none;
  border: none;
  color: var(--accent-cyan);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0;
  transition: color var(--transition-fast);
}

.card-action-btn:hover {
  color: #fff;
}

/* Feature Showcase Hero Cards (Northern Cabin & Mackinac) */
.featured-split-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 3.5rem;
  box-shadow: var(--shadow-lg);
  transition: border-color var(--transition-smooth);
}

.featured-split-card:hover {
  border-color: rgba(0, 242, 254, 0.3);
}

.featured-split-card.reverse {
  grid-template-columns: 0.9fr 1.1fr;
}

.featured-img-wrap {
  position: relative;
  min-height: 380px;
}

.featured-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-content-wrap {
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-label {
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
}

.featured-heading {
  font-size: 2.1rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.featured-desc {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.highlights-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.92rem;
  color: #e2e8f0;
}

.highlight-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 242, 254, 0.15);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* Timeline / Chronicles */
.timeline-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline-container::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-cyan), var(--accent-aurora), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 3.5rem;
  width: 50%;
  padding: 0 2.5rem;
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
}

.timeline-dot {
  position: absolute;
  top: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 3px solid var(--accent-cyan);
  box-shadow: 0 0 15px var(--accent-cyan);
  z-index: 2;
}

.timeline-item:nth-child(odd) .timeline-dot {
  right: -9px;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -9px;
}

.timeline-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
}

.timeline-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-cyan);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.timeline-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

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

/* Gallery Vault */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  height: 260px;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border-subtle);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7,9,14,0.95) 0%, rgba(7,9,14,0.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-title {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.gallery-location {
  color: var(--accent-cyan);
  font-size: 0.78rem;
  font-family: var(--font-mono);
}

/* Guestbook & Message Dispatch */
.dispatch-section {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  margin-top: 3rem;
}

.dispatch-form-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
}

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

.form-label {
  display: block;
  font-size: 0.82rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: #fff;
  font-family: var(--font-main);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.2);
}

.form-textarea {
  min-height: 110px;
  resize: vertical;
}

/* Family Message Wall */
.message-wall {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 520px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.wall-entry {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  transition: all var(--transition-fast);
}

.wall-entry:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
}

.wall-entry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.wall-author-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.wall-author {
  font-weight: 700;
  color: #fff;
  font-size: 0.95rem;
}

.wall-badge {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  background: rgba(0, 242, 254, 0.1);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 242, 254, 0.2);
}

.wall-time {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.wall-message {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.wall-reactions {
  display: flex;
  gap: 0.5rem;
}

.reaction-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.2rem 0.55rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: all var(--transition-fast);
}

.reaction-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.reaction-btn.reacted {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

/* Modals (Member Detail & Lightbox & Michigan Hand Guide) */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-backdrop.open {
  display: flex;
  opacity: 1;
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  max-width: 650px;
  width: 100%;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.8), var(--glow-cyan);
  animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  0% { transform: scale(0.92); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--accent-rose);
  border-color: transparent;
}

.modal-body {
  padding: 2.25rem;
}

/* Lightbox Specific */
.lightbox-modal .modal-card {
  max-width: 950px;
  background: transparent;
  border: none;
  box-shadow: none;
  text-align: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 40px rgba(0,0,0,0.9);
  border: 1px solid var(--border-subtle);
}

.lightbox-caption {
  margin-top: 1rem;
  font-size: 1.1rem;
  color: #fff;
  font-weight: 600;
}

/* Michigan Hand Map Widget Modal */
.mitten-guide-box {
  background: rgba(0, 242, 254, 0.04);
  border: 1px dashed var(--border-bright);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-top: 1.25rem;
  text-align: left;
}

/* Footer */
footer {
  position: relative;
  z-index: 10;
  border-top: 1px solid var(--border-subtle);
  background: rgba(5, 7, 10, 0.85);
  backdrop-filter: blur(14px);
  padding: 4rem 1.5rem 2.5rem;
  margin-top: 5rem;
}

.footer-container {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: 0.85rem;
  max-width: 360px;
}

.footer-col-title {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-cyan);
}

.footer-bottom {
  max-width: 1300px;
  margin: 0 auto;
  border-top: 1px solid var(--border-subtle);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .featured-split-card,
  .featured-split-card.reverse {
    grid-template-columns: 1fr;
  }
  .featured-img-wrap {
    min-height: 280px;
  }
  .dispatch-section {
    grid-template-columns: 1fr;
  }
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .timeline-container::before {
    left: 20px;
  }
  .timeline-item {
    width: 100%;
    padding-left: 50px;
    padding-right: 0;
    text-align: left !important;
    left: 0 !important;
  }
  .timeline-dot {
    left: 11px !important;
    right: auto !important;
  }
  .footer-container {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Dynamic Folder Explorer Gallery Styling
   ========================================================================== */
.gallery-explorer-wrap {
  margin-top: 2rem;
}

.gallery-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.5rem;
  margin-bottom: 2rem;
}

.gallery-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.86rem;
}

.breadcrumb-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all var(--transition-fast);
}

.breadcrumb-pill:hover {
  background: rgba(0, 242, 254, 0.15);
  color: #fff;
  border-color: var(--border-bright);
}

.breadcrumb-pill.active {
  background: rgba(0, 242, 254, 0.2);
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  font-weight: 600;
}

.breadcrumb-sep {
  color: var(--text-dim);
  font-size: 0.8rem;
}

.gallery-subfolders-section {
  margin-bottom: 2.5rem;
}

.gallery-section-subhead {
  font-size: 0.85rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-cyan);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.folders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.folder-card {
  position: relative;
  height: 180px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  cursor: pointer;
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.folder-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}

.folder-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), var(--glow-cyan);
}

.folder-card:hover .folder-card-bg {
  transform: scale(1.08);
  filter: brightness(0.7);
}

.folder-card-overlay {
  position: relative;
  z-index: 2;
  padding: 1.25rem;
  background: linear-gradient(to top, rgba(7, 9, 14, 0.95) 0%, rgba(7, 9, 14, 0.4) 60%, transparent 100%);
}

.folder-icon-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(0, 242, 254, 0.2);
  border: 1px solid rgba(0, 242, 254, 0.4);
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.35rem;
  backdrop-filter: blur(8px);
}

.folder-card-title {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.2;
}

.folder-card-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-top: 0.25rem;
}

.empty-folder-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
}

/* ==========================================================================
   Multi-Page Dedicated Layouts & Portal Hub Styles
   ========================================================================== */
.page-header {
  position: relative;
  padding: 8rem 2rem 3.5rem;
  text-align: center;
  overflow: hidden;
  background: radial-gradient(circle at 50% 20%, rgba(0, 242, 254, 0.08) 0%, rgba(7, 9, 14, 0) 70%);
  border-bottom: 1px solid var(--border-subtle);
}

.page-header-container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.page-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(10px);
}

.page-title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.page-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.7;
}

.page-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 3rem 2rem 6rem;
  position: relative;
  z-index: 2;
}

/* Homepage Portal Hub */
.portal-section {
  padding: 5rem 2rem;
  max-width: 1300px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.portal-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--text-main);
  transition: all var(--transition-smooth);
}

.portal-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-bright);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), var(--glow-cyan);
}

.portal-media {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.portal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.portal-card:hover .portal-media img {
  transform: scale(1.08);
}

.portal-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(16, 23, 38, 0.95) 0%, rgba(16, 23, 38, 0.2) 60%, transparent 100%);
}

.portal-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(7, 9, 14, 0.75);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(10px);
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

.portal-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.portal-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.portal-arrow {
  color: var(--accent-cyan);
  font-size: 1.3rem;
  transition: transform var(--transition-fast);
}

.portal-card:hover .portal-arrow {
  transform: translateX(6px);
}

.portal-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.portal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* Toast Notifications */
.runyan-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: rgba(16, 23, 38, 0.95);
  border: 1px solid var(--accent-cyan);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), var(--glow-cyan);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-md);
  z-index: 999999;
  pointer-events: none;
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition-smooth);
  backdrop-filter: blur(12px);
}

.runyan-toast.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Gallery Search & Filter */
.gallery-search-wrap {
  position: relative;
  min-width: 220px;
  max-width: 320px;
}

.gallery-search-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: #fff;
  font-family: var(--font-main);
  font-size: 0.85rem;
  padding: 0.45rem 1rem 0.45rem 2.2rem;
  outline: none;
  transition: all var(--transition-fast);
}

.gallery-search-input:focus {
  border-color: var(--accent-cyan);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
}

.gallery-search-icon {
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 0.85rem;
  pointer-events: none;
}/* ==========================================================================
   Member Gate, Auth Modal & Profile Dropdown
   ========================================================================== */

/* Navbar Member Portal & User Dropdown */
.member-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.35);
  color: var(--accent-cyan);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.member-nav-btn:hover {
  background: rgba(0, 242, 254, 0.18);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.3);
  transform: translateY(-1px);
}

.user-badge-wrap {
  position: relative;
  display: inline-block;
}
.user-badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(16, 23, 38, 0.85);
  border: 1px solid var(--border-subtle);
  color: #fff;
  padding: 0.38rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.user-badge-btn:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
}
.user-badge-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #07090e;
}
.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.65rem);
  right: 0;
  width: 240px;
  background: rgba(11, 15, 25, 0.96);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 242, 254, 0.15);
  backdrop-filter: blur(20px);
  padding: 0.75rem 0;
  z-index: 10000;
  display: none;
  animation: fadeInDown 0.2s ease forwards;
}
.user-dropdown-menu.show {
  display: block;
}
.user-dropdown-header {
  padding: 0.5rem 1.1rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.user-dropdown-header strong {
  display: block;
  font-size: 0.92rem;
  color: #fff;
}
.user-dropdown-header small {
  display: block;
  color: var(--text-muted);
  font-size: 0.78rem;
  margin-top: 2px;
  word-break: break-all;
}
.user-role-pill {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.68rem;
  font-family: var(--font-mono);
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 0.35rem;
  background: rgba(0, 242, 254, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 242, 254, 0.3);
}
.dropdown-action-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.6rem 1.1rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.88rem;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}
.dropdown-action-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}
.dropdown-action-item.text-danger:hover {
  color: #f43f5e;
  background: rgba(244, 63, 94, 0.1);
}

/* Clan Member Gate Container */
.member-gate-container {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  position: relative;
  z-index: 50;
}
.member-gate-card {
  max-width: 620px;
  width: 100%;
  background: rgba(11, 15, 25, 0.88);
  border: 1px solid rgba(0, 242, 254, 0.3);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 242, 254, 0.15);
  backdrop-filter: blur(24px);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: scaleUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.member-gate-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), var(--accent-blue), transparent);
}
.gate-shield-emblem {
  width: 76px;
  height: 76px;
  margin: 0 auto 1.5rem;
  border-radius: 20px;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.35);
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
}
.gate-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--accent-gold);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.85rem;
  border-radius: 9999px;
  margin-bottom: 1.25rem;
}
.gate-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.gate-text {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 2rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.gate-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}
.gate-home-link {
  color: var(--text-dim);
  font-size: 0.88rem;
  text-decoration: none;
  transition: color var(--transition-fast);
}
.gate-home-link:hover {
  color: var(--accent-cyan);
}

/* Auth Modal Window */
.member-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 10, 0.85);
  backdrop-filter: blur(16px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.member-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.member-modal-box {
  background: rgba(14, 20, 34, 0.95);
  border: 1px solid rgba(0, 242, 254, 0.35);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(0, 242, 254, 0.2);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 460px;
  position: relative;
  overflow: hidden;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.member-modal-overlay.open .member-modal-box {
  transform: translateY(0) scale(1);
}
.member-modal-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 10;
}
.member-modal-close:hover {
  color: #fff;
}
.member-modal-header {
  padding: 2rem 2rem 1.25rem;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.member-modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.35rem;
}
.member-modal-sub {
  color: var(--text-muted);
  font-size: 0.88rem;
}
.auth-tab-bar {
  display: flex;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.auth-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.85rem;
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}
.auth-tab-btn.active {
  color: var(--accent-cyan);
  border-bottom-color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.05);
}
.auth-tab-pane {
  display: none;
  padding: 1.75rem 2rem 2rem;
}
.auth-tab-pane.active {
  display: block;
}
.auth-form-group {
  margin-bottom: 1.15rem;
}
.auth-label {
  display: block;
  font-size: 0.84rem;
  color: var(--text-main);
  margin-bottom: 0.4rem;
  font-weight: 500;
}
.auth-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: var(--font-main);
  font-size: 0.95rem;
  padding: 0.65rem 0.9rem;
  outline: none;
  transition: all 0.2s ease;
}
.auth-input:focus {
  border-color: var(--accent-cyan);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.25);
}
.auth-btn-submit {
  width: 100%;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  border: none;
  color: #07090e;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3);
  transition: all 0.2s ease;
  margin-top: 0.5rem;
}
.auth-btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 242, 254, 0.45);
}
.auth-alert-box {
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  margin-bottom: 1rem;
  display: none;
}
.auth-alert-error {
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.4);
  color: #f43f5e;
}
.auth-alert-success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #10b981;
}

@keyframes scaleUp {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
