/* ========================================
   LoanAI - Claude-Inspired Dark Theme
   Warm, Intelligent, Editorial
   ======================================== */

/* CSS Custom Properties - Dark Warm Palette */
:root {
  /* Typography - Elegant Pairing */
  --font-heading: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-mono: 'SF Mono', Monaco, 'Cascadia Code', monospace;

  /* Font Sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.75rem;

  /* Font Weights */
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;

  /* Colors - Vibrant Slate Theme (Inspiration: Modern EdTech/SaaS) */
  --color-background: #0f172a;
  /* Deep Slate 900 */
  --color-surface: #1e293b;
  /* Slate 800 */
  --color-surface-elevated: #334155;
  /* Slate 700 */

  --color-text-primary: #f8fafc;
  /* Slate 50 */
  --color-text-secondary: #cbd5e1;
  /* Slate 300 */
  --color-text-muted: #94a3b8;
  /* Slate 400 */

  /* Accent - Clean Professional Blue */
  --color-accent: #3b82f6;
  /* Blue 500 */
  --color-accent-hover: #2563eb;
  /* Blue 600 */
  --color-accent-secondary: #1d4ed8;
  /* Blue 700 */

  --color-accent-light: rgba(59, 130, 246, 0.15);

  /* Semantic Colors */
  --color-success: #10b981;
  /* Emerald 500 */
  --color-success-light: rgba(16, 185, 129, 0.15);
  --color-error: #ef4444;
  /* Red 500 */
  --color-error-light: rgba(239, 68, 68, 0.15);
  --color-warning: #f59e0b;
  /* Amber 500 */
  --color-warning-light: rgba(245, 158, 11, 0.15);

  /* Borders & Dividers */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.12);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.15);
  --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.15);

  /* Spacing System */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;

  /* Border Radius - Softer, friendlier */
  --radius-sm: 0.5rem;
  /* 8px */
  --radius-md: 0.75rem;
  /* 12px */
  --radius-lg: 1rem;
  /* 16px */
  --radius-xl: 1.5rem;
  /* 24px */
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Z-index */
  --z-dropdown: 100;
  --z-modal: 200;
  --z-tooltip: 300;
  --z-onboarding: 400;
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--font-normal);
  line-height: 1.65;
  color: var(--color-text-primary);
  background-color: var(--color-background);
  min-height: 100vh;
}

/* Typography - Italic Serif Headings (Claude Style) */
h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: var(--font-normal);
  font-style: italic;
  line-height: 1.2;
  color: var(--color-text-primary);
  letter-spacing: 0.01em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-medium);
  font-style: italic;
  line-height: 1.3;
  color: var(--color-text-primary);
}

h1 {
  font-size: var(--text-4xl);
}

h2 {
  font-size: var(--text-3xl);
}

h3 {
  font-size: var(--text-2xl);
}

h4 {
  font-size: var(--text-xl);
}

h5 {
  font-size: var(--text-lg);
}

h6 {
  font-size: var(--text-base);
}

p {
  margin-bottom: var(--space-4);
  color: var(--color-text-secondary);
  max-width: 65ch;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent-hover);
}

/* Layout */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.app-wrapper {
  display: flex;
  min-height: 100vh;
}

/* Sidebar Navigation */
.sidebar {
  width: 260px;
  background: var(--color-surface);
  border-right: none;
  padding: var(--space-8) var(--space-4);
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

.sidebar-logo {
  padding: 0 var(--space-6);
  margin-bottom: var(--space-10);
}

.sidebar-logo h1 {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--font-medium);
  font-style: italic;
  color: var(--color-text-primary);
}

.sidebar-logo span {
  font-size: var(--text-xs);
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: var(--font-medium);
}

.nav-menu {
  list-style: none;
  flex: 1;
}

.nav-item {
  margin-bottom: var(--space-1);
}

.nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  transition: all var(--transition-base);
  border-radius: var(--radius-lg);
  border-left: none;
}

.nav-link:hover {
  color: var(--color-text-primary);
  background: var(--color-surface-elevated);
  transform: translateX(4px);
}

