/* ==========================================================================
   MATCH MASTER - CUSTOM STYLING SYSTEM
   ========================================================================== */

/* Design Tokens & Variables */
:root {
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Color Palette */
  --bg-main: #0b0f17;
  --bg-card: rgba(22, 29, 43, 0.65);
  --bg-card-hover: rgba(28, 37, 54, 0.85);
  --bg-input: rgba(13, 18, 27, 0.8);
  
  --color-primary: #ff4d79;       /* Dating Pink */
  --color-primary-glow: rgba(255, 77, 121, 0.4);
  --color-primary-dark: #e03b64;
  
  --color-secondary: #6366f1;     /* AI Indigo */
  --color-secondary-glow: rgba(99, 102, 241, 0.4);
  
  --color-accent: #f59e0b;        /* Warm Gold */
  
  --text-primary: #f8fafc;
  --text-muted: #94a3b8;
  --text-dark: #0f172a;
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(255, 77, 121, 0.6);
  
  --shadow-sm: 0 2px 8px -1px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
  --shadow-glow-pink: 0 0 20px 0 var(--color-primary-glow);
  --shadow-glow-indigo: 0 0 20px 0 var(--color-secondary-glow);
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(255, 77, 121, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(99, 102, 241, 0.08) 0%, transparent 40%);
  background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* App Container Layout */
.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Navigation */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo .heart-icon {
  font-size: 28px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 8px var(--color-primary-glow));
}

.logo h1 {
  font-size: 24px;
  font-weight: 800;
  background: linear-gradient(to right, #ffffff, #e2e8f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.app-navbar {
  display: flex;
  gap: 10px;
}

.nav-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.nav-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
}

.nav-btn.active {
  color: var(--text-primary);
  background: rgba(255, 77, 121, 0.1);
  border-color: rgba(255, 77, 121, 0.2);
  box-shadow: 0 4px 15px -3px rgba(255, 77, 121, 0.15);
}

/* Main Content Area */
.app-content {
  flex: 1;
  padding: 40px 0;
}

/* Section Switching Logic */
.view-section {
  display: none;
  animation: fadeIn var(--transition-normal);
}

.view-section.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Reusable Card Panel (Glassmorphism) */
.card-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-md);
}

/* Buttons */
.btn {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: white;
  box-shadow: var(--shadow-glow-pink);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px 0 rgba(255, 77, 121, 0.6);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-color);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
  color: #f87171;
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.3);
  border-color: rgba(239, 68, 68, 0.5);
  color: white;
}

.btn-large {
  padding: 16px 32px;
  font-size: 16px;
}

.btn-icon-only {
  padding: 12px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.hidden {
  display: none !important;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 77, 121, 0.15);
  color: var(--color-primary);
  border: 1px solid rgba(255, 77, 121, 0.25);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

/* Form Controls */
.form-group {
  margin-bottom: 24px;
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 768px) {
  .form-group-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--text-primary);
}

input[type="text"],
input[type="number"],
input[type="url"],
input[type="password"],
select,
textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
  transition: all var(--transition-fast);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(255, 77, 121, 0.15);
}

textarea {
  resize: vertical;
}

.form-help {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* Password Toggle Wrapper */
.input-password-wrapper {
  position: relative;
}

.input-password-wrapper input {
  padding-right: 50px;
}

.btn-toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px;
  font-size: 16px;
}
.btn-toggle-password:hover {
  color: var(--text-primary);
}

/* ==========================================================================
   LANDING VIEW SPECIFICS
   ========================================================================== */
.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 50px;
  padding: 40px 0;
}

@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-visual {
    display: flex;
    justify-content: center;
  }
}

.hero-text h2 {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.15;
  margin-bottom: 20px;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 30%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text p {
  color: var(--text-muted);
  font-size: 18px;
  margin-bottom: 35px;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.hero-visual {
  perspective: 1000px;
}

.preview-card {
  width: 340px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  transform: rotateY(-10deg) rotateX(10deg);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(99, 102, 241, 0.1);
  transition: all var(--transition-normal);
  animation: floatCard 6s ease-in-out infinite alternate;
}

@keyframes floatCard {
  0% { transform: rotateY(-10deg) rotateX(5deg) translateY(0px); }
  100% { transform: rotateY(-5deg) rotateX(12deg) translateY(-12px); }
}

.preview-card:hover {
  transform: rotateY(0deg) rotateX(0deg) scale(1.05);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.user-avatar-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: white;
}

.preview-name {
  font-size: 16px;
  font-weight: 600;
}

.preview-meta {
  font-size: 12px;
  color: var(--color-primary);
}

.skeleton-line {
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  margin-bottom: 12px;
}

.skeleton-tags {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}

.skeleton-tag {
  height: 24px;
  width: 60px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
}

/* Features Section */
.features-section {
  margin-top: 100px;
}

.section-title {
  text-align: center;
  font-size: 32px;
  margin-bottom: 40px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 30px;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.feature-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-5px);
  border-color: rgba(99, 102, 241, 0.3);
}

.feature-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.1);
  color: var(--color-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
}

