/* 
========================================
   TV Player Portal - Modern Design System
   Netflix-Inspired Dark Mode
   Build: 2025-11-17
========================================
*/

/*
========================================
  CSS Variables & Design Tokens
========================================
*/
:root {
  /* Brand Colors */
  --accent: #e50914; /* Netflix-inspired red */
  --accent-hover: #f40612;
  --accent-glow: rgba(229, 9, 20, 0.4);

  --secondary: #3b82f6;
  --secondary-hover: #2563eb;

  --success: #46d369;
  --warning: #f1c40f;
  --danger: #e74c3c;
  --info: #3498db;

  /* Light Mode Backgrounds (Default) */
  --bg-primary: #ffffff;
  --bg-secondary: #f5f5f5;
  --bg-tertiary: #eeeeee;
  --bg-card: #ffffff;
  --bg-hover: #f8f9fa;
  --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

  /* Light Mode Text */
  --text-primary: #1a1a1a;
  --text-secondary: #4a4a4a;
  --text-muted: #666666;
  --text-on-accent: #ffffff;

  /* Light Mode Shadows */
  --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 12px 48px rgba(0, 0, 0, 0.16);
  --shadow-glow: 0 0 20px rgba(229, 9, 20, 0.3);

  /* Borders */
  --border-color: #e5e5e5;
  --border-hover: #cccccc;

  /* Spacing System */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Typography */
  --font-primary: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", sans-serif;
  --font-heading: "Roboto", "SF Pro Display", "Helvetica Neue", Arial,
    sans-serif;

  /* Transitions */
  --transition-base: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);

  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Layout */
  --max-width: 1200px;
  --header-height: 80px;

  /* Z-index Scale */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal: 500;
  --z-tooltip: 700;
}

/* Dark Mode Theme */
[data-theme="dark"] {
  /* Dark Mode Backgrounds */
  --bg-primary: #141414;
  --bg-secondary: #181818;
  --bg-tertiary: #1f1f1f;
  --bg-card: #181818;
  --bg-hover: #222222;
  --bg-gradient: linear-gradient(
    to bottom,
    rgba(20, 20, 20, 0) 0%,
    rgba(20, 20, 20, 0.15) 15%,
    rgba(20, 20, 20, 0.35) 29%,
    rgba(20, 20, 20, 0.58) 44%,
    #141414 68%,
    #141414 100%
  );

  /* Dark Mode Text */
  --text-primary: #ffffff;
  --text-secondary: #e5e5e5;
  --text-muted: #999999;

  /* Dark Mode Shadows */
  --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.6);
  --shadow-xl: 0 12px 48px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 20px rgba(229, 9, 20, 0.5);

  /* Dark Mode Borders */
  --border-color: #333333;
  --border-hover: #404040;
}

/* Auto Dark Mode based on system preference */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    /* Dark Mode Backgrounds */
    --bg-primary: #141414;
    --bg-secondary: #181818;
    --bg-tertiary: #1f1f1f;
    --bg-card: #181818;
    --bg-hover: #222222;

    /* Dark Mode Text */
    --text-primary: #ffffff;
    --text-secondary: #e5e5e5;
    --text-muted: #999999;

    /* Dark Mode Shadows */
    --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.6);
    --shadow-xl: 0 12px 48px rgba(0, 0, 0, 0.7);

    /* Dark Mode Borders */
    --border-color: #333333;
    --border-hover: #404040;
  }
}

/*
========================================
  Global Reset & Base Styles
========================================
*/
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  transition: background-color var(--transition-base),
    color var(--transition-base);
}

/* Modern Selection Styles */
::selection {
  background-color: var(--accent);
  color: var(--text-on-accent);
}

::-moz-selection {
  background-color: var(--accent);
  color: var(--text-on-accent);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  border: 3px solid var(--bg-secondary);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--bg-hover);
}

/*
========================================
  Theme Toggle Button
========================================
*/
.theme-toggle {
  position: fixed;
  top: var(--space-lg);
  left: var(--space-lg);
  z-index: var(--z-fixed);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: var(--space-sm);
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
}