.nav-link.active {
  color: #fff;
  background: var(--color-accent);
  border-left-color: transparent;
  box-shadow: 0 2px 4px var(--color-accent-light);
}

.nav-link svg {
  width: 18px;
  height: 18px;
  opacity: 0.75;
}

.nav-link.active svg {
  opacity: 1;
}

/* Main Content */
.main-content {
  flex: 1;
  padding: var(--space-10) var(--space-12);
  overflow-y: auto;
  background: var(--color-background);
}

.page-header {
  margin-bottom: var(--space-8);
}

.page-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-4);
}

.page-actions {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.page-title {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: var(--font-normal);
  font-style: italic;
  margin-bottom: var(--space-2);
  color: var(--color-text-primary);
}

.page-subtitle {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  margin-bottom: 0;
}

/* Cards */
.card {
  background: var(--color-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-5);
}

.card-title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--font-medium);
  font-style: italic;
  color: var(--color-text-primary);
}

/* Forms */
.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2);
}

.form-input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  font-family: inherit;
  color: var(--color-text-primary);
  background: var(--color-surface-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-light);
}

.form-input::placeholder {
  color: var(--color-text-muted);
}

.form-hint {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-2);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  font-family: inherit;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-primary {
  background: var(--color-accent);
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
}

.btn-secondary {
  background: var(--color-surface-elevated);
  color: var(--color-text-secondary);
  border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
  background: var(--color-surface);
  color: var(--color-text-primary);
}

.btn-outline {
  background: transparent;
  color: var(--color-text-secondary);
  border: 1px solid var(--border-strong);
}

.btn-outline:hover {
  background: var(--color-surface-elevated);
  border-color: var(--color-text-muted);
  color: var(--color-text-primary);
}

.btn-success {
  background: var(--color-success);
  color: #1f1f1f;
}

.btn-success:hover {
  filter: brightness(0.9);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}

.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
}

.btn-icon {
  padding: var(--space-3);
}

/* File Upload */
.file-upload {
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  padding: var(--space-10);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-base);
  background: var(--color-surface);
}

.file-upload:hover {
  border-color: var(--color-accent);
  background: var(--color-accent-light);
}

.file-upload.dragover {
  border-color: var(--color-accent);
  background: var(--color-accent-light);
}

.file-upload-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto var(--space-4);
  color: var(--color-text-muted);
}

.file-upload-text {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2);
}

.file-upload-hint {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.file-list {
  margin-top: var(--space-4);
}

.file-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-2);
}

.file-item-name {
  flex: 1;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.file-item-remove {
  color: var(--color-text-muted);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.file-item-remove:hover {
  color: var(--color-error);
}

/* Status Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  border-radius: var(--radius-full);
}

.badge-success {
  background: var(--color-success-light);
  color: var(--color-success);
}

.badge-error {
  background: var(--color-error-light);
  color: var(--color-error);
}

.badge-warning {
  background: var(--color-warning-light);
  color: var(--color-warning);
}

.badge-neutral {
  background: var(--color-surface-elevated);
  color: var(--color-text-secondary);
}

/* Stats Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-10);
}

.stat-card {
  background: var(--color-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

.stat-value {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: var(--font-medium);
  font-style: italic;
  color: var(--color-text-primary);
}

.stat-card.success .stat-value {
  color: var(--color-success);
}

.stat-card.error .stat-value {
  color: var(--color-error);
}

/* Table */
.table-wrapper {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.table th {
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.table td {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.table tr:hover td {
  background: var(--color-surface);
}

/* Decision Result Enhanced */
.decision-result {
  max-width: 800px;
  margin: var(--space-8) auto;
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  background: var(--color-surface);
  border: 1px solid var(--border-subtle);
  animation: fadeIn 0.4s ease-out;
  text-align: left;
}

.decision-result.approved {
  border-left: 4px solid var(--color-success);
}

.decision-result.rejected {
  border-left: 4px solid var(--color-error);
}

.decision-header {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--border-subtle);
}

.decision-icon {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

.decision-header-text h2 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-1);
}

.decision-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.decision-reason {
  font-size: var(--text-lg);
  color: var(--color-text-primary);
  line-height: 1.5;
  max-width: 100%;
}

.decision-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-4);
  background: var(--color-surface-elevated);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
}

.decision-stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.decision-stat .label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.decision-stat .value {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-style: italic;
  color: var(--color-text-primary);
}

.decision-details {
  background: rgba(255, 255, 255, 0.03);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
}

.decision-details h4 {
  margin-bottom: var(--space-3);
  color: var(--color-text-secondary);
}

.decision-details p {
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--color-text-muted);
  margin-bottom: 0;
}

.decision-conditions {
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--space-6);
}

.decision-conditions h4 {
  margin-bottom: var(--space-3);
  color: var(--color-warning);
}

.decision-conditions ul {
  list-style-position: inside;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.decision-conditions li {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.decision-actions {
  display: flex;
  gap: var(--space-4);
  padding-top: var(--space-4);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Loading Spinner */
.spinner {
  width: 24px;
  height: 24px;
  border: 2px solid var(--border-strong);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 1, 10, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--space-4);
  z-index: var(--z-modal);
}

.loading-text {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
}

/* Onboarding/Tutorial */
.onboarding-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
  z-index: var(--z-onboarding);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
}

.onboarding-overlay.active {
  opacity: 1;
  visibility: visible;
}

.onboarding-spotlight {
  position: absolute;
  border-radius: var(--radius-lg);
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.6);
  transition: all 0.3s ease-out;
  pointer-events: none;
}

.onboarding-tooltip {
  position: absolute;
  background: var(--color-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  max-width: 320px;
  box-shadow: var(--shadow-md);
  z-index: calc(var(--z-onboarding) + 1);
  animation: fadeSlideIn 0.3s ease-out;
}

.onboarding-arrow {
  position: absolute;
  width: 0;
  height: 0;
  border: 8px solid transparent;
}

.onboarding-arrow.top {
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-bottom-color: var(--color-surface);
}

.onboarding-arrow.bottom {
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-top-color: var(--color-surface);
}

.onboarding-arrow.left {
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  border-right-color: var(--color-surface);
}

.onboarding-arrow.right {
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border-left-color: var(--color-surface);
}

.onboarding-step-indicator {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.onboarding-step-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border-strong);
  transition: background var(--transition-fast);
}

.onboarding-step-dot.active {
  background: var(--color-accent);
}

.onboarding-step-dot.completed {
  background: var(--color-success);
}

.onboarding-title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--font-medium);
  font-style: italic;
  margin-bottom: var(--space-2);
  color: var(--color-text-primary);
}

.onboarding-description {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-5);
  line-height: 1.6;
}

