/* ==============================================
   ServerPoa — Main Stylesheet
   Theme: Dark Blue + Gold + White
   ============================================== */

:root {
  --bg-900: #0a0f1e;
  --bg-800: #0f172a;
  --bg-700: #1e2a45;
  --bg-600: #243352;
  --bg-500: #2d3f61;
  --border: rgba(255,255,255,0.08);
  --gold: #f59e0b;
  --gold-hover: #d97706;
  --gold-light: rgba(245, 158, 11, 0.15);
  --gold-muted: rgba(245, 158, 11, 0.4);
  --white: #ffffff;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --info: #3b82f6;
  --sidebar-w: 260px;
  --topbar-h: 60px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
  --shadow-sm: 0 2px 12px rgba(0,0,0,0.2);
  --transition: 0.2s ease;
}

* { box-sizing: border-box; }

body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background: var(--bg-800);
  color: var(--text-primary);
  color-scheme: dark;
  font-size: 0.875rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---- UTILITIES ---- */
.text-gold { color: var(--gold) !important; }
.bg-gold { background: var(--gold) !important; color: #000 !important; }
.border-gold { border-color: var(--gold) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-secondary-custom { color: var(--text-secondary); }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg-800); }
::-webkit-scrollbar-thumb { background: var(--bg-500); border-radius: 10px; }

