/* ===================================================
   Pay Algerie 48 - Dashboard Styles
   =================================================== */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --primary: #FF6B00;
  --primary-dark: #cc5500;
  --primary-light: #ff8533;
  --primary-bg: #fff4ed;
  --sidebar-width: 262px;
  --sidebar-bg: #1a1d2e;
  --sidebar-hover: #252840;
  --body-bg: #f0f2f8;
  --card-bg: #ffffff;
  --text-dark: #1a1d2e;
  --text-muted: #8b92a5;
  --border-color: #e8ecf4;
  --success: #00c853;
  --success-bg: #e8f9f0;
  --danger: #ff3d57;
  --danger-bg: #fff0f2;
  --warning: #ff9800;
  --warning-bg: #fff8e6;
  --info: #2979ff;
  --info-bg: #e8f0ff;
  --shadow: 0 2px 20px rgba(0,0,0,0.06);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
  --radius: 14px;
  --radius-sm: 9px;
  --transition: all 0.25s ease;
}

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

body {
  font-family: 'Cairo', sans-serif;
  background: var(--body-bg);
  color: var(--text-dark);
  min-height: 100vh;
}

/* ============ LOGIN PAGE ============ */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0f1117 0%, #1a1d2e 50%, #0f1117 100%);
  position: relative;
  overflow: hidden;
}
.login-page::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,107,0,0.12) 0%, transparent 70%);
  top: -150px; right: -150px;
}
.login-page::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,107,0,0.08) 0%, transparent 70%);
  bottom: -100px; left: -100px;
}
.login-card {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 22px;
  padding: 48px 42px;
  width: 100%;
  max-width: 430px;
  position: relative;
  z-index: 1;
}
.login-logo { text-align: center; margin-bottom: 36px; }
.login-logo .logo-icon {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
  font-size: 30px; color: white;
  box-shadow: 0 12px 35px rgba(255,107,0,0.45);
}
.login-logo h1 { color: white; font-size: 22px; font-weight: 800; }
.login-logo p { color: rgba(255,255,255,0.4); font-size: 12px; margin-top: 4px; }

.login-tabs {
  display: flex;
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 24px;
}
.login-tab {
  flex: 1; padding: 9px;
  text-align: center;
  color: rgba(255,255,255,0.4);
  font-size: 13px; font-weight: 600;
  cursor: pointer; border-radius: 8px;
  transition: var(--transition);
}
.login-tab.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 12px rgba(255,107,0,0.4);
}

.form-panel { display: none; }
.form-panel.active { display: block; }

.login-form .form-group { margin-bottom: 18px; }
.login-form label { display: block; color: rgba(255,255,255,0.6); font-size: 12px; margin-bottom: 7px; font-weight: 500; }
.login-form .input-wrapper { position: relative; }
.login-form .input-wrapper i {
  position: absolute; right: 13px; top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.3); font-size: 15px;
}
.login-form input {
  width: 100%;
  padding: 12px 40px 12px 14px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  color: white;
  font-family: 'Cairo', sans-serif;
  font-size: 14px;
  transition: var(--transition);
  direction: rtl;
}
.login-form input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255,107,0,0.07);
  box-shadow: 0 0 0 3px rgba(255,107,0,0.15);
}
.login-form input::placeholder { color: rgba(255,255,255,0.25); }

.btn-login {
  width: 100%; padding: 13px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white; border: none;
  border-radius: var(--radius-sm);
  font-family: 'Cairo', sans-serif;
  font-size: 15px; font-weight: 700;
  cursor: pointer; transition: var(--transition);
  box-shadow: 0 6px 20px rgba(255,107,0,0.4);
  margin-top: 8px;
}
.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(255,107,0,0.5);
}

.recovery-code-box {
  background: rgba(255,107,0,0.1);
  border: 2px dashed rgba(255,107,0,0.5);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  margin: 18px 0;
}
.recovery-code-box .code-value {
  font-size: 26px; font-weight: 900;
  color: var(--primary);
  letter-spacing: 5px;
  font-family: 'Courier New', monospace;
  display: block; margin: 8px 0;
}
.recovery-code-box p { color: rgba(255,255,255,0.5); font-size: 12px; }