.feature-card h4 {
  font-size: 18px;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 14px;
}

/* ==========================================================================
   WIZARD VIEW SPECIFICS
   ========================================================================== */
.wizard-container {
  max-width: 800px;
  margin: 0 auto;
}

.wizard-steps-indicator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}

.step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid var(--border-color);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  transition: all var(--transition-fast);
}

.step-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all var(--transition-fast);
}

.step-line {
  height: 2px;
  background: var(--border-color);
  flex: 1;
  margin-bottom: 24px;
}

.step-indicator.active .step-num {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
  box-shadow: var(--shadow-glow-pink);
}

.step-indicator.active .step-label {
  color: var(--text-primary);
}

.step-indicator.completed .step-num {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
  color: white;
}

.wizard-step-pane {
  display: none;
}

.wizard-step-pane.active {
  display: block;
  animation: paneSlide var(--transition-normal);
}

@keyframes paneSlide {
  from { opacity: 0; transform: translateX(15px); }
  to { opacity: 1; transform: translateX(0); }
}

.wizard-step-pane h3 {
  font-size: 24px;
  margin-bottom: 8px;
}

.step-desc {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 30px;
}

.wizard-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

/* Radio Tiles for Quiz */
.radio-tile-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 15px;
  margin-top: 10px;
}

.radio-tile {
  position: relative;
  cursor: pointer;
}

.radio-tile input {
  position: absolute;
  opacity: 0;
}

.radio-tile .tile-content {
  background: rgba(255, 255, 255, 0.02);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  transition: all var(--transition-fast);
}

.radio-tile .tile-content i {
  font-size: 26px;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.radio-tile .tile-content span {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.radio-tile input:checked + .tile-content {
  background: rgba(255, 77, 121, 0.08);
  border-color: var(--color-primary);
  box-shadow: 0 0 15px rgba(255, 77, 121, 0.2);
}

.radio-tile input:checked + .tile-content i {
  color: var(--color-primary);
  transform: scale(1.1);
}

.radio-tile input:checked + .tile-content span {
  color: var(--text-primary);
}

.radio-tile:hover .tile-content {
  border-color: rgba(255, 77, 121, 0.3);
  transform: translateY(-2px);
}

/* ==========================================================================
   DASHBOARD & MOOD ACCOUNTS SPECIFICS
   ========================================================================== */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

@media (max-width: 576px) {
  .dashboard-header {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }
}

.user-summary {
  display: flex;
  align-items: center;
  gap: 16px;
}

.user-avatar-main {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--color-primary);
}

.user-details h3 {
  font-size: 20px;
}

.user-details p {
  font-size: 14px;
  color: var(--text-muted);
}

.dashboard-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 30px;
}

@media (max-width: 992px) {
  .dashboard-layout {
    grid-template-columns: 1fr;
  }
}

.mood-selector-pane h4 {
  font-size: 18px;
  margin-bottom: 6px;
}

.mood-selector-pane .pane-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 25px;
}

.mood-buttons-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mood-tab-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-fast);
}

.mood-tab-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

.mood-tab-btn.active {
  background: rgba(99, 102, 241, 0.08);
  border-color: var(--color-secondary);
  box-shadow: 0 4px 15px -3px rgba(99, 102, 241, 0.15);
}

.mood-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: white;
}