/* ---- SIDEBAR ---- */
.sidebar {
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--bg-900);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  overflow-y: auto;
  transition: transform var(--transition);
}
.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}
.sidebar-brand i {
  color: var(--gold);
  font-size: 1.375rem;
}
.sidebar-toggle, .sidebar-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.1rem;
  padding: 0.25rem;
  cursor: pointer;
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.user-avatar, .topbar-avatar {
  width: 36px; height: 36px;
  background: var(--gold);
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
}
.user-info { min-width: 0; }
.user-name { font-weight: 600; font-size: 0.875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role { font-size: 0.75rem; color: var(--text-muted); }

.sidebar-nav {
  padding: 0.75rem 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.nav-section {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 0.875rem 1.5rem 0.375rem;
  text-transform: uppercase;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6875rem 1.5rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all var(--transition);
  position: relative;
  border-radius: 0;
}
.nav-item i { font-size: 1.05rem; width: 18px; flex-shrink: 0; }
.nav-item:hover {
  color: var(--text-primary);
  background: var(--bg-700);
}
.nav-item.active {
  color: var(--gold);
  background: var(--gold-light);
  font-weight: 600;
}
.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--gold);
  border-radius: 0 2px 2px 0;
}
.nav-badge {
  margin-left: auto;
  background: var(--gold);
  color: #000;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.125rem 0.5rem;
  border-radius: 99px;
  min-width: 20px;
  text-align: center;
}
.nav-badge.bg-danger { background: var(--danger) !important; color: #fff !important; }
.nav-badge.bg-warning { background: var(--warning) !important; color: #000 !important; }

/* ---- TOPBAR ---- */
.topbar {
  height: var(--topbar-h);
  background: var(--bg-900);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1.25rem;
  position: sticky;
  top: 0;
  z-index: 100;
  flex-shrink: 0;
}
.topbar-title {
  font-weight: 700;
  font-size: 1.0625rem;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar-actions { display: flex; align-items: center; gap: 0.5rem; }
.topbar-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
}
.topbar-btn:hover { color: var(--text-primary); border-color: var(--border); background: var(--bg-700); }
.topbar-toggle { background: none; border: none; color: var(--text-secondary); font-size: 1.25rem; cursor: pointer; }
.notification-dot {
  position: absolute;
  top: -4px; right: -4px;
  background: var(--danger);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 99px;
  min-width: 16px;
  text-align: center;
}
.client-topbar {
  height: var(--topbar-h);
  background: var(--bg-900);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

/* ---- MAIN WRAPPER ---- */
.main-wrapper {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: margin-left var(--transition);
}
.client-wrapper { margin-left: 0; }
@media (min-width: 1200px) {
  .client-wrapper { margin-left: var(--sidebar-w); }
}
.page-content {
  flex: 1;
  padding: 1.5rem;
}
.page-footer {
  padding: 1rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  border-top: 1px solid var(--border);
}

/* ---- CARDS ---- */
.card {
  background: var(--bg-700);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
}
.card-header {
  background: transparent;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  padding: 1rem 1.25rem;
}
.card-body { padding: 1.25rem; }
.card-footer {
  background: transparent;
  border-top: 1px solid var(--border);
  padding: 0.875rem 1.25rem;
}

/* ---- STAT CARDS ---- */
.stat-card {
  background: var(--bg-700);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.stat-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.375rem;
  flex-shrink: 0;
}
.stat-icon.gold { background: var(--gold-light); color: var(--gold); }
.stat-icon.blue { background: rgba(59,130,246,0.15); color: #3b82f6; }
.stat-icon.green { background: rgba(16,185,129,0.15); color: var(--success); }
.stat-icon.red { background: rgba(239,68,68,0.15); color: var(--danger); }
.stat-icon.purple { background: rgba(139,92,246,0.15); color: #8b5cf6; }
.stat-icon.cyan { background: rgba(6,182,212,0.15); color: #06b6d4; }
.stat-body { flex: 1; min-width: 0; }
.stat-value { font-size: 1.625rem; font-weight: 800; line-height: 1.2; }
.stat-label { font-size: 0.8125rem; color: var(--text-muted); font-weight: 500; }
.stat-change { font-size: 0.75rem; font-weight: 600; }
.stat-change.up { color: var(--success); }
.stat-change.down { color: var(--danger); }

/* ---- TABLES ---- */
.table-dark-custom {
  --bs-table-bg: var(--bg-700);
  --bs-table-color: var(--text-primary);
  --bs-table-border-color: var(--border);
  --bs-table-hover-bg: rgba(255,255,255,0.03);
  --bs-table-hover-color: var(--text-primary);
  color: var(--text-primary);
  border-color: var(--border);
}
.table-dark-custom thead th {
  background: var(--bg-600);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-color: var(--border);
  padding: 0.75rem 1rem;
  white-space: nowrap;
}
.table-dark-custom tbody td {
  border-color: var(--border);
  padding: 0.875rem 1rem;
  vertical-align: middle;
}
.table-dark-custom tbody tr { transition: background var(--transition); }
.table-dark-custom tbody tr:hover { background: rgba(255,255,255,0.03); }
.table-responsive { border-radius: var(--radius); overflow: hidden; }

/* ---- BADGES ---- */
.badge {
  font-weight: 600;
  font-size: 0.6875rem;
  padding: 0.3em 0.65em;
  border-radius: 6px;
}
.badge.bg-success { background: rgba(16,185,129,0.2) !important; color: #34d399 !important; border: 1px solid rgba(16,185,129,0.3); }
.badge.bg-danger { background: rgba(239,68,68,0.2) !important; color: #f87171 !important; border: 1px solid rgba(239,68,68,0.3); }
.badge.bg-warning { background: rgba(245,158,11,0.2) !important; color: var(--gold) !important; border: 1px solid var(--gold-muted); }
.badge.bg-info { background: rgba(59,130,246,0.2) !important; color: #60a5fa !important; border: 1px solid rgba(59,130,246,0.3); }
.badge.bg-secondary { background: rgba(100,116,139,0.2) !important; color: #94a3b8 !important; border: 1px solid rgba(100,116,139,0.3); }
.badge.bg-dark { background: rgba(30,41,59,0.8) !important; color: #94a3b8 !important; border: 1px solid var(--border); }

/* ---- FORMS ---- */
.form-control, .form-select {
  background: var(--bg-800);
  background-color: var(--bg-800);
  border: 1px solid var(--border);
  color: var(--text-primary);
  caret-color: var(--text-primary);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.875rem;
  font-size: 0.875rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus, .form-select:focus {
  background: var(--bg-800);
  background-color: var(--bg-800);
  border-color: var(--gold);
  color: var(--text-primary);
  box-shadow: 0 0 0 3px var(--gold-light);
  outline: none;
}
.form-control::placeholder { color: var(--text-muted); }
.form-control:disabled,
.form-select:disabled,
.form-control[readonly] {
  background-color: var(--bg-600);
  color: var(--text-secondary);
  opacity: 1;
}
.form-select option {
  background-color: var(--bg-800);
  color: var(--text-primary);
}
.form-control:-webkit-autofill,
.form-control:-webkit-autofill:hover,
.form-control:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text-primary);
  box-shadow: 0 0 0 1000px var(--bg-800) inset;
  transition: background-color 9999s ease-out 0s;
}
.form-control::-webkit-calendar-picker-indicator {
  filter: invert(1) opacity(0.65);
  cursor: pointer;
}
.form-check-input {
  background-color: var(--bg-800);
  border-color: var(--text-muted);
}
.form-check-input:checked {
  background-color: var(--gold);
  border-color: var(--gold);
}
.form-check-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-light);
}
.form-check-input:disabled {
  background-color: var(--bg-600);
  border-color: var(--text-muted);
  opacity: 0.7;
}
.form-label { font-weight: 600; font-size: 0.8125rem; color: var(--text-secondary); margin-bottom: 0.375rem; }
.form-text { color: var(--text-muted); font-size: 0.75rem; }
.invalid-feedback { font-size: 0.75rem; }
.form-control.is-invalid, .form-select.is-invalid { border-color: var(--danger); }
.input-group-text {
  background: var(--bg-600);
  border-color: var(--border);
  color: var(--text-secondary);
}
.input-group > .form-control,
.input-group > .form-select,
.input-group > .input-group-text {
  border-color: var(--border);
}

/* ---- BUTTONS ---- */
.btn {
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
  padding: 0.5rem 1.125rem;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}
.btn-gold {
  background: var(--gold);
  border-color: var(--gold);
  color: #000;
  font-weight: 700;
}
.btn-gold:hover { background: var(--gold-hover); border-color: var(--gold-hover); color: #000; }
.btn-primary { background: #3b82f6; border-color: #3b82f6; }
.btn-primary:hover { background: #2563eb; border-color: #2563eb; }
.btn-outline-gold {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
}
.btn-outline-gold:hover { background: var(--gold-light); color: var(--gold); border-color: var(--gold); }
.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.btn-ghost:hover { background: var(--bg-600); color: var(--text-primary); }
.btn-sm { padding: 0.35rem 0.75rem; font-size: 0.8125rem; }
.btn-icon { width: 32px; height: 32px; padding: 0; justify-content: center; }

/* ---- DROPDOWNS ---- */
.dropdown-menu {
  background: var(--bg-600);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 0.25rem;
  min-width: 160px;
}
.dropdown-item {
  color: var(--text-secondary);
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-weight: 500;
}
.dropdown-item:hover { background: var(--bg-700); color: var(--text-primary); }
.dropdown-item.text-danger:hover { background: rgba(239,68,68,0.1); color: var(--danger) !important; }
.dropdown-header { color: var(--text-muted); font-size: 0.75rem; padding: 0.5rem 0.75rem 0.25rem; }
.dropdown-divider { border-color: var(--border); margin: 0.25rem 0; }

/* ---- MODALS ---- */
.modal-content {
  background: var(--bg-700);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
}
.modal-header {
  border-bottom: 1px solid var(--border);
  padding: 1.125rem 1.25rem;
}
.modal-title { font-weight: 700; }
.modal-footer {
  border-top: 1px solid var(--border);
  padding: 0.875rem 1.25rem;
}
.btn-close { filter: invert(1) opacity(0.5); }
.btn-close:hover { opacity: 1; }
.modal-backdrop.show { opacity: 0.7; }

/* ---- ALERTS ---- */
.alert {
  border-radius: var(--radius-sm);
  border-width: 1px;
  font-size: 0.875rem;
  font-weight: 500;
}
.alert-success { background: rgba(16,185,129,0.1); border-color: rgba(16,185,129,0.3); color: #34d399; }
.alert-danger { background: rgba(239,68,68,0.1); border-color: rgba(239,68,68,0.3); color: #f87171; }
.alert-warning { background: rgba(245,158,11,0.1); border-color: var(--gold-muted); color: var(--gold); }
.alert-info { background: rgba(59,130,246,0.1); border-color: rgba(59,130,246,0.3); color: #60a5fa; }

/* ---- PAGINATION ---- */
.pagination { gap: 0.25rem; }
.page-link {
  background: var(--bg-700);
  border-color: var(--border);
  color: var(--text-secondary);
  border-radius: var(--radius-sm) !important;
  font-size: 0.8125rem;
  padding: 0.375rem 0.625rem;
}
.page-link:hover { background: var(--bg-500); color: var(--text-primary); border-color: var(--border); }
.page-item.active .page-link { background: var(--gold); border-color: var(--gold); color: #000; font-weight: 700; }
.page-item.disabled .page-link { background: var(--bg-700); color: var(--text-muted); border-color: var(--border); }

/* ---- AUTH LAYOUT ---- */
.auth-body {
  background: var(--bg-800);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-wrapper {
  width: 100%;
  max-width: 440px;
  padding: 1.5rem;
}
.auth-brand {
  text-align: center;
  margin-bottom: 1.5rem;
}
.auth-brand a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
}
.auth-brand a i { color: var(--gold); }
.brand-logo { font-size: 1.5rem; }
.auth-card { box-shadow: var(--shadow); }
.auth-title {
  font-size: 1.375rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}
.auth-footer {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-top: 1.25rem;
}

/* ---- MOBILE FOOTER NAV ---- */
.mobile-footer-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--bg-900);
  border-top: 1px solid var(--border);
  display: flex;
  z-index: 999;
  padding-bottom: env(safe-area-inset-bottom);
}
.footer-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 0.25rem;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.625rem;
  font-weight: 600;
  gap: 0.1875rem;
  transition: color var(--transition);
}
.footer-nav-item i { font-size: 1.25rem; }
.footer-nav-item.active { color: var(--gold); }
.footer-nav-item:hover { color: var(--text-secondary); }

/* Add bottom padding to client pages on mobile for footer nav */
@media (max-width: 1199px) {
  .client-wrapper .page-content { padding-bottom: 5rem; }
}

/* ---- SIDEBAR OVERLAY ---- */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 999;
}
.sidebar-overlay.active { display: block; }

/* ---- MOBILE SIDEBAR ---- */
@media (max-width: 1199px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-wrapper { margin-left: 0; }
}

/* ---- PAGE HEADER ---- */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.page-header-title { font-size: 1.375rem; font-weight: 800; }
.page-header-sub { color: var(--text-muted); font-size: 0.8125rem; margin-top: 0.125rem; }
.page-header-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* ---- SEARCH BAR ---- */
.search-bar {
  position: relative;
}
.search-bar .form-control {
  padding-left: 2.25rem;
}
.search-bar .search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

/* ---- DATA EMPTY STATE ---- */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-muted);
}
.empty-state i { font-size: 3rem; opacity: 0.3; display: block; margin-bottom: 1rem; }
.empty-state h5 { font-weight: 700; color: var(--text-secondary); margin-bottom: 0.5rem; }
.empty-state p { font-size: 0.875rem; margin-bottom: 1.25rem; }

/* ---- SERVICE PLAN CARDS ---- */
.plan-card {
  background: var(--bg-700);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color var(--transition);
  cursor: pointer;
}
.plan-card:hover { border-color: var(--gold); }
.plan-card.selected { border-color: var(--gold); background: var(--gold-light); }
.plan-price { font-size: 2rem; font-weight: 800; color: var(--gold); line-height: 1; }
.plan-price small { font-size: 0.875rem; font-weight: 400; color: var(--text-muted); }
.plan-features { list-style: none; padding: 0; margin: 1rem 0 0; }
.plan-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
}
.plan-features li i { color: var(--success); font-size: 0.875rem; }

/* ---- TIMELINE (tickets) ---- */
.ticket-timeline { list-style: none; padding: 0; margin: 0; }
.timeline-item { display: flex; gap: 1rem; padding: 0.75rem 0; }
.timeline-avatar { flex-shrink: 0; }
.timeline-avatar .avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8125rem;
  border: 2px solid var(--border);
}
.timeline-avatar .avatar.staff { background: var(--gold-light); color: var(--gold); border-color: var(--gold-muted); }
.timeline-body { flex: 1; min-width: 0; }
.timeline-header { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.375rem; flex-wrap: wrap; }
.timeline-name { font-weight: 600; font-size: 0.875rem; }
.timeline-time { color: var(--text-muted); font-size: 0.75rem; }
.timeline-message {
  background: var(--bg-800);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}
.timeline-message.internal {
  border-color: rgba(245,158,11,0.3);
  background: rgba(245,158,11,0.05);
}

/* ---- INVOICE PREVIEW ---- */
.invoice-preview {
  background: #ffffff;
  color: #1e293b;
  border-radius: var(--radius);
  padding: 2.5rem;
  max-width: 720px;
}
.invoice-preview .inv-header { display: flex; justify-content: space-between; margin-bottom: 2rem; }
.invoice-preview h1 { font-size: 2rem; font-weight: 800; color: var(--gold-hover); }
.invoice-preview .inv-number { font-size: 1rem; color: #64748b; }
.invoice-preview table { width: 100%; border-collapse: collapse; }
.invoice-preview th { background: #f8fafc; padding: 0.75rem 1rem; text-align: left; font-size: 0.8125rem; color: #64748b; font-weight: 600; border-bottom: 2px solid #e2e8f0; }
.invoice-preview td { padding: 0.75rem 1rem; border-bottom: 1px solid #e2e8f0; color: #1e293b; font-size: 0.875rem; }
.invoice-preview .inv-total { font-size: 1.25rem; font-weight: 800; color: var(--gold-hover); }

/* ---- CHART CONTAINER ---- */
.chart-container { position: relative; height: 250px; }

/* ---- PROGRESS ---- */
.progress {
  background: var(--bg-600);
  border-radius: 99px;
  height: 6px;
}
.progress-bar { border-radius: 99px; }
.progress-bar.bg-gold { background: var(--gold) !important; }

/* ---- RESPONSIVE ---- */
@media (max-width: 576px) {
  .page-content { padding: 1rem; }
  .stat-card { padding: 1rem; }
  .page-header { margin-bottom: 1rem; }
  .auth-wrapper { padding: 1rem; }
}

/* ---- TOAST ---- */
.toast-container { z-index: 9999; }
.toast {
  background: var(--bg-600);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
}
.toast-header {
  background: var(--bg-700);
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
}
.toast.success .toast-header { border-left: 3px solid var(--success); }
.toast.danger .toast-header { border-left: 3px solid var(--danger); }

/* ---- LOADING SPINNER ---- */
.spin { animation: spin 0.8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- BREADCRUMB ---- */
.breadcrumb {
  background: none;
  padding: 0;
  margin-bottom: 0.5rem;
  font-size: 0.8125rem;
}
.breadcrumb-item { color: var(--text-muted); }
.breadcrumb-item a { color: var(--text-muted); text-decoration: none; }
.breadcrumb-item a:hover { color: var(--gold); }
.breadcrumb-item.active { color: var(--text-secondary); }
.breadcrumb-item + .breadcrumb-item::before { color: var(--text-muted); }

/* ---- INSTALL PAGE ---- */
.install-wrapper {
  max-width: 640px;
  margin: 2rem auto;
  padding: 1rem;
}
.step-indicator { display: flex; gap: 0; margin-bottom: 2rem; }
.step-dot {
  flex: 1;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.75rem 0.5rem 0.5rem;
  border-bottom: 3px solid var(--border);
  color: var(--text-muted);
}
.step-dot.active { border-color: var(--gold); color: var(--gold); }
.step-dot.done { border-color: var(--success); color: var(--success); }