.theme-toggle:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-xl);
  border-color: var(--border-hover);
}

.theme-toggle:active {
  transform: scale(0.95);
}

.theme-icon {
  font-size: 1.5rem;
  transition: transform var(--transition-base);
}

.theme-toggle:hover .theme-icon {
  transform: rotate(20deg);
}

/*
========================================
  Container & Layout
========================================
*/
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

/*
========================================
  Header
========================================
*/
header {
  text-align: center;
  padding: var(--space-3xl) 0 var(--space-2xl);
  margin-bottom: var(--space-2xl);
  position: relative;
}

header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  border-radius: var(--radius-full);
}

header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: var(--space-sm);
  background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.tagline {
  font-size: 1.125rem;
  color: var(--text-muted);
  font-weight: 300;
}

/*
========================================
  Authentication Status Badge
========================================
*/
#authStatus {
  position: fixed;
  top: var(--space-lg);
  right: var(--space-lg);
  z-index: var(--z-fixed);
}

.auth-badge {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  background: var(--bg-card);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: all var(--transition-base);
}

.auth-badge:hover {
  box-shadow: var(--shadow-xl);
  border-color: var(--border-hover);
}

.btn-logout {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.btn-logout:hover {
  background: var(--bg-hover);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

/*
========================================
  Navigation Tabs
========================================
*/
.tabs {
  display: flex;
  gap: var(--space-xs);
  padding: var(--space-xs);
  background: var(--bg-secondary);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-2xl);
  overflow-x: auto;
  scrollbar-width: none;
  box-shadow: var(--shadow-md);
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  flex: 1;
  min-width: fit-content;
  padding: var(--space-md) var(--space-lg);
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.tab::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 80%;
  height: 2px;
  background: var(--accent);
  transition: transform var(--transition-base);
}

.tab:hover {
  color: var(--text-secondary);
  background: var(--bg-hover);
}

.tab.active {
  color: var(--text-primary);
  background: var(--bg-tertiary);
  box-shadow: var(--shadow-sm);
}

.tab.active::before {
  transform: translateX(-50%) scaleX(1);
}

.tab:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/*
========================================
  Pages
========================================
*/
.page {
  display: none;
  animation: fadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.page.active {
  display: block;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/*
========================================
  Hero Section
========================================
*/
.hero {
  text-align: center;
  padding: var(--space-3xl) 0;
  margin-bottom: var(--space-2xl);
}

.hero h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/*
========================================
  Feature Cards
========================================
*/
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-3xl);
}

.feature-card {
  background: var(--bg-card);
  padding: var(--space-2xl);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-slow);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--border-hover);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.icon {
  font-size: 3rem;
  margin-bottom: var(--space-lg);
  display: block;
  filter: drop-shadow(0 4px 8px rgba(229, 9, 20, 0.3));
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
  font-weight: 600;
}

.feature-card p {
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
  line-height: 1.7;
}

/*
========================================
  Buttons
========================================
*/
.btn {
  display: inline-block;
  padding: var(--space-md) var(--space-xl);
  border: none;
  border-radius: var(--radius-lg);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-base);
  text-align: center;
  position: relative;
  overflow: hidden;
  font-family: var(--font-primary);
}

.btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: var(--accent);
  color: var(--text-on-accent);
  box-shadow: 0 4px 14px rgba(229, 9, 20, 0.4);
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 6px 20px rgba(229, 9, 20, 0.6);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-success {
  background: var(--success);
  color: var(--text-on-accent);
  box-shadow: 0 4px 14px rgba(70, 211, 105, 0.4);
}

.btn-success:hover {
  background: #3bb95a;
  box-shadow: 0 6px 20px rgba(70, 211, 105, 0.6);
  transform: translateY(-2px);
}

