/*
 * Crypto Payment Gateway - Custom Styles
 * Professional theme with crypto-inspired colors
 */

/* === Color Palette === */
:root {
  /* Primary - Deep Blue (Trust & Security) */
  --primary: #1e3a8a;
  --primary-light: #3b82f6;
  --primary-dark: #1e40af;

  /* Secondary - Teal (Crypto/Tech) */
  --secondary: #0d9488;
  --secondary-light: #14b8a6;
  --secondary-dark: #0f766e;

  /* Accent - Purple (Innovation) */
  --accent: #7c3aed;
  --accent-light: #a78bfa;

  /* Neutral Colors */
  --dark: #1f2937;
  --light: #f9fafb;
  --border: #e5e7eb;

  /* Status Colors */
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;

  /* === Theme Colors (Light) === */
  --body-bg: #f8fafc;
  --body-color: #1f2937;
  --heading-color: #1a1a2e;
  --text-muted: #6b7280;
  --text-secondary: #9ca3af;
  --text-tertiary: #94a3b8;

  --surface: white;
  --surface-hover: #f8fafc;
  --surface-alt: #f1f5f9;
  --surface-inset: #f8fafc;
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;
  --border-subtle: #f8fafc;

  --navbar-bg: #0f172a;
  --navbar-border: rgba(255, 255, 255, 0.06);
  --footer-bg: #0f172a;

  --input-bg: #fff;
  --input-border: #d1d5db;
  --input-color: #1f2937;
  --input-placeholder: #c0c7d0;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);

  --code-bg: #f3f4f6;
  --code-color: #6366f1;

  --auth-header-bg: #0f172a;
}

/* === Dark Theme === */
[data-theme="dark"] {
  --body-bg: #0f172a;
  --body-color: #e2e8f0;
  --heading-color: #f1f5f9;
  --text-muted: #94a3b8;
  --text-secondary: #64748b;
  --text-tertiary: #475569;

  --surface: #1e293b;
  --surface-hover: #334155;
  --surface-alt: #1e293b;
  --surface-inset: #0f172a;
  --border-color: #334155;
  --border-light: #1e293b;
  --border-subtle: #1e293b;

  --navbar-bg: #020617;
  --navbar-border: rgba(255, 255, 255, 0.08);
  --footer-bg: #020617;

  --input-bg: #1e293b;
  --input-border: #475569;
  --input-color: #e2e8f0;
  --input-placeholder: #64748b;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);

  --code-bg: #334155;
  --code-color: #a5b4fc;

  --auth-header-bg: #020617;

  color-scheme: dark;
}

/* === Typography === */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--body-color);
  background-color: var(--body-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* === Navigation Bar === */
.navbar-dark {
  background: var(--navbar-bg) !important;
  border-bottom: 1px solid var(--navbar-border);
}

.navbar-brand {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  transition: opacity 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.navbar-brand:hover {
  opacity: 0.85;
}

.navbar-brand .brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: white;
  flex-shrink: 0;
}

.nav-link {
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  padding: 0.5rem 0.875rem !important;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.65) !important;
}

.nav-link:hover {
  color: white !important;
  background: rgba(255, 255, 255, 0.06);
}

.nav-link.active-nav {
  color: white !important;
  background: rgba(99, 102, 241, 0.15);
}

.nav-user-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem 0.35rem 0.35rem !important;
  border-radius: 10px !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  transition: all 0.2s ease;
}

.nav-user-btn:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}

.nav-avatar {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.7rem;
  flex-shrink: 0;
}

.nav-user-email {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Language switcher pill */
.lang-switcher .nav-link {
  font-size: 0.8rem;
  padding: 0.35rem 0.7rem !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.lang-switcher .nav-link:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

/* === Buttons === */
.btn-primary-gradient {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent) 100%);
  border: none;
  color: white;
  font-weight: 600;
  padding: 0.5rem 1.5rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  color: white;
}

.btn-primary {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border-color: #6366f1;
  font-weight: 600;
  padding: 0.625rem 1.5rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  border-color: #4f46e5;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
  color: white;
}

.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
  font-weight: 600;
  padding: 0.625rem 1.5rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}

.btn-outline-primary:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-1px);
}

/* === Auth Cards === */
.auth-container {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
}

.auth-card {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  border: 1px solid var(--border);
  max-width: 480px;
  width: 100%;
}

.auth-card-header {
  background: #0f172a;
  padding: 2.5rem 2rem;
  text-align: center;
  color: white;
}

.auth-card-header i {
  font-size: 3rem;
  color: #8b5cf6;
  margin-bottom: 1rem;
}

