/* ==========================================
   CringeSpeed Portal - Dark Theme
   Restrained Neon / Dark Neutral Base
   ========================================== */

:root {
  --bg-primary: #0A0A0A;
  --bg-secondary: #111111;
  --bg-card: #161616;
  --bg-input: #1C1C1C;
  --bg-hover: #222222;
  --text-primary: #E0E0E0;
  --text-secondary: #888888;
  --text-muted: #555555;
  --accent: #00FF7F;
  --accent-hover: #33FF99;
  --accent-glow: rgba(0, 255, 127, 0.15);
  --success: #2FE0D1;
  --success-bg: rgba(47, 224, 209, 0.1);
  --danger: #ff4757;
  --danger-bg: rgba(255, 71, 87, 0.1);
  --warning: #D4A843;
  --warning-bg: rgba(212, 168, 67, 0.1);
  --info: #2FE0D1;
  --info-bg: rgba(47, 224, 209, 0.1);
  --border: #1E1E1E;
  --border-light: #2A2A2A;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
  --transition: 0.2s ease;
}

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

body {
  font-family: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent-hover);
}

/* ==========================================
   Navigation Bar
   ========================================== */
.portal-nav {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-brand {
  display: flex;
  align-items: center;
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-brand:hover {
  color: var(--text-primary);
}

.brand-name span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.nav-link.active {
  color: var(--accent);
  background: var(--accent-glow);
}

.nav-link-cta {
  color: #0A0A0A;
  background: var(--accent);
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  transition: all var(--transition);
}

.nav-link-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 255, 127, 0.3);
}

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

.user-name {
  color: var(--text-secondary);
  font-size: 13px;
}

.nav-link-logout {
  color: var(--danger);
  font-size: 14px;
  font-weight: 500;
}

.nav-link-logout:hover {
  color: #ff3040;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ==========================================
   Main Content
   ========================================== */
.portal-content {
  flex: 1;
}

/* ==========================================
   Footer
   ========================================== */
.portal-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 24px 0;
  margin-top: 60px;
  text-align: center;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-links {
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 13px;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-separator {
  color: var(--text-muted);
  font-size: 13px;
}

.portal-footer p {
  color: var(--text-muted);
  font-size: 13px;
}

/* Legal Pages */
.legal-content h2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 32px;
  margin-bottom: 12px;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}

.legal-content ul {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
  padding-left: 24px;
}

.legal-content li {
  margin-bottom: 6px;
}

.legal-content code {
  background: var(--bg-input);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 13px;
}

/* ==========================================
   Flash Messages
   ========================================== */
.flash-container {
  max-width: 1200px;
  margin: 20px auto 0;
  padding: 0 24px;
}

.alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  animation: slideDown 0.3s ease;
}

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

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.alert-success {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid rgba(47, 224, 209, 0.2);
}

.alert-error {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid rgba(255, 71, 87, 0.2);
}

.alert-warning {
  background: var(--warning-bg);
  color: var(--warning);
  border: 1px solid rgba(212, 168, 67, 0.2);
}

.alert-info {
  background: var(--info-bg);
  color: var(--info);
  border: 1px solid rgba(47, 224, 209, 0.2);
}

.alert-close {
  background: none;
  border: none;
  color: inherit;
  font-size: 20px;
  cursor: pointer;
  opacity: 0.7;
  padding: 0 4px;
  transition: opacity var(--transition);
}

.alert-close:hover {
  opacity: 1;
}

/* Announcement Banner */
.announcement-banner {
  background: linear-gradient(135deg, rgba(212, 168, 67, 0.12), rgba(255, 165, 0, 0.08));
  border: 1px solid rgba(212, 168, 67, 0.3);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 0 auto 0;
  max-width: 900px;
  animation: slideDown 0.4s ease;
}

