/* Zoriy Family Cloud · Premium Russian Decoy Web Interface */
/* Design Tokens & Theme Variables (Inspired by NailNet UI Guidelines) */

:root {
  --bg-canvas: #07090e;
  --bg-surface: rgba(15, 23, 42, 0.75);
  --bg-surface-elevated: rgba(30, 41, 59, 0.85);
  --bg-input: rgba(15, 23, 42, 0.9);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(16, 185, 129, 0.6);
  --border-hover: rgba(255, 255, 255, 0.16);
  
  --color-primary: #10b981;
  --color-primary-hover: #059669;
  --color-primary-glow: rgba(16, 185, 129, 0.25);
  
  --color-cyan: #06b6d4;
  --color-indigo: #6366f1;
  --color-rose: #f43f5e;
  --color-emerald: #10b981;
  --color-amber: #f59e0b;
  
  --text-main: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.6), 0 0 1px 1px rgba(255, 255, 255, 0.05);
  --shadow-glow: 0 0 35px -5px var(--color-primary-glow);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-canvas);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Ambient glow background accents */
.glow-bg {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}
.glow-primary {
  width: 550px;
  height: 550px;
  top: -150px;
  left: 20%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, transparent 70%);
}
.glow-secondary {
  width: 600px;
  height: 600px;
  top: 400px;
  right: -100px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography Helpers */
.gradient-text {
  background: linear-gradient(135deg, #f8fafc 20%, #34d399 70%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.text-center { text-align: center; }
.text-success { color: var(--color-emerald); }
.text-cyan { color: var(--color-cyan); }
.text-danger { color: var(--color-rose); }

/* Navigation Bar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(7, 9, 14, 0.82);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.25s ease;
}
.navbar-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}
.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}
.brand-text {
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand-title {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.brand-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-link:hover {
  color: var(--text-main);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.system-status-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  font-size: 0.8rem;
  font-weight: 500;
  color: #34d399;
}
.status-beacon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-emerald);
  box-shadow: 0 0 10px var(--color-emerald);
  animation: pulseBeacon 2.2s infinite ease-in-out;
}
@keyframes pulseBeacon {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}
.btn-primary {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}
.btn-lg {
  padding: 13px 26px;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}
.btn-block {
  width: 100%;
}
.btn-text {
  background: none;
  border: none;
  color: var(--color-cyan);
  font-size: 0.8rem;
  cursor: pointer;
  font-family: inherit;
}
.btn-text:hover {
  text-decoration: underline;
}

/* Hero Section */
.hero-section {
  padding: 80px 0 60px;
  position: relative;
  z-index: 1;
}
.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 24px;
}
.chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-emerald);
}
.hero-headline {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  max-width: 900px;
  margin-bottom: 20px;
}
.hero-subheadline {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 720px;
  line-height: 1.6;
  margin-bottom: 36px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 60px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Stats Row */
.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 100%;
}
.stat-card {
  background: var(--bg-surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px;
  text-align: left;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s, border-color 0.2s;
}
.stat-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
}
.stat-value {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 4px;
}
.stat-unit {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.stat-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  background: rgba(6, 182, 212, 0.15);
  color: var(--color-cyan);
}
.stat-badge-secure {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  background: rgba(16, 185, 129, 0.15);
  color: var(--color-emerald);
}
.stat-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 2px;
}
.stat-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
}
.stat-progress {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  margin-top: 10px;
  overflow: hidden;
}
.stat-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #06b6d4);
  border-radius: var(--radius-full);
}
.stat-footer-text {
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 10px;
}

/* Section Common */
.section {
  padding: 80px 0;
  position: relative;
  z-index: 1;
}
.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-emerald);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 650px;
  margin-bottom: 40px;
}
.text-center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--bg-surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
  transition: all 0.2s ease;
}
.feature-card:hover {
  border-color: rgba(16, 185, 129, 0.3);
  transform: translateY(-3px);
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.feature-icon-cyan {
  background: rgba(6, 182, 212, 0.12);
  color: var(--color-cyan);
}
.feature-icon-emerald {
  background: rgba(16, 185, 129, 0.12);
  color: var(--color-emerald);
}
.feature-icon-indigo {
  background: rgba(99, 102, 241, 0.12);
  color: var(--color-indigo);
}
.feature-icon-rose {
  background: rgba(244, 63, 94, 0.12);
  color: var(--color-rose);
}
.feature-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.feature-text {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Media Showcase */
.filter-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  overflow-x: auto;
  padding-bottom: 6px;
}
.filter-tab {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.filter-tab:hover {
  background: rgba(255, 255, 255, 0.09);
  color: var(--text-main);
}
.filter-tab.active {
  background: var(--color-emerald);
  border-color: var(--color-emerald);
  color: #fff;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.media-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
}
.media-card:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, 0.35);
}
.media-thumb {
  height: 170px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
}
.thumb-altay {
  background: linear-gradient(180deg, rgba(7, 9, 14, 0.2) 0%, rgba(7, 9, 14, 0.85) 100%),
              radial-gradient(ellipse at center, #0f766e 0%, #042f2e 100%);
}
.thumb-bday {
  background: linear-gradient(180deg, rgba(7, 9, 14, 0.2) 0%, rgba(7, 9, 14, 0.85) 100%),
              radial-gradient(ellipse at center, #4338ca 0%, #1e1b4b 100%);
}
.thumb-newyear {
  background: linear-gradient(180deg, rgba(7, 9, 14, 0.2) 0%, rgba(7, 9, 14, 0.85) 100%),
              radial-gradient(ellipse at center, #be185d 0%, #500724 100%);
}
.thumb-baikal {
  background: linear-gradient(180deg, rgba(7, 9, 14, 0.2) 0%, rgba(7, 9, 14, 0.85) 100%),
              radial-gradient(ellipse at center, #0369a1 0%, #082f49 100%);
}

.media-duration {
  position: absolute;
  bottom: 10px;
  right: 10px;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.75);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #fff;
}
.media-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.4);
  font-size: 0.7rem;
  font-weight: 700;
  color: #6ee7b7;
}
.play-overlay-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.85);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s, background-color 0.2s;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}
.media-card:hover .play-overlay-btn {
  transform: scale(1.12);
  background: var(--color-emerald);
}

.media-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.media-meta-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.media-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.media-tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
}
.media-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 12px;
  flex-grow: 1;
}
.media-specs {
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--text-secondary);
  border-top: 1px solid var(--border-subtle);
  padding-top: 10px;
  margin-top: auto;
}

/* Tech Section */
.tech-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 48px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  box-shadow: var(--shadow-card);
}
.tech-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.tech-description {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}
.tech-specs-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.tech-spec-item {
  display: flex;
  gap: 12px;
  font-size: 0.92rem;
  line-height: 1.5;
}
.spec-bullet {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-emerald);
  margin-top: 7px;
  flex-shrink: 0;
}

.tech-panel {
  background: rgba(7, 9, 14, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.5);
}
.panel-header {
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 8px;
}
.panel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.panel-dot.red { background: #ef4444; }
.panel-dot.yellow { background: #f59e0b; }
.panel-dot.green { background: #10b981; }
.panel-title {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  margin-left: 8px;
}
.panel-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}
.telemetry-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
  padding-bottom: 8px;
}
.telemetry-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.telemetry-label {
  color: var(--text-secondary);
}
.telemetry-val {
  font-weight: 600;
}

/* FAQ Section */
.faq-container {
  max-width: 800px;
}
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  transition: border-color 0.2s;
}
.faq-item[open] {
  border-color: rgba(16, 185, 129, 0.35);
}
.faq-question {
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-question::-webkit-details-marker {
  display: none;
}
.faq-icon {
  font-size: 1.4rem;
  color: var(--color-emerald);
  transition: transform 0.2s;
}
.faq-item[open] .faq-icon {
  transform: rotate(45deg);
}
.faq-answer {
  margin-top: 12px;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 30px;
  background: rgba(7, 9, 14, 0.95);
  margin-top: 40px;
}
.footer-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}
.footer-brand-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 400px;
  line-height: 1.6;
  margin-top: 14px;
}
.footer-links-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 14px;
}
.footer-links-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-link {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-link:hover {
  color: var(--color-emerald);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-node-info code {
  font-family: var(--font-mono);
  color: var(--text-secondary);
}

/* Modal Dialog */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 1;
  transition: opacity 0.2s ease;
}
.modal-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}
.modal-card {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 480px;
  padding: 32px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.85), 0 0 25px rgba(16, 185, 129, 0.1);
  transform: scale(1);
  transition: transform 0.2s ease;
}
.modal-overlay.hidden .modal-card {
  transform: scale(0.96);
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}
.modal-title-group {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.modal-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: rgba(16, 185, 129, 0.15);
  color: var(--color-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.modal-subtitle {
  font-size: 0.82rem;
  color: var(--text-secondary);
}
.modal-close-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
}
.modal-close-btn:hover {
  color: var(--text-main);
}

/* Forms */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}
.required {
  color: var(--color-rose);
}
.input-wrapper {
  position: relative;
}
.form-input {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.92rem;
  transition: all 0.2s ease;
}
.form-input:focus {
  outline: none;
  border-color: var(--color-emerald);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}
.form-input::placeholder {
  color: var(--text-muted);
}
.form-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Switch */
.form-switch-row {
  display: flex;
  align-items: center;
}
.switch-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  font-size: 0.84rem;
  color: var(--text-secondary);
}
.switch-input {
  display: none;
}
.switch-slider {
  width: 36px;
  height: 20px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  position: relative;
  transition: background-color 0.2s;
}
.switch-slider::before {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}
.switch-input:checked + .switch-slider {
  background: var(--color-emerald);
}
.switch-input:checked + .switch-slider::before {
  transform: translateX(16px);
}

/* Alerts */
.auth-alert {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  line-height: 1.5;
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.3);
  color: #fda4af;
}
.auth-alert.hidden {
  display: none;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 8px;
}

/* Spinner */
.btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: inline-block;
}
.btn-spinner.hidden {
  display: none;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  background: #1e293b;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  color: var(--text-main);
  font-size: 0.86rem;
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: auto;
  animation: toastIn 0.25s ease-out;
}
@keyframes toastIn {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .hero-stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .media-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tech-box {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }
  .hero-stats-row {
    grid-template-columns: 1fr;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .media-grid {
    grid-template-columns: 1fr;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .btn-lg {
    width: 100%;
  }
}