.onboarding-actions {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

@media (max-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* Utility Classes */
.hidden {
  display: none !important;
}

.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-2 {
  gap: var(--space-2);
}

.gap-4 {
  gap: var(--space-4);
}

.mt-4 {
  margin-top: var(--space-4);
}

.mt-6 {
  margin-top: var(--space-6);
}

.mb-4 {
  margin-bottom: var(--space-4);
}

.mb-6 {
  margin-bottom: var(--space-6);
}

.text-center {
  text-align: center;
}

.text-sm {
  font-size: var(--text-sm);
}

.text-gray {
  color: var(--color-text-muted);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Page Transitions */
.view {
  animation: fadeIn 0.2s ease-out;
}

/* Responsive */
@media (max-width: 900px) {
  .sidebar {
    width: 56px;
    padding: var(--space-4) 0;
  }

  .sidebar-logo h1,
  .sidebar-logo span,
  .nav-link span {
    display: none;
  }

  .nav-link {
    justify-content: center;
    padding: var(--space-3);
  }

  .main-content {
    padding: var(--space-6);
  }
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-background);
}

::-webkit-scrollbar-thumb {
  background: var(--color-surface-elevated);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-muted);
}

/* Selection */
::selection {
  background: var(--color-accent-light);
  color: var(--color-text-primary);
}

/* ========================================
   Login Screen Styles
   ======================================== */

.login-screen {
  display: flex;
  min-height: 100vh;
  background: var(--color-background);
}

.login-screen.hidden {
  display: none;
}

.login-screen.fade-out {
  animation: fadeOutScale 0.4s ease forwards;
}

/* Left Side - 3D Solar Orbit Scene */
.login-left {
  flex: 1;
  background: linear-gradient(135deg, #05010a 0%, #0c0214 50%, #05010a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Hide the old decoration container - we use Three.js now */
.login-decoration {
  display: none;
}

/* Legacy floating shapes - hidden for 3D scene */
.floating-shape {
  display: none;
}

.shape-1,
.shape-2,
.shape-3,
.shape-4 {
  display: none;
}

/* Legacy Brand Mark - hidden for 3D scene */
.brand-mark {
  display: none;
}

.brand-stripe {
  display: none;
}

/* Right Side - Form */
.login-right {
  width: 480px;
  background: var(--color-background);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
}

.login-container {
  width: 100%;
  max-width: 360px;
  animation: slideInRight 0.5s ease;
}

.login-header {
  margin-bottom: var(--space-8);
}

.login-logo {
  width: 40px;
  height: 40px;
  color: var(--color-text-primary);
  margin-bottom: var(--space-6);
}

.login-title {
  font-family: var(--font-body);
  font-size: var(--text-2xl);
  font-weight: var(--font-semibold);
  font-style: normal;
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
}

.login-subtitle {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: 0;
}

/* Login Form */
.login-form {
  margin-bottom: var(--space-6);
}

.form-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-2);
}

.form-label-row .form-label {
  margin-bottom: 0;
}

.form-link {
  font-size: var(--text-sm);
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.form-link:hover {
  color: var(--color-accent-hover);
}

.password-input-wrapper {
  position: relative;
}

.password-input-wrapper .form-input {
  padding-right: 48px;
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast);
}

.password-toggle:hover {
  color: var(--color-text-primary);
}

.btn-full {
  width: 100%;
}

/* Login Divider */
.login-divider {
  display: flex;
  align-items: center;
  margin: var(--space-6) 0;
  gap: var(--space-4);
}

.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}

.login-divider span {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* Social Buttons */
.social-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-social:hover {
  background: var(--color-surface-elevated);
  border-color: var(--color-text-muted);
}

.btn-social.loading {
  pointer-events: none;
  opacity: 0.7;
}

.btn-social.loading span {
  visibility: hidden;
}

.btn-social.loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid var(--border-strong);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Login Footer */
.login-footer {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-8);
}

/* ========================================
   Centered Google Button with Animations
   ======================================== */

.social-buttons-centered {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--space-6) 0;
}

.google-btn-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Removed glow effect for clean UI */
.google-btn-glow {
  display: none;
}

/* Removed animated rings for clean UI */
.google-btn-rings,
.ring {
  display: none;
}

/* Main Google button - Clean minimal style */
.btn-google-main {
  position: relative;
  padding: var(--space-4) var(--space-8) !important;
  font-size: var(--text-base) !important;
  font-weight: var(--font-medium) !important;
  background: var(--color-surface) !important;
  border: 1px solid var(--border-strong) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: none;
  transition: all 0.2s ease !important;
  z-index: 1;
}

.btn-google-main:hover {
  background: var(--color-surface-elevated) !important;
  border-color: var(--color-text-muted) !important;
}

.btn-google-main:active {
  transform: scale(0.98);
}

/* Removed unnecessary animations */

/* Login Animations */
@keyframes floatRotate {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  25% {
    transform: translateY(-20px) rotate(5deg);
  }

  50% {
    transform: translateY(10px) rotate(-3deg);
  }

  75% {
    transform: translateY(-15px) rotate(3deg);
  }
}