.login-alert {
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 16px;
  display: none;
}
.login-alert.error { background: rgba(255,61,87,0.15); color: #ff8fa0; border: 1px solid rgba(255,61,87,0.3); }
.login-alert.success { background: rgba(0,200,83,0.12); color: #66ffa6; border: 1px solid rgba(0,200,83,0.25); }
.login-alert.show { display: flex; align-items: center; gap: 8px; }

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

/* ============ SIDEBAR ============ */
.sidebar {
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  position: fixed;
  top: 0; right: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 1000;
  display: flex; flex-direction: column;
  border-left: 1px solid rgba(255,255,255,0.05);
}
.sidebar::-webkit-scrollbar { width: 3px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

.sidebar-brand {
  padding: 22px 18px;
  display: flex; align-items: center; gap: 11px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.brand-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 17px; flex-shrink: 0;
  box-shadow: 0 5px 16px rgba(255,107,0,0.35);
}
.brand-text h2 { color: white; font-size: 14px; font-weight: 800; }
.brand-text span { color: var(--primary); font-size: 11px; font-weight: 500; }

.sidebar-nav { flex: 1; padding: 12px 0; }
.nav-section { margin-bottom: 4px; }
.nav-section-title {
  color: rgba(255,255,255,0.2);
  font-size: 10px; font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 10px 18px 5px;
}
.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 18px;
  color: #8b92a5;
  text-decoration: none; font-size: 13.5px; font-weight: 500;
  transition: var(--transition);
  position: relative; cursor: pointer;
}
.nav-item:hover { color: white; background: var(--sidebar-hover); }
.nav-item.active { color: var(--primary); background: rgba(255,107,0,0.1); }
.nav-item.active::before {
  content: '';
  position: absolute; right: 0; top: 8px; bottom: 8px;
  width: 3px;
  background: var(--primary);
  border-radius: 3px 0 0 3px;
}
.nav-item i { width: 20px; text-align: center; font-size: 15px; }

.sidebar-footer {
  padding: 14px 18px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.user-info { display: flex; align-items: center; gap: 10px; }
.user-avatar {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 14px; font-weight: 700; flex-shrink: 0;
}
.user-details h4 { color: white; font-size: 12px; font-weight: 700; }
.user-details span { color: #8b92a5; font-size: 11px; }
.btn-logout {
  margin-right: auto;
  background: none; border: none;
  color: #8b92a5; cursor: pointer;
  font-size: 16px; transition: var(--transition);
  padding: 5px; border-radius: 6px;
}
.btn-logout:hover { color: var(--danger); background: rgba(255,61,87,0.1); }

/* ============ MAIN CONTENT ============ */
.main-content { margin-right: var(--sidebar-width); flex: 1; min-height: 100vh; display: flex; flex-direction: column; }

/* ============ TOPBAR ============ */
.topbar {
  background: var(--card-bg);
  padding: 15px 28px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.topbar-title h1 { font-size: 19px; font-weight: 800; color: var(--text-dark); }
.topbar-title p { font-size: 11.5px; color: var(--text-muted); margin-top: 1px; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.topbar-date {
  background: var(--body-bg); padding: 6px 14px;
  border-radius: 20px; font-size: 12px; color: var(--text-muted); font-weight: 500;
}

/* ============ PAGE CONTENT ============ */
.page-content { padding: 24px 28px; flex: 1; }

/* ============ CARDS ============ */
.card { background: var(--card-bg); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.card-header {
  padding: 17px 22px; border-bottom: 1px solid var(--border-color);
  display: flex; align-items: center; justify-content: space-between;
}
.card-header h3 { font-size: 14.5px; font-weight: 700; color: var(--text-dark); display: flex; align-items: center; gap: 8px; }
.card-header h3 i { color: var(--primary); }
.card-body { padding: 22px; }

/* ============ STAT CARDS ============ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px; margin-bottom: 22px;
}
.stat-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 15px;
  transition: var(--transition); position: relative; overflow: hidden;
}
.stat-card::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--stat-color, var(--primary));
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.stat-icon {
  width: 52px; height: 52px;
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  font-size: 21px; flex-shrink: 0;
  background: var(--stat-bg, var(--primary-bg));
  color: var(--stat-color, var(--primary));
}
.stat-info { flex: 1; min-width: 0; }
.stat-label { font-size: 11.5px; color: var(--text-muted); font-weight: 500; margin-bottom: 4px; }
.stat-value { font-size: 20px; font-weight: 900; color: var(--text-dark); line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-sub { font-size: 11px; color: var(--text-muted); margin-top: 3px; }

.stat-card.orange { --stat-color: #FF6B00; --stat-bg: #fff4ed; }
.stat-card.green  { --stat-color: #00c853; --stat-bg: #e8f9f0; }
.stat-card.blue   { --stat-color: #2979ff; --stat-bg: #e8f0ff; }
.stat-card.purple { --stat-color: #7c4dff; --stat-bg: #f3eeff; }
.stat-card.red    { --stat-color: #ff3d57; --stat-bg: #fff0f2; }
.stat-card.teal   { --stat-color: #00bcd4; --stat-bg: #e0f8fb; }

/* ============ GRID ============ */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 22px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; margin-bottom: 22px; }
.mb-22 { margin-bottom: 22px; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px;
  border: none; border-radius: var(--radius-sm);
  font-family: 'Cairo', sans-serif;
  font-size: 13px; font-weight: 600;
  cursor: pointer; transition: var(--transition);
  text-decoration: none; white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  box-shadow: 0 4px 14px rgba(255,107,0,0.3);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 7px 20px rgba(255,107,0,0.42); }
.btn-secondary { background: var(--body-bg); color: var(--text-dark); border: 1.5px solid var(--border-color); }
.btn-secondary:hover { background: var(--border-color); }
.btn-success { background: var(--success); color: white; }
.btn-success:hover { background: #00a844; }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #cc2d45; }
.btn-outline { background: transparent; border: 1.5px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-icon { width: 33px; height: 33px; padding: 0; justify-content: center; }

/* ============ TABLES ============ */
.table-wrapper { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead th {
  background: var(--body-bg);
  padding: 11px 15px;
  text-align: right;
  font-size: 11.5px; font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border-bottom: 2px solid var(--border-color);
  white-space: nowrap;
}
tbody tr { border-bottom: 1px solid var(--border-color); transition: var(--transition); }
tbody tr:hover { background: rgba(255,107,0,0.018); }
tbody tr:last-child { border-bottom: none; }
tbody td { padding: 12px 15px; font-size: 13px; color: var(--text-dark); vertical-align: middle; }
.td-actions { display: flex; gap: 6px; align-items: center; }

/* ============ FORMS ============ */
.form-group { margin-bottom: 17px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text-dark); margin-bottom: 7px; }
.form-group label .req { color: var(--danger); margin-right: 3px; }
.form-control {
  width: 100%; padding: 10px 13px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: 'Cairo', sans-serif;
  font-size: 13px; color: var(--text-dark);
  background: white; transition: var(--transition); direction: rtl;
}
.form-control:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255,107,0,0.1);
}
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { resize: vertical; min-height: 75px; }

select.form-control {
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 12 12'%3E%3Cpath fill='%238b92a5' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 12px center;
  padding-left: 34px; cursor: pointer;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.form-hint { font-size: 11px; color: var(--text-muted); margin-top: 5px; }

/* ============ MODALS ============ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.48);
  backdrop-filter: blur(5px);
  display: flex; align-items: center; justify-content: center;
  z-index: 9998;
  opacity: 0; visibility: hidden;
  transition: var(--transition);
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal {
  background: white; border-radius: 16px;
  width: 95%; max-width: 540px;
  max-height: 92vh; overflow-y: auto;
  transform: translateY(-18px) scale(0.97);
  transition: var(--transition);
  box-shadow: 0 25px 70px rgba(0,0,0,0.22);
}
.modal-overlay.active .modal { transform: translateY(0) scale(1); }
.modal-lg { max-width: 720px; }
.modal-header {
  padding: 19px 24px; border-bottom: 1px solid var(--border-color);
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; background: white; z-index: 1;
}
.modal-header h3 { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; color: var(--text-dark); }
.modal-header h3 i { color: var(--primary); }
.modal-close {
  background: none; border: none; font-size: 19px;
  color: var(--text-muted); cursor: pointer; transition: var(--transition);
  width: 33px; height: 33px; display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
}
.modal-close:hover { color: var(--danger); background: var(--danger-bg); }
.modal-body { padding: 24px; }
.modal-footer {
  padding: 15px 24px; border-top: 1px solid var(--border-color);
  display: flex; gap: 10px; justify-content: flex-start;
  position: sticky; bottom: 0; background: white;
}

/* ============ BADGES ============ */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 600; white-space: nowrap;
}
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-danger  { background: var(--danger-bg);  color: var(--danger); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-info    { background: var(--info-bg);    color: var(--info); }
.badge-primary { background: var(--primary-bg); color: var(--primary); }
.badge-gray    { background: #f0f2f8; color: var(--text-muted); }
.badge-baridimob { background: #e3f2fd; color: #1565c0; border: 1px solid #bbdefb; }
.badge-ccp     { background: #fff8e1; color: #e65100; border: 1px solid #ffe082; }

/* ============ FILTERS BAR ============ */
.filters-bar {
  background: var(--card-bg); border-radius: var(--radius);
  padding: 14px 20px; margin-bottom: 18px;
  box-shadow: var(--shadow);
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
}
.filters-bar .form-control { flex: 1; min-width: 140px; }

/* ============ EMPTY STATE ============ */
.empty-state { text-align: center; padding: 55px 20px; color: var(--text-muted); }
.empty-state i { font-size: 46px; opacity: 0.25; margin-bottom: 14px; display: block; }
.empty-state h3 { font-size: 15px; color: var(--text-dark); margin-bottom: 7px; font-weight: 600; }
.empty-state p { font-size: 13px; }

/* ============ TOAST ============ */
.toast-container {
  position: fixed; bottom: 28px; left: 28px;
  z-index: 99999; display: flex; flex-direction: column; gap: 9px;
}
.toast {
  background: white; border-radius: 11px;
  padding: 13px 17px;
  display: flex; align-items: center; gap: 11px;
  min-width: 270px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.16);
  animation: toastIn 0.3s ease;
  border-right: 4px solid var(--primary);
}
.toast.success { border-right-color: var(--success); }
.toast.error   { border-right-color: var(--danger); }
.toast.warning { border-right-color: var(--warning); }
.toast i { font-size: 17px; }
.toast.success i { color: var(--success); }
.toast.error   i { color: var(--danger); }
.toast.warning i { color: var(--warning); }
.toast-text { flex: 1; font-size: 13px; color: var(--text-dark); font-weight: 500; }
@keyframes toastIn {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ============ CHART ============ */
.chart-container { position: relative; height: 240px; }

/* ============ BONUS / PROGRESS ============ */
.bonus-alert-card {
  background: linear-gradient(135deg, #1a1d2e, #2d3154);
  border-radius: var(--radius);
  padding: 18px 22px;
  color: white; margin-bottom: 8px;
  display: flex; align-items: center; gap: 14px;
}
.bonus-alert-icon {
  width: 44px; height: 44px;
  background: rgba(255,107,0,0.2);
  border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); font-size: 20px;
}
.bonus-alert-info { flex: 1; }
.bonus-alert-info h4 { font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.progress-bar-wrap { background: rgba(255,255,255,0.1); border-radius: 20px; height: 7px; }
.progress-bar-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--primary-light)); border-radius: 20px; transition: width 0.5s ease; }
.bonus-alert-pct { font-size: 13px; font-weight: 700; color: var(--primary); margin-right: 12px; flex-shrink: 0; }

/* ============ CLIENT CARD ============ */
.clients-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.client-card {
  background: var(--card-bg); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow);
  transition: var(--transition); border: 1.5px solid transparent;
  cursor: pointer;
}
.client-card:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.client-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; }
.client-avatar {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: white; font-size: 18px; font-weight: 700; flex-shrink: 0;
}
.client-card-name { font-size: 14px; font-weight: 700; color: var(--text-dark); }
.client-card-method { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.client-card-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.client-stat { background: var(--body-bg); border-radius: var(--radius-sm); padding: 10px 12px; }
.client-stat-label { font-size: 10px; color: var(--text-muted); font-weight: 500; }
.client-stat-value { font-size: 14px; font-weight: 800; color: var(--text-dark); margin-top: 2px; }
.client-stat-value.profit { color: var(--success); }
.client-card-actions { display: flex; gap: 7px; margin-top: 14px; }

/* ============ OFFER CARD ============ */
.offers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.offer-card {
  background: var(--card-bg); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
  border-right: 4px solid var(--primary);
  transition: var(--transition); position: relative;
}
.offer-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.offer-amount { font-size: 26px; font-weight: 900; color: var(--text-dark); }
.offer-profit { font-size: 13px; color: var(--success); font-weight: 600; margin-top: 3px; }
.offer-usage { font-size: 12px; color: var(--text-muted); margin-top: 8px; }
.offer-actions { display: flex; gap: 7px; margin-top: 14px; }

/* ============ BONUS TIER CARD ============ */
.tier-card {
  background: var(--card-bg); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow);
  border-right: 4px solid var(--warning);
  display: flex; align-items: center; justify-content: space-between;
  transition: var(--transition);
}
.tier-card:hover { box-shadow: var(--shadow-hover); }
.tier-info h4 { font-size: 14px; font-weight: 700; color: var(--text-dark); }
.tier-info p { font-size: 12px; color: var(--text-muted); margin-top: 3px; }
.tier-bonus { font-size: 22px; font-weight: 900; color: var(--warning); }
.tier-actions { display: flex; gap: 7px; }

/* ============ DIVIDER ============ */
.divider { height: 1px; background: var(--border-color); margin: 16px 0; }

/* ============ PAGE HEADER ============ */
.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.page-header h2 { font-size: 17px; font-weight: 800; color: var(--text-dark); }
.page-header p { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ============ INFO BOX ============ */
.info-box {
  background: var(--info-bg); border: 1px solid rgba(41,121,255,0.2);
  border-radius: var(--radius-sm); padding: 13px 16px;
  font-size: 13px; color: var(--info);
  display: flex; align-items: flex-start; gap: 10px; margin-bottom: 18px;
}
.info-box.warning { background: var(--warning-bg); border-color: rgba(255,152,0,0.2); color: var(--warning); }
.info-box.success { background: var(--success-bg); border-color: rgba(0,200,83,0.2); color: var(--success); }

/* ============ SUMMARY ROW ============ */
.summary-row {
  display: flex; gap: 18px; flex-wrap: wrap;
  background: var(--primary-bg); border: 1px solid rgba(255,107,0,0.15);
  border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 18px;
}
.summary-item { display: flex; flex-direction: column; }
.summary-item .s-label { font-size: 11px; color: var(--primary); font-weight: 500; }
.summary-item .s-value { font-size: 16px; font-weight: 800; color: var(--text-dark); }

/* ============ CUSTOM AMOUNT TOGGLE ============ */
.custom-amount-section { display: none; }
.custom-amount-section.show { display: block; }

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--body-bg); }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ============ UTILS ============ */
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-muted   { color: var(--text-muted); }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }
.fw-900 { font-weight: 900; }
.fs-12 { font-size: 12px; }
.fs-13 { font-size: 13px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8  { gap: 8px; }
.gap-10 { gap: 10px; }
.gap-12 { gap: 12px; }
.mt-5  { margin-top: 5px; }
.mt-10 { margin-top: 10px; }
.mb-0  { margin-bottom: 0; }
.mb-10 { margin-bottom: 10px; }
.mb-16 { margin-bottom: 16px; }
.mb-22 { margin-bottom: 22px; }
.w-100 { width: 100%; }
.text-center { text-align: center; }
