/* User Dashboard Styles - Premium SaaS Style */

:root {
  --bg: #f8fafc;
  --side: #ffffff;
  --side-hover: #f1f5f9;
  --accent: #4f46e5;
  --accent2: #7c3aed;
  --accent-hover: #4338ca;
  --text: #1e293b;
  --text-muted: #64748b;
  --card: #ffffff;
  --border: #e2e8f0;
  --border-focus: #cbd5e1;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --radius: 12px;
  --radius-lg: 16px;
  --transition: all 0.2s ease;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #0ea5e9;
  --purple: #8b5cf6;
  --pink: #ec4899;
  --orange: #f97316;
  --teal: #14b8a6;
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}

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

/* Layout */
.layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 260px;
  background: var(--side);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  height: 100vh;
  z-index: 100;
  transition: width 0.25s ease;
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 20px;
  font-size: 20px;
  font-weight: 800;
  color: var(--accent);
  border-bottom: 1px solid var(--border);
}

.sidebar-brand i { font-size: 28px; }

.sidebar-nav {
  padding: 16px 12px;
  overflow-y: auto;
  flex: 1;
}

.nav-group { margin-bottom: 6px; }

.nav-group-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 8px 14px 4px;
  color: var(--text-muted);
}
.nav-group-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  opacity: 0.7;
  font-weight: 600;
}
.nav-group-caret { font-size: 11px; transition: transform 0.2s; opacity: 0.7; }
.nav-group.open .nav-group-caret { transform: rotate(180deg); }
.nav-group-items { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.nav-group.open .nav-group-items { max-height: 700px; }

.nav-badge {
  margin-left: auto;
  background: var(--danger, #ef4444);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  min-width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
}

.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  color: var(--text-muted);
  border-radius: var(--radius);
  margin-bottom: 4px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}

.sidebar-nav .nav-link i { font-size: 18px; width: 22px; text-align: center; }

.sidebar-nav .nav-link:hover {
  background: var(--side-hover);
  color: var(--text);
}

.sidebar-nav .nav-link.active {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

.sidebar-nav .nav-link.active i { color: #fff; }

/* Collapsed sidebar - icon only */
.sidebar.collapsed { width: 72px; }
.sidebar.collapsed .sidebar-brand .brand-text { display: none; }
.sidebar.collapsed .nav-group-label,
.sidebar.collapsed .nav-link span:not(.nav-badge),
.sidebar.collapsed .nav-group-caret { display: none; }
.sidebar.collapsed .nav-group-toggle { justify-content: center; padding: 8px 0 4px; }
.sidebar.collapsed .sidebar-nav .nav-link { justify-content: center; padding: 12px 0; }
.sidebar.collapsed .sidebar-nav .nav-link i { width: auto; font-size: 20px; }
.sidebar.collapsed .nav-badge { position: absolute; top: 6px; right: 14px; margin: 0; }
.sidebar.collapsed .nav-link { position: relative; }
.sidebar.collapsed .sidebar-brand { justify-content: center; padding: 24px 0; }

/* Main */
.main {
  flex: 1;
  margin-left: 260px;
  transition: margin-left 0.25s ease;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main.collapsed { margin-left: 72px; }

.content { padding: 24px; flex: 1; }

/* Topbar */
.topbar {
  height: 68px;
  flex-shrink: 0;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.btn-toggle {
  border: none;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
  color: var(--text-muted);
  padding: 8px;
  border-radius: 8px;
  transition: var(--transition);
}

.btn-toggle:hover { background: var(--bg); color: var(--text); }

.topbar-breadcrumb { flex: 1; }

.page-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  color: var(--text);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

/* Buttons */
.btn {
  border-radius: 8px;
  font-weight: 500;
  padding: 10px 20px;
  font-size: 13.5px;
  transition: var(--transition);
  border: 1px solid transparent;
}

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

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }

.btn-secondary { background: #e2e8f0; border-color: #e2e8f0; color: var(--text); }
.btn-secondary:hover { background: #cbd5e1; border-color: #cbd5e1; }

.btn-success { background: var(--success); border-color: var(--success); color: #fff; }
.btn-warning { background: var(--warning); border-color: var(--warning); color: #fff; }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-info { background: var(--info); border-color: var(--info); color: #fff; }
.btn-purple { background: var(--purple); border-color: var(--purple); color: #fff; }
.btn-pink { background: var(--pink); border-color: var(--pink); color: #fff; }
.btn-orange { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn-teal { background: var(--teal); border-color: var(--teal); color: #fff; }

.btn-outline-primary { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn-outline-primary:hover { background: var(--accent); color: #fff; }
.btn-outline-secondary { border-color: var(--border); color: var(--text); background: transparent; }
.btn-outline-secondary:hover { background: var(--bg); border-color: var(--border-focus); }
.btn-outline-success { border-color: var(--success); color: var(--success); }
.btn-outline-success:hover { background: var(--success); color: #fff; }
.btn-outline-warning { border-color: var(--warning); color: var(--warning); }
.btn-outline-warning:hover { background: var(--warning); color: #fff; }
.btn-outline-info { border-color: var(--info); color: var(--info); }
.btn-outline-info:hover { background: var(--info); color: #fff; }
.btn-outline-danger { border-color: var(--danger); color: var(--danger); }
.btn-outline-danger:hover { background: var(--danger); color: #fff; }

.btn-action { text-align: left; justify-content: flex-start; gap: 10px; padding: 12px 16px; }
.btn-action i { font-size: 18px; }

/* Form Controls */
.form-control, .form-select {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  background: #fff;
  color: var(--text);
  transition: var(--transition);
}

.form-control:focus, .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
  outline: none;
}

.form-label { font-weight: 500; color: var(--text); margin-bottom: 6px; font-size: 13.5px; }
.form-text { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* Cards */
.card-premium {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.section-head {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}

.section-head i { color: var(--accent); font-size: 18px; }

/* Stat Cards */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: var(--transition);
}

.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon i { font-size: 22px; color: #fff; }

.stat-icon.bg-primary { background: linear-gradient(135deg, var(--accent), var(--accent2)); }
.stat-icon.bg-success { background: linear-gradient(135deg, var(--success), #059669); }
.stat-icon.bg-warning { background: linear-gradient(135deg, var(--warning), #d97706); }
.stat-icon.bg-danger { background: linear-gradient(135deg, var(--danger), #dc2626); }
.stat-icon.bg-info { background: linear-gradient(135deg, var(--info), #0284c7); }
.stat-icon.bg-purple { background: linear-gradient(135deg, var(--purple), #7c3aed); }
.stat-icon.bg-pink { background: linear-gradient(135deg, var(--pink), #db2777); }
.stat-icon.bg-orange { background: linear-gradient(135deg, var(--orange), #ea580c); }
.stat-icon.bg-teal { background: linear-gradient(135deg, var(--teal), #0d9488); }

.stat-content { flex: 1; min-width: 0; }

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin: 4px 0;
  word-break: break-word;
}

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

/* Badges */
.badge {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
}

/* Tables */
.table-responsive { width: 100%; overflow: auto; max-height: 65vh; }
.table-premium { width: 100%; border-collapse: separate; border-spacing: 0; }
.table-premium thead th {
  position: sticky; top: 0; z-index: 3;
  background: #f9fafb;
  text-align: left;
  padding: 12px 14px;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.table-premium td { padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: 14px; }
.table-premium tr:hover td { background: #f9fafb; }
.table-premium th:first-child, .table-premium td:first-child { position: sticky; left: 0; background: #fff; z-index: 4; }
.table-premium thead th:first-child { background: #f9fafb; z-index: 5; }

/* Dropdowns */
.dropdown-menu {
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  margin-top: 8px;
}

.dropdown-item {
  padding: 10px 16px;
  font-size: 13.5px;
  transition: var(--transition);
}

.dropdown-item:hover { background: var(--bg); color: var(--text); }
.dropdown-item i { width: 20px; text-align: center; margin-right: 8px; }

.dropdown-header { padding: 10px 16px; font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; }

.dropdown-divider { margin: 8px 0; border-color: var(--border); }

/* Notification Dropdown */
.notification-dropdown .dropdown-menu { min-width: 350px; max-height: 400px; overflow-y: auto; }
.notification-item { display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; }
.notification-item.unread { background: #fafbff; }
.notification-item i { font-size: 20px; margin-top: 2px; }
.notification-item .flex-grow-1 { min-width: 0; }
.notification-item .fw-medium { font-size: 13.5px; }
.notification-item .small { font-size: 12px; }

/* Topbar icon buttons (bell + ticket) */
.notification-btn, .topbar-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  color: var(--text-muted);
  font-size: 20px;
  text-decoration: none;
  transition: var(--transition);
  background: transparent;
  border: 0;
  cursor: pointer;
}
.notification-btn:hover, .topbar-icon-btn:hover { background: var(--side-hover); color: var(--text); }
.notification-badge {
  position: absolute;
  top: 4px; right: 4px;
  background: var(--danger, #ef4444);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px; height: 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--bg, #fff);
}

/* Profile Dropdown */
.profile-dropdown .dropdown-menu { min-width: 260px; }
.profile-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 8px;
  transition: var(--transition);
}
.profile-btn:hover { background: var(--bg); }
.profile-btn .avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
}
.profile-btn .avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.profile-btn span { font-weight: 500; font-size: 14px; }
.profile-menu .dropdown-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  margin: -8px -8px 8px -8px;
}
.profile-menu .dropdown-header .fw-bold { font-size: 14px; }
.profile-menu .dropdown-header .small { font-size: 12px; }

/* Language/Currency Switchers */
.lang-switch .btn, .currency-switch .btn {
  padding: 6px 10px;
  font-size: 13px;
}

/* Alerts */
.alert {
  border-radius: 10px;
  border: none;
  padding: 14px 18px;
  font-size: 13.5px;
}

.alert-success { background: #ecfdf5; color: #065f46; border-left: 4px solid var(--success); }
.alert-danger { background: #fef2f2; color: #991b1b; border-left: 4px solid var(--danger); }
.alert-warning { background: #fffbeb; color: #92400e; border-left: 4px solid var(--warning); }
.alert-info { background: #eff6ff; color: #1e40af; border-left: 4px solid var(--info); }

.alert-dismissible .btn-close { padding: 0.75rem 1rem; }

/* Trial/Expiry Banners */
.trial-banner, .expiry-banner {
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.trial-banner { background: #fffbeb; border: 1px solid #fcd34d; color: #92400e; }
.expiry-banner { background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; }

.trial-banner .fw-bold, .expiry-banner .fw-bold { font-size: 14.5px; }
.trial-banner .small, .expiry-banner .small { font-size: 13px; }

/* Modals */
.modal-content { border-radius: var(--radius-lg); border: none; box-shadow: var(--shadow-lg); }
.modal-header { border-bottom: 1px solid var(--border); padding: 16px 24px; }
.modal-title { font-weight: 600; font-size: 16px; }
.modal-body { padding: 24px; }
.modal-footer { border-top: 1px solid var(--border); padding: 16px 24px; gap: 12px; }

/* Login/Register Pages */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0f172a, #1e1b4b);
  padding: 20px;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--card);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.auth-card h2 { font-weight: 800; text-align: center; margin-bottom: 6px; font-size: 26px; }
.auth-card .sub { text-align: center; color: var(--text-muted); margin-bottom: 28px; font-size: 14px; }

.auth-form .form-group { margin-bottom: 20px; }
.auth-form .form-control { padding: 14px 16px; font-size: 15px; }
.auth-form .btn { width: 100%; padding: 14px; font-size: 15px; font-weight: 600; margin-top: 8px; }

.auth-links { text-align: center; margin-top: 24px; }
.auth-links a { color: var(--accent); font-weight: 500; font-size: 13.5px; }
.auth-links a:hover { text-decoration: underline; }
.auth-links .divider { color: var(--border); margin: 0 12px; }

/* Mobile Responsive */
@media (max-width: 991.98px) {
  .sidebar { transform: translateX(-100%); width: 260px; }
  .sidebar.open { transform: translateX(0); }
  .sidebar.collapsed { width: 260px; }
  .main { margin-left: 0; }
  .main.collapsed { margin-left: 0; }
  .topbar-search { display: none; }
  .page-title { font-size: 18px; }
  .profile-btn span { display: none; }
  .btn-action span { display: none; }
  .btn-action { justify-content: center; padding: 12px; }
  .stat-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
  .stat-card { padding: 16px; }
  .stat-icon { width: 40px; height: 40px; }
  .stat-icon i { font-size: 18px; }
  .stat-value { font-size: 20px; }
  .content { padding: 16px; }
}

@media (max-width: 767.98px) {
  .stat-grid { grid-template-columns: 1fr; }
  .topbar { padding: 0 16px; }
  .card-premium { padding: 16px; }
  .auth-card { padding: 28px 20px; }
  .section-head { font-size: 14px; }
  .notification-dropdown .dropdown-menu { min-width: 300px; left: -100px; }
  .profile-dropdown .dropdown-menu { min-width: 240px; left: -60px; }
}

/* Animations */
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideIn { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: translateX(0); } }

.fade-in { animation: fadeIn 0.3s ease forwards; }
.slide-in { animation: slideIn 0.3s ease forwards; }

/* Stagger animation for stat cards */
.stat-grid .stat-card:nth-child(1) { animation-delay: 0.05s; }
.stat-grid .stat-card:nth-child(2) { animation-delay: 0.1s; }
.stat-grid .stat-card:nth-child(3) { animation-delay: 0.15s; }
.stat-grid .stat-card:nth-child(4) { animation-delay: 0.2s; }
.stat-grid .stat-card:nth-child(5) { animation-delay: 0.25s; }
.stat-grid .stat-card:nth-child(6) { animation-delay: 0.3s; }
.stat-grid .stat-card:nth-child(7) { animation-delay: 0.35s; }
.stat-grid .stat-card:nth-child(8) { animation-delay: 0.4s; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* Focus visible for accessibility */
*:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Password toggle button - positioned inside the input field */
.pw-wrap {
  position: relative;
}
.pw-wrap .form-control {
  padding-right: 48px;
}
.pw-toggle {
  position: absolute;
  top: 50%;
  right: 4px;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.pw-toggle:hover { background: var(--bg); color: var(--text); }

/* Print styles */
@media print {
  .sidebar, .topbar, .btn, .dropdown { display: none !important; }
  .main { margin-left: 0; }
  .card-premium { box-shadow: none; border: 1px solid #ccc; }
}

/* Loading states */
.loading { position: relative; pointer-events: none; }
.loading::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}
.loading::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 32px; height: 32px;
  margin: -16px 0 0 -16px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  z-index: 11;
}

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

/* Empty states */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
}
.empty-state i { font-size: 48px; margin-bottom: 16px; opacity: 0.5; }
.empty-state h5 { font-weight: 600; margin-bottom: 8px; color: var(--text); }
.empty-state p { font-size: 14px; }

/* Score circle (PageSpeed) */
.score-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  font-weight: 800;
  margin: 8px auto;
  border: 6px solid currentColor;
}

/* Progress bars */
.progress { height: 6px; border-radius: 3px; background: var(--border); overflow: hidden; }
.progress-bar { border-radius: 3px; transition: width 0.3s ease; }

/* Avatar */
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  font-size: 16px;
}
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.avatar-sm { width: 32px; height: 32px; font-size: 13px; }
.avatar-lg { width: 56px; height: 56px; font-size: 22px; }

/* Step indicators */
.steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 32px;
}
.step {
  flex: 1;
  text-align: center;
  position: relative;
  padding: 0 12px;
}
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 20px;
  left: 50%;
  right: 0;
  height: 2px;
  background: var(--border);
  z-index: 1;
}
.step.active:not(:last-child)::after { background: var(--accent); }
.step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  font-weight: 600;
  color: var(--text-muted);
  position: relative;
  z-index: 2;
  transition: var(--transition);
}
.step.active .step-circle { background: var(--accent); border-color: var(--accent); color: #fff; }
.step.completed .step-circle { background: var(--success); border-color: var(--success); color: #fff; }
.step-label { font-size: 12px; font-weight: 500; color: var(--text-muted); }
.step.active .step-label { color: var(--accent); font-weight: 600; }

/* Badge pills */
.badge-pill { padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.badge-active { background: #dcfce7; color: #166534; }
.badge-pending { background: #fef9c3; color: #854d0e; }
.badge-canceled { background: #fee2e2; color: #991b1b; }
.badge-trial { background: #dbeafe; color: #1e40af; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-info { background: #dbeafe; color: #1e40af; }

/* Card hover effects */
.link-card { text-decoration: none; transition: var(--transition); }
.link-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.link-card .hint { font-size: 11px; opacity: 0.85; margin-top: 4px; }

/* Toast container */
#toast-container { z-index: 9999; }

/* File upload area */
.file-upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 40px 20px;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
}
.file-upload-area:hover, .file-upload-area.dragover {
  border-color: var(--accent);
  background: #fafbff;
}
.file-upload-area i { font-size: 48px; color: var(--text-muted); margin-bottom: 16px; }
.file-upload-area p { margin: 0; color: var(--text-muted); }

/* Tab navigation */
.nav-tabs-custom {
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.nav-tabs-custom .nav-link {
  border: none;
  padding: 12px 20px;
  color: var(--text-muted);
  font-weight: 500;
  border-radius: 8px 8px 0 0;
  margin-right: 4px;
  transition: var(--transition);
}
.nav-tabs-custom .nav-link:hover { color: var(--text); background: var(--bg); }
.nav-tabs-custom .nav-link.active {
  color: var(--accent);
  background: #fafbff;
  border-bottom: 2px solid var(--accent);
}

/* List group */
.list-group-flush .list-group-item { border: none; padding: 12px 0; }
.list-group-flush .list-group-item:first-child { padding-top: 0; }
.list-group-flush .list-group-item:last-child { padding-bottom: 0; }
.list-group-item-action:hover { background: transparent; }

/* Custom checkbox/radio */
.form-check-input {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  margin-top: 2px;
}
.form-check-input:checked { background-color: var(--accent); border-color: var(--accent); }
.form-check-input:focus { box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15); }
.form-check-label { cursor: pointer; font-size: 14px; }

/* Spinner */
.spinner-border-sm { width: 1rem; height: 1rem; border-width: 0.15em; }

/* Utility classes */
.text-truncate-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.text-truncate-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }