/* ============================================
       DESIGN TOKENS - DARK THEME (default)
    ============================================ */
:root {
  --bg: #0b0d12;
  --bg2: #111318;
  --bg3: #181c24;
  --surface: #1e2330;
  --surface2: #252b3a;
  --border: #2a3045;
  --border-light: #333d55;
  --text: #e8eaf0;
  --text-muted: #7a8299;
  --text-dim: #4a5268;
  --accent: #4f8ef7;
  --accent-glow: rgba(79, 142, 247, 0.15);
  --accent2: #7c5cfc;
  --success: #22c55e;
  --success-bg: rgba(34, 197, 94, 0.1);
  --warning: #f59e0b;
  --warning-bg: rgba(245, 158, 11, 0.1);
  --danger: #ef4444;
  --danger-bg: rgba(239, 68, 68, 0.1);
  --gold: #f4c542;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.6);
  --font-display: "Manrope", sans-serif;
  --font-body: "Alex Brush", sans-serif;
  --drivschol-font: "Manrope", sans-serif;
  --drivschol-heading-font: "Urbanist", sans-serif;
  --drivschol-special-font: "Alex Brush", cursive;
  --drivschol-fontawesome: "Font Awesome 5 free";
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
       DESIGN TOKENS - LIGHT THEME
    ============================================ */
[data-theme="light"] {
  --bg: #f8f9fb;
  --bg2: #ffffff;
  --bg3: #f0f1f5;
  --surface: #e8eaef;
  --surface2: #dfe2e9;
  --border: #d1d5e0;
  --border-light: #c5cad5;
  --text: #1a1a2e;
  --text-muted: #5a5f75;
  --text-dim: #8a8f99;
  --accent: #4f8ef7;
  --accent-glow: rgba(79, 142, 247, 0.1);
  --accent2: #7c5cfc;
  --success: #22c55e;
  --success-bg: rgba(34, 197, 94, 0.08);
  --warning: #f59e0b;
  --warning-bg: rgba(245, 158, 11, 0.08);
  --danger: #ef4444;
  --danger-bg: rgba(239, 68, 68, 0.08);
  --gold: #d4a520;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.12);
  --font-display: "Manrope", sans-serif;
  --font-body: "Alex Brush", sans-serif;
  --drivschol-font: "Manrope", sans-serif;
  --drivschol-heading-font: "Urbanist", sans-serif;
  --drivschol-special-font: "Alex Brush", cursive;
  --drivschol-fontawesome: "Font Awesome 5 free";
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light theme overrides for plan cards */
[data-theme="light"] .current-plan-card {
  background: linear-gradient(135deg, #e8eef8 0%, #f0f4fa 60%, #ffffff 100%);
}

[data-theme="light"] .plan-card.current {
  background: linear-gradient(135deg, #e8eef8 0%, var(--bg2) 100%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ============================================
       LOGIN MODAL
    ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 8, 14, 0.92);
  backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}
.modal-overlay.hidden {
  display: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.login-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px;
  width: 420px;
  max-width: 95vw;
  animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.login-card::before {
  content: "";
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  height: 280px;
  background: radial-gradient(
    circle,
    rgba(79, 142, 247, 0.12) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.login-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 36px;
}

.login-logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  font-family: var(--font-display);
  color: white;
}

.login-logo-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.login-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  line-height: 1.2;
}

.login-subtitle {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 36px;
  font-weight: 300;
}

.btn-mirnint-sso {
  width: 100%;
  padding: 15px 20px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border: none;
  border-radius: var(--radius);
  color: white;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition);
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
}

.btn-mirnint-sso::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(255, 255, 255, 0.1), transparent);
}

.btn-mirnint-sso:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(79, 142, 247, 0.4);
}

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