@keyframes brandFloat {

  0%,
  100% {
    transform: rotate(-15deg) scale(1);
  }

  50% {
    transform: rotate(-10deg) scale(1.05);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeOutScale {
  from {
    opacity: 1;
    transform: scale(1);
  }

  to {
    opacity: 0;
    transform: scale(0.95);
  }
}

/* Responsive Login */
@media (max-width: 900px) {
  .login-left {
    display: none;
  }

  .login-right {
    width: 100%;
  }
}

/* ========================================
   Account Management Styles
   ======================================== */

.sidebar-account {
  margin-top: auto;
  padding: var(--space-4) var(--space-4);
  border-top: 1px solid var(--border-subtle);
  position: relative;
}

.account-trigger {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.account-trigger:hover {
  background: var(--color-surface-elevated);
}

.account-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.account-avatar span {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: #ffffff;
}

.account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.account-name {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-provider {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.account-chevron {
  color: var(--color-text-muted);
  transition: transform var(--transition-fast);
}

.account-menu.active+.account-trigger .account-chevron,
.account-trigger:has(+ .account-menu.active) .account-chevron {
  transform: rotate(180deg);
}

/* Account Dropdown Menu */
.account-menu {
  position: absolute;
  bottom: calc(100% + 8px);
  left: var(--space-4);
  right: var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: var(--space-2);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition-fast);
  z-index: var(--z-dropdown);
}

.account-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.account-menu-header {
  padding: var(--space-2) var(--space-3);
}

.account-email {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  word-break: break-all;
}

.account-menu-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: var(--space-2) 0;
}

.account-menu-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  padding: var(--space-3);
  background: none;
  border: none;
  border-radius: var(--radius-md);
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.account-menu-item:hover {
  background: var(--color-surface-elevated);
  color: var(--color-text-primary);
}

.account-menu-item svg {
  opacity: 0.7;
}

/* Toast Notifications */
.toast {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  z-index: var(--z-tooltip);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-error {
  border-color: var(--color-error);
}

.toast-error svg {
  color: var(--color-error);
}

.toast span {
  font-size: var(--text-sm);
  color: var(--color-text-primary);
}

/* Responsive Account */
@media (max-width: 900px) {

  .account-info,
  .account-chevron {
    display: none;
  }

  .account-trigger {
    justify-content: center;
    padding: var(--space-2);
  }

  .account-menu {
    left: 50%;
    right: auto;
    transform: translateX(-50%) translateY(8px);
    min-width: 200px;
  }

  .account-menu.active {
    transform: translateX(-50%) translateY(0);
  }
}

/* ========================================
   Interactive Rock Mechanics v2
   ======================================== */

/* Keep brand mark centered - NOT affected by cursor */
.brand-mark {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) rotate(-15deg) !important;
  z-index: 5;
  pointer-events: none;
}

/* Interactive rocks */
.interactive-rock {
  cursor: pointer;
  position: absolute;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  transition: filter 0.3s ease;
  will-change: transform;
}

.interactive-rock:hover {
  filter: brightness(1.1);
}

.interactive-rock.cracked {
  opacity: 0;
  pointer-events: none;
}

/* Glow ring on hover */
.rock-glow-ring {
  position: absolute;
  inset: -10px;
  border-radius: inherit;
  border: 2px solid transparent;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}

.interactive-rock.hovered .rock-glow-ring {
  border-color: rgba(224, 120, 86, 0.4);
  opacity: 1;
  box-shadow: 0 0 30px rgba(224, 120, 86, 0.3);
}

.interactive-rock.holding .rock-glow-ring {
  border-color: rgba(224, 120, 86, 0.8);
  box-shadow: 0 0 50px rgba(224, 120, 86, 0.5);
  animation: glowPulse 0.5s ease infinite;
}

@keyframes glowPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
}

/* Hold Hint */
.rock-hold-hint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
  z-index: 10;
}

.interactive-rock.hovered:not(.holding):not(.cracked) .rock-hold-hint {
  opacity: 1;
}

.hold-key-container {
  position: relative;
  width: 48px;
  height: 48px;
}

.hold-key {
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  font-family: var(--font-body);
  position: relative;
  overflow: hidden;
}

.hold-key-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 0%;
  background: linear-gradient(to top, var(--color-accent), #ff8a9b);
  transition: height 0.05s linear;
  z-index: -1;
}

.rock-hold-hint span {
  font-size: 11px;
  font-weight: 500;
  color: #fff;
  background: rgba(0, 0, 0, 0.9);
  padding: 5px 14px;
  border-radius: 20px;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Cracking intensity stages */
.interactive-rock.cracking-1 {
  animation: shake1 0.15s infinite;
}

.interactive-rock.cracking-2 {
  animation: shake2 0.12s infinite;
}

.interactive-rock.cracking-3 {
  animation: shake3 0.1s infinite;
  filter: brightness(1.2) !important;
}

.interactive-rock.cracking-4 {
  animation: shake4 0.08s infinite;
  filter: brightness(1.4) saturate(1.2) !important;
}

@keyframes shake1 {

  0%,
  100% {
    transform: translate(var(--tx, 0), var(--ty, 0));
  }

  50% {
    transform: translate(calc(var(--tx, 0) + 1px), calc(var(--ty, 0) - 1px));
  }
}

@keyframes shake2 {

  0%,
  100% {
    transform: translate(var(--tx, 0), var(--ty, 0));
  }

  25% {
    transform: translate(calc(var(--tx, 0) + 2px), calc(var(--ty, 0) - 1px));
  }

  75% {
    transform: translate(calc(var(--tx, 0) - 2px), calc(var(--ty, 0) + 1px));
  }
}

@keyframes shake3 {

  0%,
  100% {
    transform: translate(var(--tx, 0), var(--ty, 0)) rotate(0deg);
  }

  25% {
    transform: translate(calc(var(--tx, 0) + 3px), calc(var(--ty, 0) - 2px)) rotate(0.5deg);
  }

  50% {
    transform: translate(calc(var(--tx, 0) - 2px), calc(var(--ty, 0) + 3px)) rotate(-0.5deg);
  }

  75% {
    transform: translate(calc(var(--tx, 0) + 2px), calc(var(--ty, 0) + 1px)) rotate(0.3deg);
  }
}

@keyframes shake4 {

  0%,
  100% {
    transform: translate(var(--tx, 0), var(--ty, 0)) rotate(0deg) scale(1);
  }

  25% {
    transform: translate(calc(var(--tx, 0) + 4px), calc(var(--ty, 0) - 3px)) rotate(1deg) scale(1.02);
  }

  50% {
    transform: translate(calc(var(--tx, 0) - 3px), calc(var(--ty, 0) + 4px)) rotate(-1deg) scale(0.98);
  }

  75% {
    transform: translate(calc(var(--tx, 0) + 3px), calc(var(--ty, 0) + 2px)) rotate(0.5deg) scale(1.01);
  }
}

/* Crack pieces container */
.rock-crack-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
}

.interactive-rock.exploding .rock-crack-container {
  opacity: 1;
}

.crack-piece {
  position: absolute;
  width: 40%;
  height: 40%;
  background: inherit;
  border-radius: inherit;
}

.interactive-rock.exploding .crack-piece {
  animation: pieceFly 0.5s ease-out forwards;
}

.piece-1 {
  top: 0;
  left: 0;
  --fly-x: -60px;
  --fly-y: -50px;
  --rot: -45deg;
}

.piece-2 {
  top: 0;
  right: 0;
  --fly-x: 60px;
  --fly-y: -50px;
  --rot: 45deg;
}

.piece-3 {
  top: 30%;
  left: 10%;
  --fly-x: -70px;
  --fly-y: 20px;
  --rot: -30deg;
}

.piece-4 {
  top: 30%;
  right: 10%;
  --fly-x: 70px;
  --fly-y: 20px;
  --rot: 30deg;
}

.piece-5 {
  bottom: 0;
  left: 20%;
  --fly-x: -40px;
  --fly-y: 60px;
  --rot: -60deg;
}

.piece-6 {
  bottom: 0;
  right: 20%;
  --fly-x: 40px;
  --fly-y: 60px;
  --rot: 60deg;
}

@keyframes pieceFly {
  0% {
    transform: translate(0, 0) rotate(0deg) scale(1);
    opacity: 1;
  }

  100% {
    transform: translate(var(--fly-x), var(--fly-y)) rotate(var(--rot)) scale(0.3);
    opacity: 0;
  }
}

/* Explosion effects */
.explosion-ring {
  position: absolute;
  width: 10px;
  height: 10px;
  border: 3px solid var(--color-accent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: ringExpand 0.6s ease-out forwards;
  pointer-events: none;
  z-index: 100;
}

@keyframes ringExpand {
  0% {
    width: 10px;
    height: 10px;
    opacity: 1;
    border-width: 4px;
  }

  100% {
    width: 300px;
    height: 300px;
    opacity: 0;
    border-width: 1px;
  }
}

.explosion-flash {
  position: absolute;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, rgba(224, 120, 86, 0.5) 40%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: flashPop 0.4s ease-out forwards;
  pointer-events: none;
  z-index: 99;
}

@keyframes flashPop {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 1;
  }

  50% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0.8;
  }

  100% {
    transform: translate(-50%, -50%) scale(2);
    opacity: 0;
  }
}

.debris-particle {
  position: absolute;
  width: var(--size, 8px);
  height: var(--size, 8px);
  background: #4a4641;
  border-radius: 2px;
  transform: translate(-50%, -50%);
  animation: debrisFly 0.8s ease-out forwards;
  animation-delay: var(--delay, 0s);
  pointer-events: none;
  z-index: 98;
}

@keyframes debrisFly {
  0% {
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
    opacity: 1;
  }

  100% {
    transform: translate(calc(-50% + cos(var(--angle)) * var(--distance)),
        calc(-50% + sin(var(--angle)) * var(--distance))) rotate(var(--rotation)) scale(0);
    opacity: 0;
  }
}

/* Reveal text - positioned in container */
.rock-reveal-text {
  position: absolute;
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
  z-index: 50;
  text-align: center;
}

.rock-reveal-text.visible {
  opacity: 1;
  animation: messageReveal 1s ease forwards;
}

.reveal-glow {
  position: absolute;
  inset: -30px;
  background: radial-gradient(circle, rgba(224, 120, 86, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  animation: glowBreathe 2s ease-in-out infinite;
}

@keyframes glowBreathe {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }

  50% {
    transform: scale(1.2);
    opacity: 0.8;
  }
}

.reveal-message {
  position: relative;
  font-family: var(--font-heading);
  font-size: 28px;
  font-style: italic;
  font-weight: 500;
  color: var(--color-accent);
  text-shadow:
    0 0 20px rgba(224, 120, 86, 0.8),
    0 0 40px rgba(224, 120, 86, 0.4),
    0 2px 4px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
}

@keyframes messageReveal {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.3);
    filter: blur(20px);
  }

  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.15);
    filter: blur(0);
  }

  70% {
    transform: translate(-50%, -50%) scale(0.95);
  }

  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    filter: blur(0);
  }
}