.mood-icon.romantic { background: linear-gradient(135deg, #f43f5e, #ec4899); }
.mood-icon.adventurer { background: linear-gradient(135deg, #10b981, #059669); }
.mood-icon.casual { background: linear-gradient(135deg, #f59e0b, #d97706); }
.mood-icon.professional { background: linear-gradient(135deg, #3b82f6, #2563eb); }

.mood-info h5 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.mood-info p {
  font-size: 12px;
  color: var(--text-muted);
}

.mood-content-pane {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* Warnings */
.warning-alert {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: #fbbf24;
  padding: 16px;
  border-radius: var(--radius-md);
  display: flex;
  gap: 14px;
  font-size: 14px;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.warning-alert .alert-icon {
  font-size: 20px;
}

.story-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.badge-mood-tag {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.story-text-container {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 24px;
  min-height: 180px;
  display: flex;
  align-items: center;
  margin-bottom: 24px;
}

.story-placeholder {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-muted);
  text-align: center;
}

.story-placeholder i {
  font-size: 32px;
  color: rgba(255, 255, 255, 0.1);
}

.story-content {
  font-size: 16px;
  line-height: 1.7;
}

.hashtags-container {
  margin-bottom: 24px;
}

.hashtags-container h5,
.icebreakers-container h5 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tags-list .tag {
  background: rgba(255, 77, 121, 0.08);
  color: var(--color-primary);
  border: 1px solid rgba(255, 77, 121, 0.2);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
}

.icebreaker-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.icebreaker-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 16px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.icebreaker-card i {
  color: var(--color-secondary);
  font-size: 18px;
  margin-top: 3px;
}

.icebreaker-card p {
  font-size: 14px;
  font-weight: 500;
}

.story-action-bar {
  display: flex;
  gap: 12px;
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
  align-items: center;
  flex-wrap: wrap;
}

.social-share-group {
  display: flex;
  gap: 6px;
}

.story-action-bar #btn-regenerate-single {
  margin-left: auto;
}

@media (max-width: 576px) {
  .story-action-bar #btn-regenerate-single {
    margin-left: 0;
    width: 100%;
  }
}

/* AI Refinement / Chat Panel */
.refinement-panel h4 {
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.refinement-panel h4 i {
  color: var(--color-secondary);
}

.refinement-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.refinement-chat-container {
  display: flex;
  flex-direction: column;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.refinement-chat-history {
  padding: 16px;
  max-height: 180px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-bubble {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  line-height: 1.5;
}

.system-bubble {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border-bottom-left-radius: 2px;
  align-self: flex-start;
}

.user-bubble {
  background: var(--color-secondary);
  color: white;
  border-bottom-right-radius: 2px;
  align-self: flex-end;
  box-shadow: 0 4px 10px rgba(99, 102, 241, 0.2);
}

.refinement-input-row {
  display: flex;
  border-top: 1px solid var(--border-color);
}

.refinement-input-row input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 14px;
  border-radius: 0;
}
.refinement-input-row input:focus {
  box-shadow: none;
}

.refinement-input-row button {
  background: transparent;
  border: none;
  color: var(--color-secondary);
  padding: 0 20px;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.refinement-input-row button:hover {
  color: var(--color-primary);
}

/* ==========================================================================
   SETTINGS VIEW SPECIFICS
   ========================================================================== */
.settings-container {
  max-width: 700px;
  margin: 0 auto;
}

.settings-container h2 {
  font-size: 24px;
  margin-bottom: 6px;
}

.settings-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.settings-actions {
  display: flex;
  gap: 12px;
  margin-top: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border-color);
}

.danger-zone {
  margin-top: 30px;
}

.danger-zone h4 {
  color: #f87171;
  font-size: 16px;
  margin-bottom: 4px;
}

.danger-zone p {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 16px;
}

/* ==========================================================================
   FOOTER STATUS BAR
   ========================================================================== */
.app-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  margin-top: 40px;
  border-top: 1px solid var(--border-color);
  font-size: 12px;
  color: var(--text-muted);
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.status-dot.online {
  background-color: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.status-dot.offline {
  background-color: #f59e0b;
  box-shadow: 0 0 8px #f59e0b;
}

.status-dot.error {
  background-color: #ef4444;
  box-shadow: 0 0 8px #ef4444;
}

/* ==========================================================================
   LOADING OVERLAY (DURING GENERATION)
   ========================================================================== */
.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(11, 15, 23, 0.9);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn var(--transition-fast);
}

.loader-content {
  text-align: center;
  max-width: 480px;
  padding: 30px;
}

.spinner-glow {
  font-size: 48px;
  color: var(--color-primary);
  filter: drop-shadow(0 0 15px var(--color-primary-glow));
  margin-bottom: 24px;
}

.loader-content h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.loader-content p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 24px;
}

.loader-progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  overflow: hidden;
}

.loader-progress-fill {
  height: 100%;
  background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
  transition: width 0.3s ease;
  box-shadow: var(--shadow-glow-pink);
}

/* ==========================================================================
   TOAST NOTIFICATIONS
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 2000;
}

.toast {
  background: rgba(22, 29, 43, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  color: white;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  min-width: 280px;
  max-width: 400px;
  animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes toastIn {
  from { transform: translateX(100px) scale(0.9); opacity: 0; }
  to { transform: translateX(0) scale(1); opacity: 1; }
}

.toast.success {
  border-left: 4px solid #10b981;
}

.toast.success i {
  color: #10b981;
}

.toast.info {
  border-left: 4px solid var(--color-secondary);
}

.toast.info i {
  color: var(--color-secondary);
}

.toast.error {
  border-left: 4px solid #ef4444;
}

.toast.error i {
  color: #ef4444;
}