.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  color: var(--text-dim);
  font-size: 12px;
}
.login-divider::before,
.login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.login-demo-btn {
  width: 100%;
  padding: 13px 20px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.login-demo-btn:hover {
  border-color: var(--border-light);
  color: var(--text);
  background: var(--surface);
}

.login-security {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  color: var(--text-dim);
  font-size: 12px;
  justify-content: center;
}

/* ============================================
       LAYOUT
    ============================================ */
.app {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 240px;
  background: var(--bg2);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  transition: transform var(--transition);
}

.sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-logo {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
}

.sidebar-brand {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 400;
  border: none;
  background: none;
  text-align: left;
  width: 100%;
}

.nav-item:hover {
  background: var(--surface);
  color: var(--text);
}

.nav-item.active {
  background: var(--accent-glow);
  color: var(--accent);
  font-weight: 500;
}

.nav-item-icon {
  font-size: 16px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.sidebar-section-label {
  padding: 16px 12px 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.sidebar-footer {
  padding: 16px 12px;
  border-top: 1px solid var(--border);
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--surface);
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
  font-family: var(--font-display);
}

.user-info {
  flex: 1;
  min-width: 0;
}
.user-name {
  font-size: 13px;
  font-weight: 500;
  truncate: true;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-role {
  font-size: 11px;
  color: var(--text-muted);
}

.logout-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-dim);
  padding: 4px;
  border-radius: 4px;
  transition: var(--transition);
  font-size: 14px;
}
.logout-btn:hover {
  color: var(--danger);
}

/* ============================================
       MAIN CONTENT
    ============================================ */
.main {
  margin-left: 240px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.topbar {
  padding: 20px 32px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg2);
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
}

.badge-success {
  background: var(--success-bg);
  color: var(--success);
}
.badge-warning {
  background: var(--warning-bg);
  color: var(--warning);
}
.badge-accent {
  background: var(--accent-glow);
  color: var(--accent);
}
.badge-purple {
  background: rgba(124, 92, 252, 0.15);
  color: var(--accent2);
}

.content {
  padding: 32px;
  max-width: 1100px;
  width: 100%;
}

/* ============================================
       TABS
    ============================================ */
.tabs {
  display: flex;
  gap: 2px;
  background: var(--bg3);
  border: 1px solid var(--border);
  padding: 4px;
  border-radius: var(--radius);
  margin-bottom: 32px;
  width: fit-content;
}

.tab {
  padding: 8px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: var(--transition);
  color: var(--text-muted);
  border: none;
  background: none;
}

.tab:hover {
  color: var(--text);
}

.tab.active {
  background: var(--surface2);
  color: var(--text);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.tab-panel {
  display: none;
}
.tab-panel.active {
  display: block;
  animation: fadeIn 0.2s ease;
}

/* ============================================
       CARDS
    ============================================ */
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

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

.card-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}

.card-desc {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 300;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}
.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

/* ============================================
       OVERVIEW / STATS
    ============================================ */
.stat-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: var(--transition);
}

.stat-card:hover {
  border-color: var(--border-light);
}

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

.stat-value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-sub {
  font-size: 12px;
  color: var(--text-muted);
}

/* ============================================
       PLAN CURRENT
    ============================================ */
.current-plan-card {
  background: linear-gradient(135deg, #13193d 0%, #0f1525 60%, #0b0d12 100%);
  border: 1px solid rgba(79, 142, 247, 0.25);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.current-plan-card::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 240px;
  height: 240px;
  background: radial-gradient(
    circle,
    rgba(79, 142, 247, 0.12) 0%,
    transparent 70%
  );
}

.plan-name-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-glow);
  border: 1px solid rgba(79, 142, 247, 0.3);
  color: var(--accent);
  padding: 5px 12px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.plan-price-display {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 4px;
}

.plan-price-display sup {
  font-size: 20px;
  font-weight: 600;
  vertical-align: super;
}

.plan-price-display span.period {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-muted);
}

.plan-features-row {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.plan-feature-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
}

.plan-feature-item .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ============================================
       TRIAL BANNER
    ============================================ */
.trial-banner {
  background: linear-gradient(
    135deg,
    rgba(245, 158, 11, 0.08),
    rgba(245, 158, 11, 0.04)
  );
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.trial-banner.hidden {
  display: none;
}

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

.trial-icon {
  width: 40px;
  height: 40px;
  background: rgba(245, 158, 11, 0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.trial-text-title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 2px;
}
.trial-text-sub {
  font-size: 13px;
  color: var(--text-muted);
}

/* ============================================
       PLAN CARDS (PRICING)
    ============================================ */
.plan-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  transition: var(--transition);
  cursor: default;
}

.plan-card:hover {
  border-color: var(--border-light);
}

.plan-card.current {
  border-color: rgba(79, 142, 247, 0.4);
  background: linear-gradient(135deg, #13193d 0%, var(--bg2) 100%);
}

.plan-card.recommended {
  border-color: rgba(124, 92, 252, 0.4);
}

.plan-card-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 12px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-display);
}

.plan-card-badge.current {
  background: var(--accent);
  color: white;
}
.plan-card-badge.recommended {
  background: var(--accent2);
  color: white;
}

.plan-card-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.plan-card-price {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 12px 0 4px;
  line-height: 1;
}

.plan-card-period {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.plan-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.plan-feature-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.plan-feature-list li .check {
  color: var(--success);
  font-size: 14px;
  flex-shrink: 0;
}
.plan-feature-list li .cross {
  color: var(--text-dim);
  font-size: 14px;
  flex-shrink: 0;
}

.plan-feature-list li.highlight {
  color: var(--text);
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 16px 0;
}

/* ============================================
       BUTTONS
    ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: white;
}
.btn-primary:hover {
  background: #6ba0f8;
  box-shadow: 0 4px 20px rgba(79, 142, 247, 0.3);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.btn-outline:hover {
  border-color: var(--border-light);
  color: var(--text);
  background: var(--surface);
}

.btn-danger-outline {
  background: transparent;
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--danger);
}
.btn-danger-outline:hover {
  background: var(--danger-bg);
  border-color: var(--danger);
}

.btn-success {
  background: var(--success);
  color: #0b1a0e;
}
.btn-success:hover {
  background: #4ade80;
}

.btn-purple {
  background: var(--accent2);
  color: white;
}
.btn-purple:hover {
  background: #9370ff;
  box-shadow: 0 4px 20px rgba(124, 92, 252, 0.3);
}

.btn-sm {
  padding: 7px 14px;
  font-size: 12px;
  border-radius: 8px;
}
.btn-lg {
  padding: 13px 24px;
  font-size: 14px;
}
.btn-full {
  width: 100%;
  justify-content: center;
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ============================================
       ADDONS
    ============================================ */
.addon-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: var(--transition);
}