.auth-card-header h2 {
  color: white;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.auth-card-header p {
  margin: 0;
  opacity: 0.9;
  font-size: 0.95rem;
}

.auth-card-body {
  padding: 2.5rem 2rem;
}

/* === Form Styling === */
.form-label {
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.form-control {
  border: 2px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.form-control:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-check-input {
  border: 2px solid var(--border);
  border-radius: 0.25rem;
  cursor: pointer;
}

.form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

.form-check-label {
  cursor: pointer;
  font-weight: 500;
  color: var(--dark);
}

/* === Links === */
.auth-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.auth-link:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

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

/* === Alerts (fallback) === */
.alert {
  border-radius: 0.75rem;
  border: none;
  font-weight: 500;
}

.alert-success {
  background-color: #d1fae5;
  color: #065f46;
}

.alert-warning {
  background-color: #fef3c7;
  color: #92400e;
}

.alert-danger {
  background-color: #fee2e2;
  color: #991b1b;
}

/* === Toast Notifications === */
.toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1080;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 420px;
  width: calc(100% - 2rem);
}

.toast-notification {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border-radius: 12px;
  background: white;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
  border-left: 4px solid transparent;
  transform: translateX(110%);
  opacity: 0;
  transition: none;
}

.toast-notification.toast-visible {
  animation: toastSlideIn 0.35s cubic-bezier(0.21, 1.02, 0.73, 1) forwards;
}

.toast-notification.toast-hiding {
  animation: toastSlideOut 0.3s ease-in forwards;
}

@keyframes toastSlideIn {
  from { transform: translateX(110%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

@keyframes toastSlideOut {
  from { transform: translateX(0); opacity: 1; }
  to   { transform: translateX(110%); opacity: 0; }
}

.toast-icon {
  flex-shrink: 0;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
}

.toast-body {
  flex: 1;
  font-size: 0.875rem;
  font-weight: 500;
  color: #1f2937;
  line-height: 1.4;
}

.toast-close {
  flex-shrink: 0;
  background: none;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
  color: #9ca3af;
  font-size: 0.8rem;
  border-radius: 6px;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
}

.toast-close:hover {
  background: #f3f4f6;
  color: #4b5563;
}

/* Toast variants */
.toast-success {
  border-left-color: #10b981;
}

.toast-success .toast-icon {
  color: #10b981;
}

.toast-warning {
  border-left-color: #f59e0b;
}

.toast-warning .toast-icon {
  color: #f59e0b;
}

.toast-danger {
  border-left-color: #ef4444;
}

.toast-danger .toast-icon {
  color: #ef4444;
}

.toast-info {
  border-left-color: #3b82f6;
}

.toast-info .toast-icon {
  color: #3b82f6;
}

/* === Dropdown Menu === */
.dropdown-menu {
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  padding: 0.5rem;
  min-width: 220px;
}

.dropdown-item {
  border-radius: 0.5rem;
  padding: 0.625rem 1rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background-color: var(--light);
  color: var(--primary);
}

.dropdown-item i {
  width: 20px;
  text-align: center;
}

.dropdown-header {
  font-weight: 700;
  color: var(--dark);
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dropdown-divider {
  margin: 0.5rem 0;
}

/* === Footer === */
.site-footer {
  background: #0f172a;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-brand-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: white;
}

.footer-brand-name {
  font-weight: 600;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
}

.footer-trust {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
}

.footer-trust i {
  color: #10b981;
  font-size: 0.75rem;
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.78rem;
}

/* === Home Page Hero === */
.hero-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, var(--accent) 100%);
  color: white;
  padding: 5rem 0;
  text-align: center;
}

.hero-section h1 {
  color: white;
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-section p {
  font-size: 1.25rem;
  opacity: 0.95;
  margin-bottom: 2rem;
}

.hero-icon {
  font-size: 4rem;
  color: var(--secondary-light);
  margin-bottom: 2rem;
}

/* === Feature Cards === */
.feature-card {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-light);
}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 1rem;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
  font-size: 1.75rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--dark);
}

.feature-card p {
  color: #6b7280;
  margin: 0;
  line-height: 1.6;
}

/* === Error Messages === */
.field_with_errors {
  display: inline;
}

.field_with_errors .form-control {
  border-color: var(--danger);
}

#error_explanation {
  background-color: #fee2e2;
  border: 2px solid #fecaca;
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

#error_explanation h2 {
  color: #991b1b;
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

#error_explanation ul {
  margin: 0;
  padding-left: 1.5rem;
  color: #991b1b;
}

/* === Responsive === */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2rem;
  }

  .hero-section p {
    font-size: 1rem;
  }

  .auth-card-body {
    padding: 2rem 1.5rem;
  }

  .auth-card-header {
    padding: 2rem 1.5rem;
  }
}