.announcement-banner-inner {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.announcement-icon {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.announcement-content {
  flex: 1;
}

.announcement-title {
  font-size: 15px;
  font-weight: 700;
  color: #D4A843;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.announcement-title .badge-maintenance {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(212, 168, 67, 0.2);
  color: #D4A843;
  padding: 3px 8px;
  border-radius: 4px;
}

.announcement-body {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.announcement-body strong {
  color: var(--text-primary);
}

.announcement-body p {
  margin: 0 0 8px;
}

.announcement-body p:last-child {
  margin-bottom: 0;
}

.announcement-dismiss {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  padding: 0 4px;
  opacity: 0.7;
  transition: opacity var(--transition);
  flex-shrink: 0;
}

.announcement-dismiss:hover {
  opacity: 1;
}

/* ==========================================
   Auth Pages (Login/Register)
   ========================================== */
.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 120px);
  padding: 40px 20px;
  background: linear-gradient(135deg, #0A0A0A 0%, #161616 50%, #121212 100%);
}

.auth-container {
  width: 100%;
  max-width: 420px;
}

.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow), 0 0 60px rgba(0, 255, 127, 0.05);
}

.auth-logo {
  text-align: center;
  margin-bottom: 32px;
}

.auth-brand {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.auth-brand span {
  color: var(--accent);
}

.auth-subtitle {
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 4px;
}

.auth-form .form-group {
  margin-bottom: 20px;
}

.auth-footer {
  margin-top: 24px;
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.auth-footer p {
  color: var(--text-secondary);
  font-size: 13px;
}

/* ==========================================
   Landing Page
   ========================================== */
.landing-page {
  background: var(--bg-primary);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #0A0A0A 0%, #161616 50%, #121212 100%);
  padding: 80px 20px;
  text-align: center;
}

.hero-container {
  max-width: 800px;
  margin: 0 auto;
}

.hero-icon {
  font-size: 72px;
  margin-bottom: 20px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.hero-title {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
  line-height: 1.2;
}

.hero-description {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero-stats {
  display: flex;
  gap: 48px;
  justify-content: center;
  margin-bottom: 40px;
}

.hero-stat {
  text-align: center;
}

.hero-stat-value {
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
}

.hero-stat-label {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Features Section */
.features-section {
  background: var(--bg-primary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform var(--transition), border-color var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.feature-card-icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.feature-card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.feature-card-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Sections */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: 16px;
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 48px;
}

/* How It Works */
.how-it-works {
  background: var(--bg-secondary);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  transition: transform var(--transition), border-color var(--transition);
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--accent);
  color: #0A0A0A;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  margin: 0 auto 20px;
}

.step-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.step-description {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Pricing */
.pricing-section {
  background: var(--bg-primary);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
  margin-top: 48px;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
  transition: transform var(--transition), border-color var(--transition);
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.pricing-card-featured {
  border-color: var(--accent);
  box-shadow: 0 0 40px rgba(0, 255, 127, 0.15);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--accent);
  color: #0A0A0A;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.pricing-header {
  text-align: center;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.pricing-plan {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.pricing-amount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}

.pricing-currency {
  font-size: 24px;
  color: var(--text-secondary);
}

.pricing-price {
  font-size: 48px;
  font-weight: 700;
  color: var(--text-primary);
}

.pricing-period {
  font-size: 16px;
  color: var(--text-secondary);
}

.pricing-features {
  list-style: none;
  margin-bottom: 24px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  color: var(--text-secondary);
}

.feature-icon {
  color: var(--success);
  font-size: 18px;
  font-weight: 700;
}

/* FAQ */
.faq-section {
  background: var(--bg-secondary);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  margin-top: 48px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
}

.faq-question {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.faq-answer {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--accent) 0%, #00CC66 100%);
  padding: 80px 20px;
  text-align: center;
}

.cta-container {
  max-width: 600px;
  margin: 0 auto;
}

.cta-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #fff;
}

.cta-description {
  font-size: 18px;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.9);
}

.cta-section .btn {
  background: #fff;
  color: var(--accent);
}

.cta-section .btn:hover {
  background: #f5f5f5;
  transform: translateY(-2px);
}

/* ==========================================
   Forms
   ========================================== */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  transition: border-color var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-control::placeholder {
  color: var(--text-muted);
}

.password-wrapper {
  position: relative;
  display: flex;
}

.password-wrapper .form-control {
  padding-right: 40px;
}

.password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  opacity: 0.6;
  transition: opacity var(--transition);
}

.password-toggle:hover {
  opacity: 1;
}

/* ==========================================
   Buttons
   ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

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

.btn-primary {
  background: var(--accent);
  color: #0A0A0A;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #0A0A0A;
  box-shadow: 0 4px 12px rgba(0, 255, 127, 0.3);
}

.btn-secondary {
  background: var(--bg-hover);
  color: var(--text-secondary);
  border-color: var(--border-light);
}

.btn-secondary:hover {
  background: var(--border-light);
  color: var(--text-primary);
}

.btn-block {
  width: 100%;
}

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

/* ==========================================
   Toast Container
   ========================================== */
#toast-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  font-size: 13px;
  box-shadow: var(--shadow);
  animation: slideInRight 0.3s ease;
  max-width: 360px;
}

.toast-success {
  border-left: 3px solid var(--success);
}

.toast-error {
  border-left: 3px solid var(--danger);
}

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

/* ==========================================
   Responsive
   ========================================== */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px;
    gap: 8px;
    transform: translateY(-100%);
    opacity: 0;
    transition: all var(--transition);
    pointer-events: none;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-user {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-description {
    font-size: 16px;
  }

  .hero-stats {
    gap: 32px;
  }

  .hero-stat-value {
    font-size: 28px;
  }

  .section-title {
    font-size: 28px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .auth-card {
    padding: 32px 24px;
  }

  .cta-title {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 28px;
  }

  .section-container {
    padding: 40px 20px;
  }

  .auth-card {
    padding: 24px 20px;
  }
}

/* ==========================================
   Dashboard & Customer Portal Styles
   ========================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
}

.page-header {
  margin-bottom: 32px;
}

.page-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.page-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform var(--transition), border-color var(--transition);
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.stat-label {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.stat-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.stat-description {
  font-size: 13px;
  color: var(--text-secondary);
}

/* Card */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 24px;
}

.card-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.card-body {
  padding: 24px;
}

.card-body-no-padding {
  padding: 0;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.badge-success {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid rgba(47, 224, 209, 0.2);
}

.badge-danger {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid rgba(255, 71, 87, 0.2);
}

.badge-warning {
  background: var(--warning-bg);
  color: var(--warning);
  border: 1px solid rgba(212, 168, 67, 0.2);
}

.badge-info {
  background: var(--info-bg);
  color: var(--info);
  border: 1px solid rgba(47, 224, 209, 0.2);
}

.badge-secondary {
  background: rgba(150, 150, 170, 0.1);
  color: #9696aa;
  border: 1px solid rgba(150, 150, 170, 0.2);
}

/* Account Health Status */
.health-status {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.health-detail {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.3;
}

.health-indicators {
  display: flex;
  gap: 8px;
  margin-top: 2px;
}

.health-indicator {
  font-size: 11px;
  font-family: var(--font-mono, monospace);
  letter-spacing: -0.3px;
}

.health-indicator.ok {
  color: var(--success);
}

.health-indicator.bad {
  color: var(--danger);
}

.health-progress {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

.health-step {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.health-step.done {
  color: var(--success);
}

.health-step.active {
  color: var(--warning);
  animation: healthPulse 1.5s ease-in-out infinite;
}

.health-step-arrow {
  font-size: 9px;
  color: var(--text-muted);
  opacity: 0.5;
}

@keyframes healthPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Floating Chat Button */
.chat-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 255, 127, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 200;
}

.chat-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(0, 255, 127, 0.5);
}

/* Table */
.table-container {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table thead {
  background: var(--bg-input);
  border-bottom: 1px solid var(--border);
}

.table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.table td {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 14px;
}

.table tbody tr {
  transition: background var(--transition);
}

.table tbody tr:hover {
  background: var(--bg-hover);
}

.table tbody tr:last-child td {
  border-bottom: none;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 24px;
}

.empty-state-icon {
  font-size: 64px;
  margin-bottom: 16px;
  opacity: 0.3;
}

.empty-state-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.empty-state-description {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* Button Groups */
.btn-group {
  display: flex;
  gap: 8px;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

.btn-icon {
  padding: 6px 10px;
  font-size: 14px;
}

.btn-success {
  background: var(--success);
  color: #fff;
}

.btn-success:hover {
  background: #26B8AA;
  color: #fff;
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.btn-danger:hover {
  background: #ff3040;
  color: #fff;
}

.btn-warning {
  background: var(--warning);
  color: #0A0A0A;
}

.btn-warning:hover {
  background: #C09838;
  color: #0A0A0A;
}

/* Action Buttons in Tables */
.action-buttons {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-input);
  border: 1px solid var(--border);
  transition: 0.3s;
  border-radius: 24px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: var(--text-muted);
  transition: 0.3s;
  border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
  background-color: var(--success);
  border-color: var(--success);
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(20px);
  background-color: #fff;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 200;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  animation: fadeIn 0.2s ease;
}

.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 500px;
  width: 90%;
  box-shadow: var(--shadow);
  animation: slideUp 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

.modal-header {
  margin-bottom: 20px;
}

.modal-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.modal-description {
  font-size: 14px;
  color: var(--text-secondary);
}

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

/* Form Enhancements */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

/* Masked Token Display */
.token-display {
  font-family: monospace;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
}

.copy-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 2px 4px;
  font-size: 14px;
  transition: color var(--transition);
}

.copy-btn:hover {
  color: var(--accent);
}

/* Quick Actions */
.quick-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

/* Filter Bar */
.filter-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.filter-bar label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-right: 8px;
}

.filter-bar select {
  padding: 8px 12px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 14px;
  cursor: pointer;
  transition: border-color var(--transition);
}

.filter-bar select:focus {
  outline: none;
  border-color: var(--accent);
}

/* Add Account Form */
.add-account-form {
  display: none;
  padding: 24px;
  background: var(--bg-input);
  border-radius: var(--radius);
  margin-bottom: 24px;
}

.add-account-form.show {
  display: block;
  animation: slideDown 0.3s ease;
}

/* Currency Dropdown */
select.form-control {
  cursor: pointer;
  text-transform: uppercase;
}

/* Subscription Info */
.subscription-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.subscription-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.subscription-plan {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  text-transform: capitalize;
}

.subscription-expires {
  font-size: 13px;
  color: var(--text-secondary);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .container {
    padding: 24px 16px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .quick-actions {
    flex-direction: column;
  }

  .quick-actions .btn {
    width: 100%;
  }

  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .action-buttons {
    flex-wrap: wrap;
  }

  .table {
    font-size: 13px;
  }

  .table th,
  .table td {
    padding: 12px 8px;
  }
}

/* Onboarding Steps */
.onboarding-steps { display: flex; flex-direction: column; gap: 0; }
.onboarding-step {
  display: flex; gap: 16px; padding: 16px 0;
  border-bottom: 1px solid var(--border); opacity: 0.4;
}
.onboarding-step:last-child { border-bottom: none; }
.onboarding-step.active { opacity: 1; }
.onboarding-step.done { opacity: 0.7; }
.onboarding-step-number {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
  background: var(--bg-tertiary); color: var(--text-muted);
  border: 2px solid var(--border);
}
.onboarding-step.active .onboarding-step-number {
  background: rgba(0, 212, 255, 0.1); color: var(--accent);
  border-color: var(--accent);
}
.onboarding-step.done .onboarding-step-number {
  background: rgba(46, 204, 113, 0.1); color: var(--success);
  border-color: var(--success);
}
.onboarding-step-content { flex: 1; }
.onboarding-step-title { font-weight: 600; color: var(--text-primary); margin-bottom: 2px; }
.onboarding-step.done .onboarding-step-title { color: var(--success); }
.onboarding-step-desc { font-size: 13px; color: var(--text-secondary); }