.btn-large {
  padding: var(--space-lg) var(--space-2xl);
  font-size: 1.125rem;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/*
========================================
  Forms
========================================
*/
.form {
  background: var(--bg-card);
  padding: var(--space-2xl);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  margin-bottom: var(--space-2xl);
}

.form-group {
  margin-bottom: var(--space-xl);
}

.form-group:last-of-type {
  margin-bottom: var(--space-2xl);
}

label {
  display: block;
  margin-bottom: var(--space-sm);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9375rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"] {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-size: 1rem;
  font-family: var(--font-primary);
  transition: all var(--transition-base);
}

input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(229, 9, 20, 0.1);
  background: var(--bg-tertiary);
}

input::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

small {
  display: block;
  margin-top: var(--space-sm);
  color: var(--text-muted);
  font-size: 0.8125rem;
  line-height: 1.4;
}

/*
========================================
  Result Messages
========================================
*/
.result {
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  margin-top: var(--space-lg);
  font-size: 0.9375rem;
  border: 1px solid;
  opacity: 0;
  transform: translateY(-10px);
  transition: all var(--transition-base);
  pointer-events: none;
}

.result.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.result.success {
  background: rgba(70, 211, 105, 0.1);
  border-color: var(--success);
  color: var(--success);
}

.result.error {
  background: rgba(239, 68, 68, 0.1);
  border-color: var(--danger);
  color: var(--danger);
}

.result.loading {
  background: rgba(59, 130, 246, 0.1);
  border-color: var(--info);
  color: var(--info);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.result.loading::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid var(--info);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/*
========================================
  Playlist Type Selector
========================================
*/
.playlist-type-selector {
  display: flex;
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
  padding: var(--space-md);
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
}

.playlist-type-selector label {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: var(--bg-tertiary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  margin-bottom: 0;
}

.playlist-type-selector label:hover {
  border-color: var(--border-hover);
  background: var(--bg-hover);
}

.playlist-type-selector input[type="radio"] {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-color);
  border-radius: 50%;
  position: relative;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.playlist-type-selector input[type="radio"]:checked {
  border-color: var(--accent);
  background: var(--accent);
}

.playlist-type-selector input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
}

.playlist-type-selector input[type="radio"]:checked + span {
  color: var(--accent);
  font-weight: 600;
}

.playlist-form {
  display: none;
}

.playlist-form.active {
  display: block;
}

/*
========================================
  Lock Message
========================================
*/
.lock-message {
  text-align: center;
  padding: var(--space-3xl);
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  margin-bottom: var(--space-2xl);
}

.lock-icon {
  font-size: 4rem;
  margin-bottom: var(--space-lg);
  opacity: 0.5;
}

.lock-message h3 {
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.lock-message p {
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
}

/*
========================================
  Info Section
========================================
*/
.info-section {
  background: var(--bg-card);
  padding: var(--space-2xl);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  margin-bottom: var(--space-2xl);
}

.info-section h3 {
  font-size: 1.5rem;
  margin-bottom: var(--space-lg);
  color: var(--text-primary);
}

.info-section ol,
.info-section ul {
  margin-left: var(--space-xl);
  color: var(--text-secondary);
}

.info-section li {
  margin-bottom: var(--space-md);
  line-height: 1.7;
}

.info-section strong {
  color: var(--text-primary);
  font-weight: 600;
}

/*
========================================
  Guide Steps
========================================
*/
.guide-section {
  margin-bottom: var(--space-2xl);
}

.guide-step {
  display: flex;
  gap: var(--space-xl);
  background: var(--bg-card);
  padding: var(--space-2xl);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  margin-bottom: var(--space-xl);
  transition: all var(--transition-base);
}

.guide-step:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg);
  transform: translateX(4px);
}

.step-number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--secondary));
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(229, 9, 20, 0.3);
}

.step-content h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.step-content p {
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  line-height: 1.7;
}

.step-content ul {
  margin-left: var(--space-xl);
  color: var(--text-muted);
}

.step-content li {
  margin-bottom: var(--space-sm);
  line-height: 1.7;
}