/* === Utilities === */
.shadow-sm {
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === OTP Input Styling === */
.otp-input {
  font-family: 'Courier New', monospace;
  text-align: center;
  font-size: 2rem;
  letter-spacing: 1rem;
  font-weight: bold;
  padding: 1rem;
}

.otp-input:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

/* Remove number input spinners */
.otp-input::-webkit-outer-spin-button,
.otp-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.otp-input[type=number] {
  -moz-appearance: textfield;
}

/* Dashboard Stats Icons */
.stat-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

/* Clickable Row / Card */
.clickable {
  cursor: pointer;
}

/* Flash message slide-out animation */
@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

.slide-out {
  animation: slideOut 0.3s ease-out;
}

/* Avatar Circle */
.avatar-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
}

/* ============================================================
   DASHBOARDS — Modern component system
   ============================================================ */

/* Page header */
.dash-header {
  margin-bottom: 2rem;
}

.dash-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 0.15rem;
}

.dash-header p {
  color: #6b7280;
  font-size: 0.9rem;
  margin: 0;
}

.dash-greeting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.dash-greeting-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.dash-greeting-avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

/* Stat cards */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 991px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575px) {
  .stat-grid { grid-template-columns: 1fr; }
}

.stat-card {
  background: white;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.stat-card:hover {
  border-color: #c7d2fe;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.08);
  color: inherit;
  text-decoration: none;
}

.stat-card-active {
  border-color: #6366f1;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.15);
  background: #f5f3ff;
}

.stat-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.stat-card-icon.blue    { background: #eff6ff; color: #3b82f6; }
.stat-card-icon.green   { background: #ecfdf5; color: #10b981; }
.stat-card-icon.amber   { background: #fffbeb; color: #f59e0b; }
.stat-card-icon.purple  { background: #f5f3ff; color: #8b5cf6; }
.stat-card-icon.rose    { background: #fff1f2; color: #f43f5e; }
.stat-card-icon.cyan    { background: #ecfeff; color: #06b6d4; }

.stat-card-info {
  min-width: 0;
}

.stat-card-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.15rem;
}

.stat-card-value {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stat-card-value.small-value {
  font-size: 0.95rem;
}

/* Dashboard tabs */
.dash-tabs {
  display: flex;
  gap: 0.25rem;
  background: #f1f5f9;
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 1.75rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.dash-tab {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1rem;
  border: none;
  background: transparent;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.85rem;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  position: relative;
}

.dash-tab:hover:not(.active) {
  color: #475569;
  background: rgba(255, 255, 255, 0.5);
}

.dash-tab.active {
  background: white;
  color: #1e3a8a;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
}

.dash-tab i {
  font-size: 1rem;
}

.dash-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: #e2e8f0;
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 700;
}

.dash-tab.active .dash-tab-count {
  background: #eff6ff;
  color: #3b82f6;
}

/* Dashboard tab panes */
.dash-tab-pane {
  display: none;
}

.dash-tab-pane.active {
  display: block;
  animation: dashFadeIn 0.25s ease;
}

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

/* Quick access bar */
.quick-bar {
  background: white;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  padding: 0.875rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.quick-bar-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.quick-bar-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.quick-bar-icon.blue   { background: #eff6ff; color: #3b82f6; }
.quick-bar-icon.red    { background: #fef2f2; color: #ef4444; }
.quick-bar-icon.green  { background: #ecfdf5; color: #10b981; }
.quick-bar-icon.amber  { background: #fffbeb; color: #f59e0b; }
.quick-bar-icon.purple { background: #f5f3ff; color: #8b5cf6; }

.quick-bar-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: #1f2937;
}

.quick-bar-meta {
  font-size: 0.78rem;
  color: #6b7280;
}

.quick-bar-right {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Action buttons */
.btn-dash {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.475rem 0.85rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.5;
  border: 1.5px solid #e2e8f0;
  background: white;
  color: #374151;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-dash:hover {
  border-color: #c7d2fe;
  color: #6366f1;
  background: #f5f3ff;
  text-decoration: none;
}

.btn-dash.primary {
  background: #6366f1;
  border-color: #6366f1;
  color: white;
}

.btn-dash.primary:hover {
  background: #4f46e5;
  border-color: #4f46e5;
  color: white;
}

.btn-dash.success {
  border-color: #d1fae5;
  color: #059669;
  background: #ecfdf5;
}

.btn-dash.success:hover {
  background: #d1fae5;
}

/* Panel cards */
.dash-panel {
  background: white;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
}

.dash-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #f1f5f9;
}

.dash-panel-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #1f2937;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.dash-panel-title i {
  color: #6b7280;
  font-size: 1rem;
}

.dash-panel-body {
  padding: 1.25rem;
}

.dash-panel-body.flush {
  padding: 0;
}

/* Tables */
.dash-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.dash-table th {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  padding: 0.65rem 1rem;
  background: #f8fafc;
  border-bottom: 1px solid #f1f5f9;
  white-space: nowrap;
}

.dash-table td {
  font-size: 0.85rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid #f8fafc;
  color: #374151;
  vertical-align: middle;
}

.dash-table tbody tr {
  transition: background 0.15s ease;
}

.dash-table tbody tr:hover {
  background: #f8fafc;
}

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

.dash-table .clickable {
  cursor: pointer;
}

.dash-table .cell-mono {
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  color: #6366f1;
  font-weight: 600;
}

.dash-table .cell-muted {
  color: #9ca3af;
  font-size: 0.78rem;
}

.dash-table .cell-amount {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Badges */
.dash-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.dash-badge.green  { background: #ecfdf5; color: #059669; }
.dash-badge.amber  { background: #fffbeb; color: #d97706; }
.dash-badge.red    { background: #fef2f2; color: #dc2626; }
.dash-badge.blue   { background: #eff6ff; color: #2563eb; }
.dash-badge.purple { background: #f5f3ff; color: #7c3aed; }
.dash-badge.gray   { background: #f3f4f6; color: #6b7280; }

/* Profile card items */
.profile-item {
  margin-bottom: 0.875rem;
}

.profile-item:last-child {
  margin-bottom: 0;
}

.profile-item-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.15rem;
}

.profile-item-value {
  font-size: 0.875rem;
  font-weight: 500;
  color: #1f2937;
}

/* User row (avatar + name/email) */
.user-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.user-row-avatar {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.65rem;
  flex-shrink: 0;
}

.user-row-name {
  font-weight: 600;
  font-size: 0.85rem;
  color: #1f2937;
}

.user-row-sub {
  font-size: 0.75rem;
  color: #9ca3af;
}

/* System status list */
.status-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0;
  border-bottom: 1px solid #f8fafc;
}

.status-list-item:last-child {
  border-bottom: none;
}

.status-list-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: #374151;
}

.status-list-left i {
  font-size: 0.9rem;
}

/* Quick actions row */
.quick-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

/* Empty state */
.dash-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: #9ca3af;
}

.dash-empty i {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  display: block;
  opacity: 0.5;
}

.dash-empty p {
  font-size: 0.875rem;
  margin: 0;
}

/* KYC alert banner */
.kyc-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 1rem 1.25rem;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  margin-bottom: 1.5rem;
}

.kyc-alert-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #dbeafe;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #3b82f6;
  font-size: 1.15rem;
}

.kyc-alert-body h6 {
  font-size: 0.875rem;
  font-weight: 700;
  color: #1e40af;
  margin: 0 0 0.25rem;
}

.kyc-alert-body p {
  font-size: 0.8rem;
  color: #1e40af;
  margin: 0 0 0.5rem;
  opacity: 0.85;
}

/* Dashboard 2-column layout */
.dash-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.dash-columns.main-sidebar {
  grid-template-columns: 1fr 340px;
}

.dash-columns.sidebar-main {
  grid-template-columns: 340px 1fr;
}

@media (max-width: 991px) {
  .dash-columns,
  .dash-columns.main-sidebar,
  .dash-columns.sidebar-main {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   CHECKOUT — Stripe-inspired modern design
   ============================================================ */

/* Layout */
.checkout-page {
  padding: 2rem 1rem 4rem;
  max-width: 1100px;
  margin: 0 auto;
}

.checkout-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.checkout-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 0.25rem;
}

.checkout-header p {
  color: #6b7280;
  font-size: 0.95rem;
  margin: 0;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 991px) {
  .checkout-grid {
    grid-template-columns: 1fr;
  }
}

/* Payment method selector (segmented control) */
.payment-method-selector {
  display: flex;
  background: #f1f5f9;
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 2rem;
}

.payment-method-option {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border: none;
  background: transparent;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  color: #64748b;
  cursor: pointer;
  transition: all 0.25s ease;
}

.payment-method-option i {
  font-size: 1.1rem;
}

.payment-method-option.active {
  background: white;
  color: #1e3a8a;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
}

.payment-method-option:hover:not(.active) {
  color: #475569;
}

/* Form panel */
.checkout-form-panel {
  background: white;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
}

.checkout-form-body {
  padding: 2rem;
}

.form-section-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  margin-bottom: 1.25rem;
}

.form-section-divider {
  height: 1px;
  background: #f1f5f9;
  margin: 1.75rem 0;
}

/* Form fields */
.checkout-field {
  margin-bottom: 1.25rem;
}

.checkout-field:last-child {
  margin-bottom: 0;
}

.checkout-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.4rem;
}

.checkout-label .required {
  color: #ef4444;
  margin-left: 2px;
}

.checkout-label .optional-tag {
  font-weight: 400;
  color: #9ca3af;
  font-size: 0.8rem;
}

.checkout-input {
  display: block;
  width: 100%;
  padding: 0.7rem 0.875rem;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.5;
  color: #1f2937;
  background-color: #fff;
  border: 1.5px solid #d1d5db;
  border-radius: 10px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.checkout-input::placeholder {
  color: #c0c7d0;
}

.checkout-input:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.checkout-input.is-valid {
  border-color: #10b981;
}

.checkout-input.is-valid:focus {
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

.checkout-input.is-invalid {
  border-color: #ef4444;
}

.checkout-input.is-invalid:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

textarea.checkout-input {
  resize: vertical;
  min-height: 64px;
}

select.checkout-input {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 14px 10px;
  padding-right: 2.25rem;
}

/* Amount input group */
.amount-input-group {
  display: flex;
  align-items: stretch;
  border: 1.5px solid #d1d5db;
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.amount-input-group:focus-within {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.amount-prefix,
.amount-suffix {
  display: flex;
  align-items: center;
  padding: 0 0.875rem;
  background: #f8fafc;
  color: #64748b;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  border: none;
}

.amount-prefix {
  border-right: 1px solid #e5e7eb;
}

.amount-suffix {
  border-left: 1px solid #e5e7eb;
}

.amount-input-group input,
.checkout-amount-input {
  flex: 1;
  border: none;
  padding: 0.7rem 0.875rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1f2937;
  outline: none;
  background: white;
  min-width: 0;
}

.amount-input-group input::placeholder {
  color: #c0c7d0;
  font-weight: 400;
}

.amount-hint {
  font-size: 0.78rem;
  color: #9ca3af;
  margin-top: 0.35rem;
}

/* Row helpers */
.checkout-row {
  display: grid;
  gap: 0.75rem;
}

.checkout-row.cols-2 {
  grid-template-columns: 1fr 1fr;
}

.checkout-row.cols-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

@media (max-width: 480px) {
  .checkout-row.cols-3 {
    grid-template-columns: 1fr 1fr;
  }
  .checkout-row.cols-3 .checkout-field:last-child {
    grid-column: span 2;
  }
}

/* Card number with icon */
.card-number-wrapper {
  position: relative;
}

.card-type-badge {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  pointer-events: none;
  transition: opacity 0.2s;
}

/* Interactive card preview */
.card-preview {
  perspective: 1000px;
  margin-bottom: 1.75rem;
}

.card-preview-inner {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1.586;
  margin: 0 auto;
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  color: white;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: 0 20px 40px -12px rgba(102, 126, 234, 0.35);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.card-preview-inner:hover {
  transform: translateY(-4px) rotateX(2deg);
  box-shadow: 0 25px 50px -12px rgba(102, 126, 234, 0.4);
}

.card-preview-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.08) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(255,255,255,0.06) 0%, transparent 40%);
  pointer-events: none;
}

.card-chip {
  width: 45px;
  height: 34px;
  border-radius: 6px;
  background: linear-gradient(135deg, #e8d5b0 0%, #c9a96e 100%);
  position: relative;
  overflow: hidden;
}

.card-chip::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 4px;
  right: 4px;
  height: 1px;
  background: rgba(0,0,0,0.15);
}

.card-chip::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: rgba(0,0,0,0.15);
}

.card-preview-number {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  font-family: 'Courier New', monospace;
  margin: 0.5rem 0;
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.card-preview-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  position: relative;
  z-index: 1;
}

.card-preview-name {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.9;
  max-width: 65%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-preview-expiry .expiry-label {
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.7;
  margin-bottom: 2px;
}

.card-preview-expiry .expiry-value {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.card-preview-type {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  opacity: 0.9;
  z-index: 1;
}

/* Card type color variants */
.card-preview-inner[data-card-type="VISA"] {
  background: linear-gradient(135deg, #1a1f71 0%, #2d3494 100%);
}

.card-preview-inner[data-card-type="MASTERCARD"] {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.card-preview-inner[data-card-type="AMEX"] {
  background: linear-gradient(135deg, #006fcf 0%, #00aeef 100%);
}

.card-preview-inner[data-card-type="DISCOVER"] {
  background: linear-gradient(135deg, #ff6000 0%, #f7941d 100%);
}

/* Pay button */
.checkout-submit {
  margin-top: 1.75rem;
}

.pay-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.9rem 1.5rem;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  color: white;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  cursor: pointer;
  transition: all 0.25s ease;
}

.pay-button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
  color: white;
}

.pay-button:active:not(:disabled) {
  transform: translateY(0);
}

.pay-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.pay-button .pay-amount {
  font-variant-numeric: tabular-nums;
}

.pay-button-outline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.9rem 1.5rem;
  border: 2px solid #6366f1;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  color: #6366f1;
  background: white;
  cursor: pointer;
  transition: all 0.25s ease;
}

.pay-button-outline:hover:not(:disabled) {
  background: #f5f3ff;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.15);
}

/* Sidebar */
.checkout-sidebar {
  position: sticky;
  top: 1.5rem;
}

@media (max-width: 991px) {
  .checkout-sidebar {
    position: static;
    order: -1;
  }
}

.sidebar-card {
  background: white;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
}

.sidebar-section {
  padding: 1.5rem;
}

.sidebar-section + .sidebar-section {
  border-top: 1px solid #f1f5f9;
}

.sidebar-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  margin-bottom: 1rem;
}

/* User info */
.user-info-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-info-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.user-info-details {
  min-width: 0;
}

.user-info-details .user-name {
  font-weight: 600;
  color: #1f2937;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-info-details .user-email {
  color: #6b7280;
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* KYC badges */
.kyc-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.kyc-badge-verified {
  background: #ecfdf5;
  color: #059669;
}

.kyc-badge-pending {
  background: #fef3c7;
  color: #d97706;
}

/* Live amount summary */
.summary-amount {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.6rem 0;
}

.summary-amount.summary-total {
  border-top: 2px solid #e2e8f0;
  margin-top: 0.5rem;
  padding-top: 0.75rem;
}

.summary-label {
  color: #6b7280;
  font-size: 0.875rem;
}

.summary-value {
  font-weight: 600;
  color: #1f2937;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}

.summary-total .summary-value {
  font-size: 1.25rem;
  color: #1e3a8a;
}

.summary-empty {
  color: #9ca3af;
  font-size: 0.85rem;
  text-align: center;
  padding: 1rem 0;
}

/* Security footer */
.security-footer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  background: #f8fafc;
  border-top: 1px solid #f1f5f9;
}

.security-footer i {
  color: #10b981;
  font-size: 1rem;
}

.security-footer span {
  color: #6b7280;
  font-size: 0.78rem;
  font-weight: 500;
}

/* Accepted cards */
.accepted-cards {
  display: flex;
  gap: 0.5rem;
}

.card-brand-icon {
  width: 40px;
  height: 26px;
  border-radius: 4px;
  border: 1px solid #e5e7eb;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 700;
  color: #64748b;
}

/* KYC warning */
.kyc-warning-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.75rem;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  margin-top: 0.75rem;
}

.kyc-warning-banner i {
  color: #d97706;
  font-size: 0.9rem;
  margin-top: 1px;
  flex-shrink: 0;
}

.kyc-warning-banner span {
  color: #92400e;
  font-size: 0.78rem;
  line-height: 1.4;
}

/* Redirect info banner */
.redirect-info-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.redirect-info-banner .info-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #e0f2fe;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.redirect-info-banner .info-icon i {
  color: #0284c7;
  font-size: 1rem;
}

.redirect-info-banner p {
  margin: 0;
  color: #0c4a6e;
  font-size: 0.85rem;
  line-height: 1.5;
}

/* Security notice */
.security-notice {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

.security-notice .security-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #ecfdf5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.security-notice .security-icon i {
  color: #10b981;
  font-size: 1.1rem;
}

.security-notice .security-text h6 {
  font-size: 0.8rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 0.15rem;
}

.security-notice .security-text p {
  font-size: 0.75rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.4;
}

/* Tab pane transitions */
.checkout-tab-pane {
  display: none;
}

.checkout-tab-pane.active {
  display: block;
  animation: checkoutFadeIn 0.25s ease;
}

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

/* ============================================================
   DARK MODE OVERRIDES
   ============================================================ */
[data-theme="dark"] body,
[data-theme="dark"] {
  background-color: var(--body-bg);
  color: var(--body-color);
}

/* Typography */
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
  color: var(--heading-color);
}

[data-theme="dark"] p,
[data-theme="dark"] .dash-header p,
[data-theme="dark"] .text-muted {
  color: var(--text-muted) !important;
}

/* Panels */
[data-theme="dark"] .dash-panel {
  background: var(--surface);
  border-color: var(--border-color);
}

[data-theme="dark"] .dash-panel-header {
  border-bottom-color: var(--border-color);
}

[data-theme="dark"] .dash-panel-title {
  color: var(--heading-color);
}

[data-theme="dark"] .dash-panel-title i {
  color: var(--text-muted);
}

/* Tables */
[data-theme="dark"] .dash-table th {
  background: var(--surface-inset);
  color: var(--text-secondary);
  border-bottom-color: var(--border-color);
}

[data-theme="dark"] .dash-table td {
  color: var(--body-color);
  border-bottom-color: var(--border-color);
}

[data-theme="dark"] .dash-table tbody tr:hover {
  background: var(--surface-hover);
}

[data-theme="dark"] .dash-table .cell-mono {
  color: #a5b4fc;
}

[data-theme="dark"] .dash-table .cell-muted {
  color: var(--text-secondary);
}

[data-theme="dark"] .dash-table .cell-amount {
  color: var(--body-color);
}

/* Stat cards */
[data-theme="dark"] .stat-card {
  background: var(--surface);
  border-color: var(--border-color);
}

[data-theme="dark"] .stat-card:hover {
  border-color: #6366f1;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

[data-theme="dark"] .stat-card-active {
  border-color: #6366f1;
  background: rgba(99, 102, 241, 0.1);
}

[data-theme="dark"] .stat-card-label {
  color: var(--text-secondary);
}

[data-theme="dark"] .stat-card-value {
  color: var(--heading-color);
}

/* Stat card icon backgrounds (dark variants) */
[data-theme="dark"] .stat-card-icon.blue   { background: rgba(59, 130, 246, 0.15); }
[data-theme="dark"] .stat-card-icon.green  { background: rgba(16, 185, 129, 0.15); }
[data-theme="dark"] .stat-card-icon.amber  { background: rgba(245, 158, 11, 0.15); }
[data-theme="dark"] .stat-card-icon.purple { background: rgba(139, 92, 246, 0.15); }
[data-theme="dark"] .stat-card-icon.rose   { background: rgba(244, 63, 94, 0.15); }
[data-theme="dark"] .stat-card-icon.cyan   { background: rgba(6, 182, 212, 0.15); }

/* Badges */
[data-theme="dark"] .dash-badge.green  { background: rgba(16, 185, 129, 0.15); color: #34d399; }
[data-theme="dark"] .dash-badge.amber  { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
[data-theme="dark"] .dash-badge.red    { background: rgba(239, 68, 68, 0.15); color: #f87171; }
[data-theme="dark"] .dash-badge.blue   { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
[data-theme="dark"] .dash-badge.purple { background: rgba(139, 92, 246, 0.15); color: #a78bfa; }
[data-theme="dark"] .dash-badge.gray   { background: rgba(100, 116, 139, 0.15); color: #94a3b8; }

/* Tabs */
[data-theme="dark"] .dash-tabs {
  background: var(--surface);
}

[data-theme="dark"] .dash-tab {
  color: var(--text-secondary);
}

[data-theme="dark"] .dash-tab:hover:not(.active) {
  color: var(--body-color);
  background: var(--surface-hover);
}

[data-theme="dark"] .dash-tab.active {
  background: var(--surface-hover);
  color: #a5b4fc;
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .dash-tab-count {
  background: var(--border-color);
  color: var(--text-secondary);
}

[data-theme="dark"] .dash-tab.active .dash-tab-count {
  background: rgba(99, 102, 241, 0.2);
  color: #818cf8;
}

/* Buttons */
[data-theme="dark"] .btn-dash {
  background: var(--surface);
  border-color: var(--border-color);
  color: var(--body-color);
}

[data-theme="dark"] .btn-dash:hover {
  border-color: #6366f1;
  color: #a5b4fc;
  background: rgba(99, 102, 241, 0.1);
}

[data-theme="dark"] .btn-dash.primary {
  background: #6366f1;
  border-color: #6366f1;
  color: white;
}

[data-theme="dark"] .btn-dash.primary:hover {
  background: #4f46e5;
  border-color: #4f46e5;
}

[data-theme="dark"] .btn-dash.success {
  border-color: rgba(16, 185, 129, 0.3);
  color: #34d399;
  background: rgba(16, 185, 129, 0.1);
}

/* Forms */
[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select,
[data-theme="dark"] .checkout-input {
  background-color: var(--input-bg);
  border-color: var(--input-border);
  color: var(--input-color);
}

[data-theme="dark"] .form-control::placeholder,
[data-theme="dark"] .checkout-input::placeholder {
  color: var(--input-placeholder);
}

[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus,
[data-theme="dark"] .checkout-input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

[data-theme="dark"] .form-label {
  color: var(--body-color);
}

/* Amount input group */
[data-theme="dark"] .amount-input-group {
  border-color: var(--input-border);
}

[data-theme="dark"] .amount-prefix,
[data-theme="dark"] .amount-suffix {
  background: var(--surface-alt);
  color: var(--text-muted);
  border-color: var(--border-color);
}

[data-theme="dark"] .amount-input-group input {
  background: var(--input-bg);
  color: var(--input-color);
}

/* Profile items */
[data-theme="dark"] .profile-item-label {
  color: var(--text-secondary);
}

[data-theme="dark"] .profile-item-value {
  color: var(--body-color);
}

/* User rows */
[data-theme="dark"] .user-row-name {
  color: var(--body-color);
}

[data-theme="dark"] .user-row-sub {
  color: var(--text-secondary);
}

/* Status list */
[data-theme="dark"] .status-list-item {
  border-bottom-color: var(--border-color);
}

[data-theme="dark"] .status-list-left {
  color: var(--body-color);
}

/* Quick bar */
[data-theme="dark"] .quick-bar {
  background: var(--surface);
  border-color: var(--border-color);
}

[data-theme="dark"] .quick-bar-title {
  color: var(--body-color);
}

[data-theme="dark"] .quick-bar-meta {
  color: var(--text-muted);
}

/* Quick bar icon backgrounds (dark) */
[data-theme="dark"] .quick-bar-icon.blue   { background: rgba(59, 130, 246, 0.15); }
[data-theme="dark"] .quick-bar-icon.red    { background: rgba(239, 68, 68, 0.15); }
[data-theme="dark"] .quick-bar-icon.green  { background: rgba(16, 185, 129, 0.15); }
[data-theme="dark"] .quick-bar-icon.amber  { background: rgba(245, 158, 11, 0.15); }
[data-theme="dark"] .quick-bar-icon.purple { background: rgba(139, 92, 246, 0.15); }

/* Empty states */
[data-theme="dark"] .dash-empty {
  color: var(--text-secondary);
}

/* Toast notifications */
[data-theme="dark"] .toast-notification {
  background: var(--surface);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .toast-body {
  color: var(--body-color);
}

[data-theme="dark"] .toast-close {
  color: var(--text-secondary);
}

[data-theme="dark"] .toast-close:hover {
  background: var(--surface-hover);
  color: var(--body-color);
}

/* Dropdown menu */
[data-theme="dark"] .dropdown-menu {
  background: var(--surface);
  border-color: var(--border-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .dropdown-item {
  color: var(--body-color);
}

[data-theme="dark"] .dropdown-item:hover {
  background: var(--surface-hover);
  color: var(--body-color);
}

/* Footer */
[data-theme="dark"] .site-footer {
  background: var(--footer-bg);
  border-top-color: var(--navbar-border);
}

/* Alerts */
[data-theme="dark"] .alert-info {
  background: rgba(59, 130, 246, 0.1);
  color: #93c5fd;
  border-color: rgba(59, 130, 246, 0.2);
}

[data-theme="dark"] .alert-success {
  background: rgba(16, 185, 129, 0.1);
  color: #6ee7b7;
}

[data-theme="dark"] .alert-warning {
  background: rgba(245, 158, 11, 0.1);
  color: #fcd34d;
}

[data-theme="dark"] .alert-danger {
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
}

/* Auth pages */
[data-theme="dark"] .auth-container {
  background-color: var(--body-bg);
}

[data-theme="dark"] .auth-card {
  background: var(--surface);
  border-color: var(--border-color);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .auth-card-header {
  background: var(--auth-header-bg);
}

[data-theme="dark"] .auth-card-body {
  background: var(--surface);
}

/* Cards (Bootstrap fallback) */
[data-theme="dark"] .card {
  background: var(--surface);
  border-color: var(--border-color);
}

[data-theme="dark"] .card-header {
  background: var(--surface) !important;
  border-bottom-color: var(--border-color);
}

[data-theme="dark"] .table {
  color: var(--body-color);
}

[data-theme="dark"] .table-light {
  background: var(--surface-inset) !important;
}

/* KYC alert */
[data-theme="dark"] .kyc-alert {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.2);
}

[data-theme="dark"] .kyc-alert-body h6 { color: #93c5fd; }
[data-theme="dark"] .kyc-alert-body p { color: #93c5fd; }

/* Checkout */
[data-theme="dark"] .checkout-form-panel {
  background: var(--surface);
  border-color: var(--border-color);
}

[data-theme="dark"] .checkout-form-body {
  background: var(--surface);
}

[data-theme="dark"] .form-section-title {
  color: var(--text-secondary);
}

[data-theme="dark"] .form-section-divider {
  background: var(--border-color);
}

[data-theme="dark"] .sidebar-card {
  background: var(--surface);
  border-color: var(--border-color);
}

[data-theme="dark"] .sidebar-title {
  color: var(--text-secondary);
}

[data-theme="dark"] .checkout-label {
  color: var(--body-color);
}

[data-theme="dark"] .checkout-input {
  background-color: var(--input-bg);
  border-color: var(--input-border);
  color: var(--input-color);
}

[data-theme="dark"] .summary-label {
  color: var(--text-muted);
}

[data-theme="dark"] .summary-value {
  color: var(--body-color);
}

[data-theme="dark"] .security-footer {
  background: var(--surface-inset);
  border-top-color: var(--border-color);
}

[data-theme="dark"] .security-notice {
  background: var(--surface-inset);
  border-top-color: var(--border-color);
}

/* Payment method selector */
[data-theme="dark"] .payment-method-selector {
  background: var(--surface);
}

[data-theme="dark"] .payment-method-option {
  color: var(--text-secondary);
}

[data-theme="dark"] .payment-method-option.active {
  background: var(--surface-hover);
  color: #a5b4fc;
  box-shadow: var(--shadow-sm);
}

/* Code blocks */
[data-theme="dark"] code {
  background: var(--code-bg);
  color: var(--code-color);
}

[data-theme="dark"] pre {
  background: #1e293b !important;
}

/* Scrollbar (webkit) */
[data-theme="dark"] ::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

[data-theme="dark"] ::-webkit-scrollbar-track {
  background: var(--surface-inset);
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* Dark mode toggle button */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: rgba(255, 255, 255, 0.65);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1rem;
  padding: 0;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  color: white;
  border-color: rgba(255, 255, 255, 0.15);
}