.addon-card:hover {
  border-color: var(--border-light);
}

.addon-card.active {
  border-color: rgba(79, 142, 247, 0.3);
  background: rgba(79, 142, 247, 0.04);
}

.addon-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.addon-info {
  flex: 1;
}
.addon-name {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 2px;
}
.addon-desc {
  font-size: 12px;
  color: var(--text-muted);
}

/* ============================================
       BILLING HISTORY
    ============================================ */
.invoice-table {
  width: 100%;
  border-collapse: collapse;
}

.invoice-table th {
  text-align: left;
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
}

.invoice-table td {
  padding: 14px 12px;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

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

.invoice-table tr:hover td {
  background: var(--surface);
}

/* ============================================
       PROFILE FORM
    ============================================ */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 7px;
}

.form-input {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  transition: var(--transition);
  outline: none;
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79, 142, 247, 0.1);
}

.form-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ============================================
       VEHICLE COUNTER
    ============================================ */
.vehicle-counter {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg3);
  width: fit-content;
}

.vehicle-counter-btn {
  width: 40px;
  height: 40px;
  background: var(--surface);
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: var(--text-muted);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.vehicle-counter-btn:hover {
  background: var(--surface2);
  color: var(--text);
}

.vehicle-counter-value {
  width: 64px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  border: none;
  background: none;
  color: var(--text);
  outline: none;
}

/* ============================================
       UPGRADE MODAL
    ============================================ */
.upgrade-modal {
  position: fixed;
  inset: 0;
  background: rgba(6, 8, 14, 0.85);
  backdrop-filter: blur(8px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.upgrade-modal.hidden {
  display: none;
}

.upgrade-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
  width: 520px;
  max-width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
}

.modal-close {
  width: 32px;
  height: 32px;
  background: var(--surface);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.modal-close:hover {
  background: var(--surface2);
  color: var(--text);
}

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

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--surface2);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
  font-size: 13px;
  animation: slideUp 0.3s ease;
  min-width: 280px;
}

.toast-icon {
  font-size: 16px;
}
.toast.success .toast-icon {
  color: var(--success);
}
.toast.error .toast-icon {
  color: var(--danger);
}

/* ============================================
       LOADING
    ============================================ */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
}

/* ============================================
       RESPONSIVE
    ============================================ */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    width: 260px;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .main {
    margin-left: 0;
  }
  .content {
    padding: 20px;
  }
  .topbar {
    padding: 16px 20px;
  }
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .plan-features-row {
    flex-direction: column;
    gap: 8px;
  }
}

/* ============================================
       MISC
    ============================================ */
.section-gap {
  margin-top: 24px;
}
.text-success {
  color: var(--success);
}
.text-warning {
  color: var(--warning);
}
.text-danger {
  color: var(--danger);
}
.text-accent {
  color: var(--accent);
}
.text-muted {
  color: var(--text-muted);
}
.font-display {
  font-family: var(--font-display);
}
.font-mono {
  font-family: monospace;
}

.flex {
  display: flex;
}
.items-center {
  align-items: center;
}
.justify-between {
  justify-content: space-between;
}
.gap-2 {
  gap: 8px;
}
.gap-3 {
  gap: 12px;
}
.gap-4 {
  gap: 16px;
}
.mt-2 {
  margin-top: 8px;
}
.mt-4 {
  margin-top: 16px;
}
.mb-4 {
  margin-bottom: 16px;
}

.extra-cost-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.extra-cost-row:last-child {
  border-bottom: none;
}

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0 0;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
}

/* ============================================
   CONFIRMATION MODAL
============================================ */
.confirm-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 8, 14, 0.92);
  backdrop-filter: blur(12px);
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

.confirm-modal-overlay.hidden {
  display: none;
}

.confirm-modal-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  width: 420px;
  max-width: 95vw;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
}

.confirm-modal-header {
  margin-bottom: 16px;
}

.confirm-modal-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.confirm-modal-body {
  margin-bottom: 28px;
}

.confirm-modal-message {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.confirm-modal-footer {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.confirm-modal-btn {
  flex: 1;
  max-width: 160px;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.confirm-modal-btn.cancel {
  background: var(--surface);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.confirm-modal-btn.cancel:hover {
  background: var(--surface2);
  color: var(--text);
  border-color: var(--border-light);
}

.confirm-modal-btn.yes {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: white;
}

.confirm-modal-btn.yes:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(79, 142, 247, 0.3);
}

.confirm-modal-btn.yes:active {
  transform: translateY(0);
}