/*
========================================
  Info Boxes
========================================
*/
.info-box {
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  border-left: 4px solid;
  margin-bottom: var(--space-2xl);
}

.info-box.warning {
  background: rgba(241, 196, 15, 0.1);
  border-color: var(--warning);
}

.info-box h4 {
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  font-size: 1.125rem;
}

.info-box ul {
  margin-left: var(--space-xl);
  color: var(--text-secondary);
}

.info-box li {
  margin-bottom: var(--space-sm);
  line-height: 1.7;
}

/*
========================================
  FAQ Section
========================================
*/
.faq-section {
  margin-top: var(--space-3xl);
}

.faq-section h3 {
  font-size: 1.75rem;
  margin-bottom: var(--space-xl);
  color: var(--text-primary);
  text-align: center;
}

.faq-item {
  background: var(--bg-card);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  margin-bottom: var(--space-lg);
  transition: all var(--transition-base);
}

.faq-item:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.faq-item h4 {
  color: var(--accent);
  margin-bottom: var(--space-md);
  font-size: 1.125rem;
}

.faq-item p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/*
========================================
  Legal Section
========================================
*/
.legal-section {
  background: var(--bg-card);
  padding: var(--space-2xl);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  margin-bottom: var(--space-2xl);
}

.legal-section h3 {
  font-size: 1.75rem;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.legal-section h4 {
  font-size: 1.25rem;
  margin: var(--space-xl) 0 var(--space-md);
  color: var(--accent);
}

.legal-section p,
.legal-section ul {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.legal-section ul {
  margin-left: var(--space-xl);
}

.legal-section li {
  margin-bottom: var(--space-sm);
}

.legal-section strong {
  color: var(--text-primary);
  font-weight: 600;
}

.date {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-style: italic;
  margin-bottom: var(--space-lg);
}

.disclaimer-box {
  background: rgba(229, 9, 20, 0.1);
  border: 2px solid var(--accent);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  margin: var(--space-xl) 0;
}

.disclaimer-box h3 {
  color: var(--accent);
  margin-bottom: var(--space-md);
}

.disclaimer-box p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.disclaimer-box ul {
  margin-left: var(--space-xl);
  color: var(--text-muted);
}

.disclaimer-box strong {
  color: var(--text-primary);
}

/*
========================================
  Footer
========================================
*/
footer {
  margin-top: var(--space-3xl);
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-section h4 {
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  font-size: 1.125rem;
}

.footer-section p {
  color: var(--text-muted);
  line-height: 1.7;
}

.footer-links {
  list-style: none;
  margin: 0;
}

.footer-links li {
  margin-bottom: var(--space-sm);
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-color);
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: var(--space-sm);
}

.footer-disclaimer {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
}

/*
========================================
  Subtitle
========================================
*/
.subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.125rem;
  margin-bottom: var(--space-2xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: var(--space-lg);
  color: var(--text-primary);
  font-weight: 700;
}

/*
========================================
  Responsive Design
========================================
*/
@media (max-width: 768px) {
  :root {
    --space-3xl: 2.5rem;
    --space-2xl: 2rem;
  }

  header h1 {
    font-size: 2rem;
  }

  .tabs {
    flex-direction: column;
  }

  .tab {
    flex: none;
    text-align: center;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .guide-step {
    flex-direction: column;
    gap: var(--space-lg);
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  #authStatus {
    position: static;
    margin-bottom: var(--space-lg);
  }

  .auth-badge {
    justify-content: center;
  }

  .theme-toggle {
    top: var(--space-md);
    left: var(--space-md);
    width: 40px;
    height: 40px;
  }

  .theme-icon {
    font-size: 1.25rem;
  }
}

/*
========================================
  Loading Animation
========================================
*/
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.loading-skeleton {
  animation: shimmer 2s infinite;
  background: linear-gradient(
    to right,
    var(--bg-secondary) 0%,
    var(--bg-tertiary) 50%,
    var(--bg-secondary) 100%
  );
  background-size: 1000px 100%;
}