/* ========================================
   Three.js Rock UI Overlays
   ======================================== */

.rock-hold-hint-3d {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  z-index: 100;
}

.hold-key-3d {
  width: 56px;
  height: 56px;
  background: rgba(0, 0, 0, 0.9);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hold-key-3d span {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  font-family: var(--font-body);
  position: relative;
  z-index: 2;
}

.hold-progress-3d {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 0%;
  background: linear-gradient(to top, var(--color-accent), #ff8a9b);
  transition: height 0.03s linear;
}

.hold-label-3d {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: rgba(0, 0, 0, 0.9);
  padding: 6px 16px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* ========================================
   Monolithic Rock UI - Polished Styles
   ======================================== */

/* Rock Hold Hint */
.rock-hint {
  position: absolute;
  transform: translate(-50%, -100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  z-index: 200;
  will-change: transform, opacity;
}

.rock-hint-key {
  position: relative;
  width: 52px;
  height: 52px;
}

.rock-hint-key .key-letter {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  font-family: var(--font-body);
  color: #fff;
  background: rgba(0, 0, 0, 0.85);
  border-radius: 10px;
  z-index: 2;
}

/* Circular Progress Ring */
.rock-hint-key .progress-ring {
  position: absolute;
  inset: -4px;
  width: calc(100% + 8px);
  height: calc(100% + 8px);
  transform: rotate(-90deg);
}

.rock-hint-key .progress-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.15);
  stroke-width: 3;
}

.rock-hint-key .progress-fill {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 3;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.05s linear;
  filter: drop-shadow(0 0 4px rgba(224, 120, 86, 0.8));
}

.rock-hint-label {
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: rgba(0, 0, 0, 0.85);
  padding: 6px 14px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
}

/* Reveal Message */
.reveal-msg {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 150;
  text-align: center;
}

.reveal-msg span {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 28px;
  font-style: italic;
  font-weight: 500;
  color: var(--color-accent);
  text-shadow:
    0 0 30px rgba(224, 120, 86, 0.9),
    0 0 60px rgba(224, 120, 86, 0.5),
    0 4px 10px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
  animation: messageGlow 2s ease-in-out infinite;
}

@keyframes messageGlow {

  0%,
  100% {
    text-shadow:
      0 0 30px rgba(224, 120, 86, 0.9),
      0 0 60px rgba(224, 120, 86, 0.5),
      0 4px 10px rgba(0, 0, 0, 0.4);
  }

  50% {
    text-shadow:
      0 0 40px rgba(224, 120, 86, 1),
      0 0 80px rgba(224, 120, 86, 0.7),
      0 4px 10px rgba(0, 0, 0, 0.4);
  }
}

/* Performance: Ensure GPU compositing */
.rock-hint,
.reveal-msg {
  backface-visibility: hidden;
  perspective: 1000px;
}

/* Auth View Switching */
.auth-view {
  animation: fadeSlideIn 0.3s ease-out;
}

.auth-view.hidden {
  display: none;
}

/* Toast Notifications */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.3s ease-out, opacity 0.3s ease-out;
  z-index: 1000;
  max-width: 400px;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast svg {
  flex-shrink: 0;
}

.toast span {
  font-size: var(--text-sm);
  color: var(--color-text-primary);
}

.toast-error {
  border-left: 3px solid var(--color-error);
}

.toast-error svg {
  color: var(--color-error);
}

.toast-success {
  border-left: 3px solid var(--color-success);
}

.toast-success svg {
  color: var(--color-success);
}

/* Demo Login Button */
.demo-login-section {
  margin-top: var(--space-4);
  text-align: center;
}

.btn-demo {
  background: transparent;
  color: var(--color-text-muted);
  border: 1px dashed var(--border-strong);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.btn-demo:hover {
  background: var(--color-surface-elevated);
  color: var(--color-text-secondary);
  border-color: var(--color-text-muted);
}

.btn-demo svg {
  opacity: 0.7;
}

.demo-disclaimer {
  font-size: 10px;
  color: var(--color-text-muted);
  margin-top: var(--space-2);
  opacity: 0.6;
  font-style: italic;
}

.account-menu-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: var(--space-4);
  gap: var(--space-2);
  background: rgba(255, 255, 255, 0.02);
}

.menu-stat {
  display: flex;
  flex-direction: column;
}

.menu-stat .label {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
}

.menu-stat .value {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--color-accent);
}

/* Utilities */
.mt-4 {
  margin-top: var(--space-4);
}

.mt-6 {
  margin-top: var(--space-6);
}

.mb-2 {
  margin-bottom: var(--space-2);
}

.ml-6 {
  margin-left: var(--space-6);
}

.space-y-1>*+* {
  margin-top: var(--space-1);
}

.font-bold {
  font-weight: var(--font-semibold);
}

.text-sm {
  font-size: var(--text-sm);
}

.text-error {
  color: var(--color-error);
}

.list-disc {
  list-style-type: disc;
}

.rejection-reasons-list {
  padding: var(--space-4);
  background: var(--color-error-light);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-error);
}

/* Testing Controls Panel */
.test-controls-panel {
  background: var(--color-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  margin-bottom: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-6);
  position: relative;
  overflow: hidden;
}

.test-controls-panel::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--color-accent);
}

.test-control-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 150px;
}

.test-icon {
  width: 32px;
  height: 32px;
  background: var(--color-surface-elevated);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
}

.test-icon svg {
  width: 18px;
  height: 18px;
}

.test-slider-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.test-slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.highlight-real {
  color: var(--color-success);
}

.highlight-fake {
  color: var(--color-error);
}

/* Custom Range Slider - Clean design */
.bs-slider {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--color-surface-elevated);
  outline: none;
  cursor: pointer;
  position: relative;
  z-index: 2;
}

.bs-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 2px solid #fff;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.1s;
}

.bs-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

.bs-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 2px solid #fff;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}