/* Subscriber Panel UI — Custom Styles */
/* Do not import or modify public/backend/css/vertical-layout-light/style.css */
/* Do not import or modify public/backend/css/custom.css */

/* ---- CSS Variables ---- */
:root {
  --sidebar-bg:     #0d1b2a;
  --sidebar-hover:  #1a2e42;
  --sidebar-active: #0ea472;
  --sidebar-border: rgba(255,255,255,0.06);
  --accent:         #0ea472;
  --accent-light:   #12c586;
  --accent-dim:     rgba(14,164,114,0.12);
  --accent-glow:    rgba(14,164,114,0.25);
  --bg-body:        #f0f4f8;
  --bg-card:        #ffffff;
  --text-primary:   #1a2535;
  --text-muted:     #7a8899;
  --text-sidebar:   #b0c1d4;
  --text-sidebar-h: #ffffff;
  --border:         #e4ecf4;
  --shadow-sm:      0 2px 8px rgba(13,27,42,0.06);
  --shadow-md:      0 4px 20px rgba(13,27,42,0.10);
  --radius:         14px;
  --radius-sm:      8px;
  --sidebar-w:      260px;
  --topbar-h:       68px;
  --transition:     all 0.22s cubic-bezier(.4,0,.2,1);
}

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

/* ---- SIDEBAR ---- */
.sidebar {
  width: var(--sidebar-w);
  min-height: 100vh;
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 1000;
  box-shadow: 4px 0 24px rgba(0,0,0,0.18);
  transition: var(--transition);
}
.sidebar-brand {
  height: var(--topbar-h);
  display: flex; align-items: center;
  padding: 0 24px; gap: 12px;
  border-bottom: 1px solid var(--sidebar-border);
  text-decoration: none;
}
.logo-mark {
  width: 36px; height: 36px;
  background: var(--accent);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px; color: #fff;
  box-shadow: 0 0 0 4px rgba(14,164,114,0.25);
  flex-shrink: 0;
}
.logo-text {
  font-family: 'DM Sans', sans-serif; font-weight: 700;
  font-size: 17px; color: #fff; letter-spacing: -0.3px;
}
.logo-text span { color: var(--accent-light); }
.sidebar-section-label {
  padding: 20px 24px 6px;
  font-size: 10px; font-weight: 700;
  letter-spacing: 1.4px; text-transform: uppercase;
  color: rgba(176,193,212,0.4);
}
.sidebar nav { flex: 1; padding: 8px 12px; overflow-y: auto; }
.nav-item-link {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: 10px;
  color: var(--text-sidebar); text-decoration: none;
  font-size: 14px; font-weight: 600;
  transition: var(--transition); margin-bottom: 2px;
  cursor: pointer;
}
.nav-item-link i { font-size: 17px; width: 20px; text-align: center; flex-shrink: 0; }
.nav-item-link:hover { background: var(--sidebar-hover); color: var(--text-sidebar-h); text-decoration: none; }
.nav-item-link.active { background: var(--accent-dim); color: var(--accent-light); box-shadow: inset 3px 0 0 var(--accent); }
.nav-item-link.active i { color: var(--accent); }
.nav-badge {
  margin-left: auto; background: var(--accent); color: #fff;
  font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 20px;
}
.nav-dot { width: 7px; height: 7px; background: var(--accent); border-radius: 50%; margin-left: auto; }
.sidebar-footer { padding: 16px; border-top: 1px solid var(--sidebar-border); }
.sidebar-user {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px; background: var(--sidebar-hover);
}
.sidebar-user .avatar {
  width: 34px; height: 34px; background: var(--accent);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 14px; flex-shrink: 0;
}
.sidebar-user .u-name { font-size: 13px; font-weight: 700; color: #fff; line-height: 1.2; }
.sidebar-user .u-role { font-size: 11px; color: var(--text-sidebar); line-height: 1.2; }

/* ---- MAIN ---- */
.main-wrap {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* ---- TOPBAR ---- */
.topbar {
  height: var(--topbar-h); background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; padding: 0 28px; gap: 16px;
  position: sticky; top: 0; z-index: 900;
  box-shadow: var(--shadow-sm);
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.page-breadcrumb { display: none; }
.content-breadcrumb {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 0 16px;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 22px;
}
.bc-home {
  color: var(--text-muted); text-decoration: none; font-size: 14px;
  transition: var(--transition); display: flex; align-items: center;
}
.bc-home:hover { color: var(--accent); }
.bc-sep { font-size: 10px; color: var(--text-muted); opacity: 0.6; }
.bc-link {
  color: var(--accent); font-weight: 600; cursor: pointer;
  text-decoration: none; transition: var(--transition);
}
.bc-link:hover { text-decoration: underline; }
.bc-current { color: var(--text-primary); font-weight: 700; }
.topbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 0;
  max-width: 100%;
}
.balance-chip {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: 30px;
  font-size: 12.5px; font-weight: 700; transition: var(--transition);
  flex-shrink: 1;
  min-width: 0;
  max-width: 100%;
}
.balance-chip.free {
  background: #fffbeb !important;
  color: #b45309 !important;
  border: 1px solid rgba(251,191,36,0.45) !important;
}
.balance-chip.account {
  background: rgba(59,130,246,0.1) !important;
  color: #2563eb !important;
  border: 1px solid rgba(59,130,246,0.28) !important;
}
.balance-chip i { font-size: 14px; }
.topbar-avatar {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--accent), var(--sidebar-bg));
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 15px; cursor: pointer;
  border: 2px solid var(--accent-glow); transition: var(--transition);
  flex-shrink: 0;
}

/* ---- PAGE CONTENT ---- */
.page-content {
  padding: 28px 28px 40px;
  flex: 1;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}
.page-header { margin-bottom: 24px; display: flex; align-items: flex-end; justify-content: space-between; }
.page-header h1 { font-size: 24px; font-weight: 800; color: var(--text-primary); line-height: 1.2; }
.page-header p { font-size: 13.5px; color: var(--text-muted); margin: 3px 0 0; }

/* ---- Overlay & close (mobile) ---- */
.sidebar-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(13,27,42,0.5); z-index: 999;
  backdrop-filter: blur(2px);
}
.sidebar-overlay.active { display: block; }
.sidebar-close-row {
  display: none;
  padding: 8px 12px 4px;
}
.sidebar-close-btn {
  display: flex; align-items: center; gap: 6px;
  width: 100%; padding: 10px 14px;
  background: var(--sidebar-hover); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px; cursor: pointer;
  color: var(--text-sidebar); font-family: 'Nunito', sans-serif;
  font-size: 13.5px; font-weight: 700; transition: var(--transition);
}
.sidebar-close-btn i { font-size: 20px; color: var(--text-sidebar); transition: var(--transition); }
.sidebar-close-btn:hover {
  background: rgba(255,255,255,0.06); color: #fff;
}
.sidebar-close-btn:hover i { color: #fff; }
.topbar-hamburger {
  width: 38px; height: 38px; border-radius: var(--radius-sm);
  background: var(--bg-body); border: 1px solid var(--border);
  display: none; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0; font-size: 18px; color: var(--text-primary);
  transition: var(--transition);
}
.topbar-hamburger:hover { background: var(--accent-dim); color: var(--accent); border-color: var(--accent-glow); }

/* ---- ≤ 1199px ---- */
@media (max-width: 1199px) {
  :root { --sidebar-w: 240px; }
  .page-content { padding: 22px 20px 36px; }
}

/* ---- ≤ 991px ---- */
@media (max-width: 991px) {
  .topbar-hamburger { display: flex; }
  .sidebar-close-row { display: block; }
  .sidebar {
    transform: translateX(-100%);
    z-index: 1001; box-shadow: none;
    transition: transform 0.28s cubic-bezier(.4,0,.2,1), box-shadow 0.28s;
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: 6px 0 32px rgba(0,0,0,0.3);
  }
  .main-wrap { margin-left: 0; }
  .group-stats { display: none; }
  .topbar { padding: 0 16px; gap: 10px; }
  .balance-chip.free { display: none !important; }
  .balance-chip { padding: 6px 12px; font-size: 12px; }
  .page-content { padding: 18px 16px 32px; }
  .page-header { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
  .page-header h1 { font-size: 20px; }
  .stat-card .stat-value { font-size: 22px; }
  .filter-bar { padding: 14px 16px; }
  .summary-table thead th, .summary-table tbody tr td { padding: 9px 10px; font-size: 12px; }
  .brand-group-header { padding: 14px 16px; gap: 10px; }
  .brand-sub-table tbody td { padding: 11px 12px; }
  .actions-cell { flex-wrap: nowrap; gap: 8px; }
  .action-btn { width: 28px; height: 28px; font-size: 13px; border-radius: 6px; }
  .panel-header { padding: 14px 16px; }
  .panel-body { padding: 16px; }
  .auto-topup-body { padding: 16px; }
  .history-table thead th { padding: 9px 12px; font-size: 10.5px; }
  .history-table tbody td { padding: 11px 12px; }
  .settings-feature-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .profile-header-card { flex-direction: column; gap: 16px; padding: 24px 20px; }
  .sub-panel-header { flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px; }
  .sub-panel-header h2 { font-size: 16px; }
  .page-header .d-flex { flex-wrap: wrap; }
  .topup-form-card { max-width: 100%; }
  .preset-amounts { gap: 6px; }
  .preset-btn { padding: 6px 12px; font-size: 12px; }
  .country-tag { font-size: 12px; padding: 4px 9px; }
  .dashboard-stats-grid .stat-card { min-height: 184px; }
}

/* ---- ≤ 767px ---- */
@media (max-width: 767px) {
  :root { --topbar-h: 58px; }
  .topbar { height: var(--topbar-h); padding: 0 14px; }
  .topbar-avatar { width: 34px; height: 34px; font-size: 13px; }
  .balance-chip { padding: 5px 10px; font-size: 11.5px; }
  .balance-chip i { font-size: 12px; }
  .balance-chip strong { display: none; }
  .balance-chip::after { content: attr(data-short); }
  .page-content { padding: 14px 14px 28px; }
  .page-header { margin-bottom: 14px; }
  .page-header h1 { font-size: 18px; }
  .page-header p { font-size: 12.5px; }
  .stat-card { padding: 16px 14px 14px; }
  .stat-card .stat-value { font-size: 20px; }
  .stat-card .stat-label { font-size: 11px; }
  .stat-card .stat-icon { width: 36px; height: 36px; font-size: 16px; margin-bottom: 12px; }
  .stat-card .stat-delta { font-size: 10px; padding: 2px 6px; top: 12px; right: 12px; }
  .dashboard-stats-grid .stat-card { min-height: 172px; }
  .filter-bar { padding: 12px 14px; }
  .btn-search, .btn-clear { height: 38px; font-size: 12.5px; padding: 0 14px; }
  .form-control, .custom-select { height: 38px; font-size: 13px; }
  .brand-group-header { padding: 12px 14px; }
  .group-avatar { width: 36px; height: 36px; font-size: 14px; border-radius: 10px; }
  .group-meta .group-name { font-size: 14px; }
  .brand-sub-table thead { display: none; }
  .brand-sub-table tbody tr { display: block; padding: 12px 14px; border-bottom: 1px solid var(--border); }
  .brand-sub-table tbody tr:hover { background: #f7fcf9; }
  .brand-sub-table tbody td { display: block; padding: 3px 0; border: none; font-size: 13px; }
  .brand-sub-table tbody td:first-child { font-size: 14px; font-weight: 800; margin-bottom: 4px; }
  .brand-sub-table tbody td::before {
    content: attr(data-label);
    font-size: 10px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.5px; color: var(--text-muted);
    display: block; margin-bottom: 2px;
  }
  .brand-sub-table tbody td:first-child::before { display: none; }
  .brand-sub-table tbody td.td-actions::before { display: none !important; content: none !important; }
  .actions-cell { margin-top: 8px; flex-wrap: wrap; gap: 10px; }
  .panel-header { padding: 12px 14px; flex-wrap: wrap; gap: 8px; }
  .panel-header h5 { font-size: 14px; }
  .panel-header-actions { margin-left: 0; width: 100%; }
  .panel-body { padding: 14px; }
  .history-table { font-size: 12.5px; }
  .history-table thead th { padding: 8px 10px; font-size: 10px; }
  .history-table tbody td { padding: 10px; }
  .tx-id { max-width: 130px; font-size: 11.5px; }
  .reason-text { font-size: 11.5px; max-width: 200px; }
  .summary-table { font-size: 11.5px; }
  .summary-table thead th { padding: 8px 9px; }
  .summary-table tbody tr td { padding: 8px 9px; }
  .sub-panel-header { padding: 12px 14px; gap: 10px; }
  .sub-panel-header h2 { font-size: 15px; }
  .auto-topup-header { padding: 14px 16px; }
  .auto-topup-header div:first-child { flex-wrap: wrap; gap: 8px; }
  .input-field { height: 42px; font-size: 13.5px; }
  .select-field { height: 42px; font-size: 13.5px; }
  .btn-primary-action, .btn-secondary-action, .btn-outline-action, .btn-danger-action, .btn-warn-action { height: 42px; font-size: 13px; padding: 0 16px; }
  .profile-header-card { padding: 20px 16px; border-radius: var(--radius-sm); }
  .profile-avatar-lg { width: 56px; height: 56px; font-size: 22px; border-radius: 14px; }
  .profile-header-info .org-name { font-size: 18px; }
  .settings-feature-row { padding: 14px 0; }
  .settings-feature-icon { width: 34px; height: 34px; font-size: 15px; }
  .settings-feature-name { font-size: 13.5px; }
  .settings-feature-desc { font-size: 12px; }
  .email-tag-wrap { padding: 8px 10px; }
  .radio-group { gap: 14px; }
  .advert-thumb-img { width: 80px; height: 80px; }
  .pagination-wrap { padding: 12px 14px; }
  .page-btn { width: 30px; height: 30px; font-size: 12px; }
  .chart-wrap { height: 200px; }
  .dashboard-panels-row .chart-wrap {
    height: 240px;
    min-height: 240px;
    flex: 0 0 240px;
  }
  .country-tag-container { padding: 10px; }
  .country-tag { font-size: 11.5px; padding: 3px 8px; margin: 2px; }
  .selected-countries-preview { padding: 6px 10px; }
  .action-divider { display: none; }
  .amount-input-wrap .input-field { font-size: 16px; height: 50px; }
  .preset-amounts { gap: 5px; }
  .preset-btn { padding: 5px 10px; font-size: 11.5px; }
}

/* ---- ≤ 479px ---- */
@media (max-width: 479px) {
  .page-content { padding: 12px 12px 24px; }
  .page-header h1 { font-size: 17px; }
  .balance-chip { padding: 5px 8px; border-radius: 24px; }
  .balance-chip span:last-child { display: none; }
  .stat-card { padding: 14px 12px 12px; border-radius: 10px; }
  .stat-card .stat-value { font-size: 18px; }
  .dashboard-stats-grid .stat-card { min-height: 162px; }
  .page-header .btn-primary-action {
    width: 100%; justify-content: center;
  }
  .page-header .btn-add-brand {
    width: 100%; justify-content: center; text-align: center;
  }
  .brand-group-header { padding: 10px 12px; gap: 8px; }
  .group-meta .group-name { font-size: 13.5px; }
  .group-meta .group-sub { font-size: 11px; }
  .settings-feature-row .radio-group { width: 100%; justify-content: flex-start; }
  .panel-body { padding: 12px; }
  .phone-wrap { flex-direction: column; }
  .phone-code { width: 100%; }
  .danger-zone-card { flex-direction: column; align-items: flex-start; }
}

/* ========== SHARED COMPONENT STYLES (from qiktell-redesign.html) ========== */

/* ---- GROUP 1: Cards & Panels ---- */
.panel { background: var(--bg-card); border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow-sm); overflow: hidden; }
.panel-header { padding: 18px 22px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; }
.panel-header h5 { font-size: 15px; font-weight: 700; margin: 0; color: var(--text-primary); }
.panel-header p  { font-size: 12.5px; color: var(--text-muted); margin: 2px 0 0; }
.panel-header-actions { margin-left: auto; display: flex; gap: 8px; }
.panel-body { padding: 22px; }
.stat-card {
  background: var(--bg-card); border-radius: var(--radius);
  padding: 22px 22px 20px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--border); transition: var(--transition);
  position: relative; overflow: hidden;
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.stat-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; margin-bottom: 16px;
}
.stat-value { font-size: 28px; font-weight: 800; font-family: 'DM Sans', sans-serif; line-height: 1; margin-bottom: 4px; }
.stat-label { font-size: 12.5px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.stat-delta {
  position: absolute; top: 18px; right: 18px;
  font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 20px;
}
.stat-delta.up   { background: rgba(14,164,114,0.1); color: var(--accent); }
.stat-delta.neutral { background: rgba(120,130,150,0.1); color: var(--text-muted); }
.stat-card::before {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px; border-radius: 0 0 var(--radius) var(--radius);
}
.c-green::before  { background: #0ea472; }
.c-blue::before   { background: #3b82f6; }
.c-amber::before  { background: #f59e0b; }
.c-rose::before   { background: #f43f5e; }
.c-violet::before { background: #8b5cf6; }
.c-cyan::before   { background: #06b6d4; }
.c-teal::before   { background: #0d9488; }
.c-slate::before  { background: #64748b; }
.c-green .stat-icon  { background: rgba(14,164,114,0.1); color: #0ea472; }
.c-blue .stat-icon   { background: rgba(59,130,246,0.1); color: #3b82f6; }
.c-amber .stat-icon  { background: rgba(245,158,11,0.1); color: #f59e0b; }
.c-rose .stat-icon   { background: rgba(244,63,94,0.1);  color: #f43f5e; }
.c-violet .stat-icon { background: rgba(139,92,246,0.1); color: #8b5cf6; }
.c-cyan .stat-icon   { background: rgba(6,182,212,0.1);  color: #06b6d4; }
.c-teal .stat-icon   { background: rgba(13,148,136,0.1); color: #0d9488; }
.c-slate .stat-icon  { background: rgba(100,116,139,0.14); color: #64748b; }

.stat-sublabel {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.3;
  margin-top: 6px;
  letter-spacing: 0.02em;
}

/* ---- GROUP 2: Tables ---- */
.history-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.history-table thead th {
  background: #f7fafc; color: var(--text-muted);
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.6px; padding: 11px 16px;
  border-bottom: 1px solid var(--border); white-space: nowrap;
}
.history-table tbody tr { border-bottom: 1px solid var(--border); transition: var(--transition); }
.history-table tbody tr:last-child { border-bottom: none; }
.history-table tbody tr:hover { background: #f7fcf9; }
.history-table tbody td { padding: 13px 16px; vertical-align: middle; }
.history-table tbody td:first-child { font-weight: 700; }
.brand-sub-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.brand-sub-table thead th {
  background: #f7fafc; color: var(--text-muted);
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px;
  padding: 10px 16px; border-bottom: 1px solid var(--border); white-space: nowrap;
}
.brand-sub-table tbody tr { transition: var(--transition); border-bottom: 1px solid var(--border); }
.brand-sub-table tbody tr:last-child { border-bottom: none; }
.brand-sub-table tbody tr:hover { background: #f7fcf9; }
.brand-sub-table tbody td { padding: 13px 16px; vertical-align: middle; }
.brand-sub-table tbody td:first-child { font-weight: 700; color: var(--text-primary); }
.summary-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.summary-table thead th {
  background: var(--bg-body); color: var(--text-muted);
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px;
  padding: 10px 14px; white-space: nowrap; border-bottom: 1px solid var(--border);
}
.summary-table tbody tr td { padding: 11px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; font-weight: 600; vertical-align: middle; }
.summary-table tbody tr:last-child td { border-bottom: none; }
.summary-table tbody tr td:first-child {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.6px; color: var(--text-muted); background: var(--bg-body);
}
.row-spend td { color: var(--accent); }
.row-qty td:not(:first-child) { color: #3b82f6; }

/* Dashboard: stat cards — equal width (grid) + equal height (flex + min-height) */
.dashboard-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr));
  gap: 16px;
  width: 100%;
  min-width: 0;
  align-items: stretch;
}
.dashboard-stats-grid > .animate-in {
  display: flex;
  min-width: 0;
}
.dashboard-stats-grid .stat-card {
  min-width: 0;
  width: 100%;
  flex: 1;
  min-height: 196px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}
.dashboard-stats-grid .stat-icon {
  flex-shrink: 0;
}
.dashboard-stats-grid .stat-value {
  flex-shrink: 0;
}
.dashboard-stats-grid .stat-label {
  font-size: 11px;
  line-height: 1.25;
  letter-spacing: 0.35px;
  margin-top: auto;
  padding-top: 8px;
}
.dashboard-stats-grid .stat-sublabel {
  font-size: 9.5px;
  margin-top: 4px;
  max-width: 100%;
  flex-shrink: 0;
}

/* Dashboard panels row: equal height panels + fixed chart height (reference) */
.chart-wrap {
  position: relative;
  height: 260px;
  min-width: 0;
  width: 100%;
  overflow: hidden;
}
.chart-wrap .highcharts-figure,
.chart-wrap #container {
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100%;
}
.dashboard-panels-row { min-width: 0; }
.dashboard-panels-row > [class*="col-"] {
  display: flex;
  min-width: 0;
}
.dashboard-panels-row .panel { flex: 1; display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.dashboard-panels-row .panel .panel-body { flex: 1; display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.dashboard-panels-row .chart-wrap {
  flex: 0 0 300px;
  min-height: 300px;
  height: 300px;
}

/* Filter bar: allow wrapping without forcing page width */
.filter-bar { max-width: 100%; min-width: 0; overflow: visible; }
.filter-bar .row { min-width: 0; }
.filter-bar .row > [class*="col-"] { min-width: 0; }
.filter-bar .select-field,
.filter-bar .input-field { max-width: 100%; }
.filter-bar .input-field::placeholder {
  color: var(--text-muted);
  opacity: 0.9;
}

.sub-panel { background: var(--bg-card); border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow-sm); overflow: hidden; }
.sub-panel-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.sub-panel-header h2 { font-size: 18px; font-weight: 800; color: var(--text-primary); margin: 0; }
.set-target-row { display: flex; align-items: center; gap: 12px; padding: 14px 20px; background: var(--bg-body); border-bottom: 1px solid var(--border); }
.set-target-row label { font-size: 13px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap; }
.set-target-row .input-field { max-width: 120px; height: 38px; font-size: 14px; }

/* ---- GROUP 3: Badges & Status Pills ---- */
.badge-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 12px; border-radius: 20px; font-size: 12px; font-weight: 700;
}
.badge-pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.badge-success  { background: rgba(14,164,114,0.1); color: #0ea472; }
.badge-failed   { background: rgba(244,63,94,0.1);  color: #f43f5e; }
.badge-pending  { background: rgba(245,158,11,0.1); color: #d97706; }
.badge-rejected { background: rgba(244,63,94,0.1);  color: #f43f5e; }
.badge-expired { background: rgba(244,63,94,0.1); color: #f43f5e; }
.badge-inactive { background: rgba(220,53,69,0.12); color: #dc3545; }
.status-pill { display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.status-pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-pill.active   { background: rgba(14,164,114,0.1); color: var(--accent); }
.status-pill.inactive { background: rgba(120,130,150,0.1); color: var(--text-muted); }
/* Clickable status (My Brands) */
button.status-pill {
  border: none;
  font: inherit;
  cursor: pointer;
  font-family: inherit;
}
button.status-pill:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.type-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 700;
}
.type-auto   { background: rgba(59,130,246,0.1); color: #3b82f6; }
.type-manual { background: rgba(139,92,246,0.1); color: #8b5cf6; }

/* ---- GROUP 4: Pills & Chips ---- */
.country-pill {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--bg-body); border: 1px solid var(--border);
  padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; color: var(--text-primary);
}
.country-pill i { font-size: 11px; color: var(--text-muted); }
.spend-chip { font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 13px; color: var(--text-primary); }
.spend-chip.zero { color: var(--text-muted); font-weight: 600; }
.tx-id {
  font-family: 'DM Sans', monospace; font-size: 12.5px; font-weight: 600;
  color: var(--text-muted); background: var(--bg-body);
  border: 1px solid var(--border); border-radius: 6px; padding: 3px 8px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; display: inline-block;
}
.reason-text { font-size: 12.5px; color: var(--text-muted); max-width: 340px; line-height: 1.4; }
.summary-stat-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--radius-sm);
  background: var(--bg-card); border: 1px solid var(--border);
  font-size: 14px; font-weight: 700; color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}
.btn-view-attach {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px;
  background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.2);
  color: #3b82f6; border-radius: 20px; font-size: 12px; font-weight: 700;
  cursor: pointer; transition: var(--transition); text-decoration: none; white-space: nowrap;
}
.btn-view-attach:hover { background: rgba(59,130,246,0.18); color: #3b82f6; text-decoration: none; }

/* ---- GROUP 5: Action Buttons ---- */
.btn-primary-action {
  height: 44px; padding: 0 22px; border-radius: var(--radius-sm);
  background: var(--accent); border: none; color: #fff;
  font-family: 'Nunito', sans-serif; font-size: 14px; font-weight: 700;
  cursor: pointer; transition: var(--transition);
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary-action:hover { background: var(--accent-light); box-shadow: 0 4px 14px var(--accent-glow); transform: translateY(-1px); }
.btn-secondary-action {
  height: 44px; padding: 0 22px; border-radius: var(--radius-sm);
  background: var(--sidebar-bg); border: none; color: #fff;
  font-family: 'Nunito', sans-serif; font-size: 14px; font-weight: 700;
  cursor: pointer; transition: var(--transition);
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-secondary-action:hover { background: #1a2e42; box-shadow: 0 4px 14px rgba(13,27,42,0.2); transform: translateY(-1px); }
.btn-outline-action {
  height: 44px; padding: 0 20px; border-radius: var(--radius-sm);
  background: transparent; border: 1.5px solid var(--border); color: var(--text-muted);
  font-family: 'Nunito', sans-serif; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: var(--transition);
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-outline-action:hover { border-color: #ccd6e0; background: var(--bg-body); color: var(--text-primary); }
.btn-danger-action {
  height: 44px; padding: 0 20px; border-radius: var(--radius-sm);
  background: rgba(244,63,94,0.08); border: 1.5px solid rgba(244,63,94,0.2);
  color: #f43f5e; font-family: 'Nunito', sans-serif;
  font-size: 14px; font-weight: 700; cursor: pointer; transition: var(--transition);
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-danger-action:hover { background: rgba(244,63,94,0.14); border-color: rgba(244,63,94,0.35); }
.btn-warn-action {
  height: 44px; padding: 0 20px; border-radius: var(--radius-sm);
  background: rgba(245,158,11,0.08); border: 1.5px solid rgba(245,158,11,0.25);
  color: #d97706; font-family: 'Nunito', sans-serif;
  font-size: 14px; font-weight: 700; cursor: pointer; transition: var(--transition);
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-warn-action:hover { background: rgba(245,158,11,0.15); }

/* Standalone .btn-secondary (e.g. Back link) — match outline style */
.btn-secondary {
  height: 44px; padding: 0 20px; border-radius: var(--radius-sm);
  background: transparent; border: 1.5px solid var(--border); color: var(--text-muted);
  font-family: 'Nunito', sans-serif; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: var(--transition);
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none;
}
a.btn-secondary:hover { border-color: #ccd6e0; background: var(--bg-body); color: var(--text-primary); text-decoration: none; }

/* Bootstrap-style .btn in subscriber panel — consistent with action buttons */
.main-wrap .btn.btn-primary,
.main-wrap .btn-primary {
  height: 44px; padding: 0 22px; border-radius: var(--radius-sm);
  background: var(--accent); border: none; color: #fff;
  font-family: 'Nunito', sans-serif; font-size: 14px; font-weight: 700;
  cursor: pointer; transition: var(--transition);
  display: inline-flex; align-items: center; gap: 8px;
}
.main-wrap .btn.btn-primary:hover,
.main-wrap .btn-primary:hover { background: var(--accent-light); box-shadow: 0 4px 14px var(--accent-glow); color: #fff; }
.main-wrap .btn.btn-light,
.main-wrap a.btn.btn-light {
  height: 44px; padding: 0 20px; border-radius: var(--radius-sm);
  background: transparent; border: 1.5px solid var(--border); color: var(--text-muted);
  font-family: 'Nunito', sans-serif; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: var(--transition);
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none;
}
.main-wrap .btn.btn-light:hover,
.main-wrap a.btn.btn-light:hover { border-color: #ccd6e0; background: var(--bg-body); color: var(--text-primary); text-decoration: none; }
.main-wrap .btn.btn-secondary {
  height: 44px; padding: 0 20px; border-radius: var(--radius-sm);
  background: transparent; border: 1.5px solid var(--border); color: var(--text-muted);
  font-family: 'Nunito', sans-serif; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: var(--transition);
  display: inline-flex; align-items: center; gap: 8px;
}
.main-wrap .btn.btn-secondary:hover { border-color: #ccd6e0; background: var(--bg-body); color: var(--text-primary); }

.btn-add-brand {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px;
  background: var(--accent); color: #fff; border: none; border-radius: var(--radius-sm);
  font-family: 'Nunito', sans-serif; font-size: 13.5px; font-weight: 700;
  cursor: pointer; transition: var(--transition); text-decoration: none;
}
.btn-add-brand:hover { background: var(--accent-light); color: #fff; text-decoration: none; box-shadow: 0 4px 16px var(--accent-glow); transform: translateY(-1px); }
.btn-search {
  height: 40px; padding: 0 20px; border-radius: var(--radius-sm);
  background: #3b82f6 !important;
  border: 1px solid #3b82f6 !important;
  color: #fff;
  font-family: 'Nunito', sans-serif; font-size: 13.5px; font-weight: 700;
  transition: var(--transition); display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
}
.btn-search:hover {
  background: #2563eb !important;
  border-color: #2563eb !important;
  box-shadow: 0 4px 14px rgba(59,130,246,0.35) !important;
  transform: translateY(-1px);
  color: #fff;
}
.btn-clear {
  height: 40px; padding: 0 16px; border-radius: var(--radius-sm);
  background: transparent; border: 1px solid var(--border); color: var(--text-muted);
  font-family: 'Nunito', sans-serif; font-size: 13.5px; font-weight: 600;
  transition: var(--transition); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
a.btn-clear { text-decoration: none; }
.btn-clear:hover { border-color: #d0d9e4; background: var(--bg-body); color: var(--text-primary); }

/* ---- GROUP 6: Form Styles ---- */
.input-field {
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-family: 'Nunito', sans-serif; font-size: 14px; font-weight: 600;
  color: var(--text-primary); height: 44px; padding: 0 14px;
  background: var(--bg-body); transition: var(--transition); width: 100%;
  outline: none;
}
.input-field:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow);
  background: #fff;
}
.input-field:disabled, .input-field[readonly] { background: #f0f4f8; color: var(--text-muted); cursor: not-allowed; }
.select-field {
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-family: 'Nunito', sans-serif; font-size: 14px; font-weight: 600;
  color: var(--text-primary); height: 44px; padding: 0 14px;
  background: var(--bg-body); transition: var(--transition); width: 100%;
  outline: none; cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%237a8899' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
select.select-field {
  line-height: 42px;
  padding-top: 0;
  padding-bottom: 0;
}
.select-field:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); background-color: #fff; }
.form-field-label {
  font-size: 11.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px; color: var(--text-muted); margin-bottom: 6px;
}
.filter-bar {
  background: var(--bg-card); border-radius: var(--radius);
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  padding: 18px 22px; margin-bottom: 24px;
}
.filter-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.7px; color: var(--text-muted); margin-bottom: 6px; }
.filter-field-wrap { display: flex; flex-direction: column; gap: 5px; min-width: 160px; flex: 1; max-width: 260px; }
.table-filter-row {
  display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap;
  padding: 18px 22px; border-bottom: 1px solid var(--border);
}
.form-control, .custom-select {
  border: 1px solid var(--border) !important; border-radius: var(--radius-sm) !important;
  font-family: 'Nunito', sans-serif; font-size: 13.5px; font-weight: 600;
  color: var(--text-primary); height: 40px; padding: 0 12px; background: var(--bg-body);
  transition: var(--transition);
}
.form-control:focus, .custom-select:focus {
  border-color: var(--accent) !important; box-shadow: 0 0 0 3px var(--accent-glow) !important; background: #fff;
}
.phone-wrap { display: flex; gap: 8px; }
.phone-code { width: 100px; min-width: 100px; flex-shrink: 0; }
.phone-wrap .select2-container { min-width: 100px !important; width: 100px !important; }
.phone-wrap .select2-selection__rendered { white-space: nowrap; overflow: visible !important; text-overflow: clip !important; }
.amount-input-wrap { position: relative; }
.amount-input-wrap .currency-prefix {
  position: absolute; left: 0; top: 0; bottom: 0; width: 48px;
  background: var(--sidebar-bg); border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 16px; font-family: 'DM Sans', sans-serif;
}
.amount-input-wrap .input-field { padding-left: 60px; font-size: 18px; font-weight: 700; height: 54px; font-family: 'DM Sans', sans-serif; }
.preset-amounts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.preset-btn {
  padding: 7px 16px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); background: var(--bg-body);
  color: var(--text-primary); font-family: 'Nunito', sans-serif;
  font-size: 13px; font-weight: 700; cursor: pointer; transition: var(--transition);
}
.preset-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }
.preset-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---- GROUP 7: Brand Table Actions ---- */
.action-btn {
  width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--bg-card); display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 14px; cursor: pointer; transition: var(--transition); text-decoration: none;
}
.action-btn.icon-available {
  border-color: rgba(14,164,114,0.35);
  background: rgba(14,164,114,0.08);
  color: var(--accent);
}
.action-btn:hover { background: var(--accent-dim); border-color: var(--accent-glow); color: var(--accent); text-decoration: none; }
.action-btn.icon-available:hover {
  background: rgba(14,164,114,0.14);
  border-color: rgba(14,164,114,0.5);
}
.action-btn.danger:hover { background: rgba(244,63,94,0.08); border-color: rgba(244,63,94,0.2); color: #f43f5e; }
.action-btn.edit:hover   { background: rgba(59,130,246,0.08); border-color: rgba(59,130,246,0.2); color: #3b82f6; }
.actions-cell { display: flex; align-items: center; gap: 10px; flex-wrap: nowrap; }
.action-divider { width: 1px; height: 20px; background: var(--border); margin: 0 4px; flex-shrink: 0; }
.brand-sub-table .actions-cell { gap: 12px; }
.action-dropdown { display: inline-flex; align-items: center; }
.action-btn-dropdown.dropdown-toggle::after { display: none; }
.action-btn-dropdown.dropdown-toggle {
  padding: 0;
}
.action-dropdown .dropdown-menu {
  min-width: 180px;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(2, 18, 43, 0.12);
}
.brand-group-card { background: var(--bg-card); border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow-sm); overflow: hidden; margin-bottom: 20px; }
.brand-group-header {
  display: flex; align-items: center; padding: 16px 22px;
  background: var(--bg-card); gap: 14px; border-bottom: 1px solid var(--border);
  cursor: pointer; user-select: none;
}
.brand-group-header:hover { background: #fafcfe; }
.brand-group-header.collapsed .group-chevron { transform: rotate(-90deg); }
.group-avatar {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), #0778c2);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 17px; flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(14,164,114,0.3);
  overflow: hidden;
}
.group-avatar--photo {
  padding: 0;
  background: var(--bg-body);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.group-avatar__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
  background: #fff;
  display: block;
}
.brand-row-name {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.brand-row-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: contain;
  padding: 4px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  background: var(--bg-body);
}
.brand-row-logo-fallback {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), #0778c2);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  box-shadow: 0 2px 8px rgba(14,164,114,0.2);
}
.brand-row-title {
  font-weight: 700;
  color: var(--text-primary);
  min-width: 0;
}
.group-meta .group-name { font-size: 15px; font-weight: 800; color: var(--text-primary); line-height: 1.2; }
.group-meta .group-sub  { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.group-stats { margin-left: auto; display: flex; align-items: center; gap: 24px; }
.group-stat-item .val { font-size: 15px; font-weight: 800; color: var(--text-primary); line-height: 1.2; }
.group-stat-item .lbl {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  max-width: none;
}
.group-header-actions {
  margin-left: 16px;
  gap: 10px !important;
}
.group-chevron {
  width: 30px; height: 30px; background: var(--bg-body); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); transition: var(--transition); flex-shrink: 0; margin-left: 12px;
}

/* ---- GROUP 8: Specialized UI ---- */
.auto-topup-panel {
  background: var(--bg-card); border-radius: var(--radius);
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  overflow: hidden; margin-bottom: 24px;
}
.auto-topup-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; cursor: pointer; user-select: none;
  transition: var(--transition);
}
.auto-topup-header:hover { background: #fafcfe; }
.auto-topup-header h5 { font-size: 15px; font-weight: 700; margin: 0; }
.auto-topup-header .group-chevron.collapsed { transform: rotate(-90deg); }
.auto-topup-body { padding: 20px 22px; border-top: 1px solid var(--border); }
.auto-topup-notice {
  background: var(--accent-dim); border: 1px solid var(--accent-glow);
  border-radius: var(--radius-sm); padding: 12px 16px;
  font-size: 13px; color: var(--text-primary); margin-bottom: 20px; line-height: 1.6;
}
.auto-topup-notice a { color: var(--accent); font-weight: 700; }
.toggle-wrap { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.toggle-label { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.toggle-switch { position: relative; display: inline-block; width: 44px; height: 24px; cursor: pointer; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0; background: #d1dae6; border-radius: 24px; transition: var(--transition);
}
.toggle-slider::before {
  content: ''; position: absolute; height: 18px; width: 18px;
  left: 3px; bottom: 3px; background: #fff; border-radius: 50%; transition: var(--transition);
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.toggle-switch input:checked + .toggle-slider { background: var(--accent); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }
.topup-form-card {
  background: var(--bg-card); border-radius: var(--radius);
  border: 1px solid var(--border); box-shadow: var(--shadow-sm); overflow: hidden;
  max-width: 580px;
}

/* ---- GROUP 9: Radio Buttons ---- */
.radio-group { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.radio-option { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.radio-option input[type="radio"] { display: none; }
.radio-dot {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--border); background: var(--bg-body);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition); flex-shrink: 0;
}
.radio-dot::after {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: #fff; transform: scale(0); transition: var(--transition);
}
.radio-option input[type="radio"]:checked + .radio-dot {
  background: var(--accent); border-color: var(--accent);
}
.radio-option input[type="radio"]:checked + .radio-dot::after { transform: scale(1); }
.radio-option .radio-label { font-size: 13.5px; font-weight: 600; color: var(--text-primary); }

/* ---- GROUP 10: Profile ---- */
.profile-header-card {
  background: linear-gradient(135deg, var(--sidebar-bg) 0%, #1a3a5c 100%);
  border-radius: var(--radius); padding: 32px 28px;
  display: flex; align-items: center; gap: 24px;
  margin-bottom: 24px; box-shadow: var(--shadow-md);
  position: relative; overflow: hidden;
}
.profile-header-card::before {
  content: ''; position: absolute; right: -40px; top: -40px;
  width: 200px; height: 200px; background: rgba(14,164,114,0.1);
  border-radius: 50%;
}
.profile-avatar-lg {
  width: 72px; height: 72px; background: var(--accent);
  border-radius: 18px; display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 800; color: #fff; flex-shrink: 0;
  box-shadow: 0 6px 20px rgba(14,164,114,0.4);
  border: 3px solid rgba(255,255,255,0.15);
}
.profile-header-info .org-name { font-size: 22px; font-weight: 800; color: #fff; line-height: 1.2; }
.profile-header-info .org-email { font-size: 14px; color: rgba(255,255,255,0.6); margin-top: 4px; }
.profile-header-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent-dim); border: 1px solid var(--accent-glow);
  padding: 5px 12px; border-radius: 20px;
  font-size: 12px; font-weight: 700; color: var(--accent-light);
  margin-top: 10px;
}
.profile-form-panel {
  background: var(--bg-card); border-radius: var(--radius);
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.profile-form-section-title {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--text-muted); margin-bottom: 16px;
  padding-bottom: 8px; border-bottom: 1px solid var(--border);
}
.logo-upload-zone {
  border: 2px dashed var(--border); border-radius: var(--radius-sm);
  padding: 20px; display: flex; align-items: center; gap: 16px;
  cursor: pointer; transition: var(--transition); background: var(--bg-body);
}
.logo-upload-zone:hover { border-color: var(--accent); background: var(--accent-dim); }
.logo-upload-info .upload-title { font-size: 13.5px; font-weight: 700; color: var(--text-primary); }
.logo-upload-info .upload-hint { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.danger-zone-card {
  background: rgba(244,63,94,0.04); border: 1.5px solid rgba(244,63,94,0.15);
  border-radius: var(--radius); padding: 20px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; margin-top: 24px;
}
.danger-zone-card .dz-title { font-size: 14px; font-weight: 700; color: #f43f5e; margin-bottom: 2px; }
.danger-zone-card .dz-desc  { font-size: 12.5px; color: var(--text-muted); }

/* ---- GROUP 11: Topic Email Tags ---- */
.email-tag-wrap {
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg-body); padding: 10px 12px; min-height: 90px;
  transition: var(--transition); cursor: text;
}
.email-tag-wrap:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); background: #fff; }
.email-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent); color: #fff;
  padding: 4px 10px 4px 12px; border-radius: 20px;
  font-size: 12.5px; font-weight: 600; margin: 3px;
}
.email-chip .rm { cursor: pointer; font-size: 13px; opacity: 0.75; transition: var(--transition); line-height: 1; }
.email-chip .rm:hover { opacity: 1; }
.email-tag-input {
  border: none; background: transparent; outline: none;
  font-family: 'Nunito', sans-serif; font-size: 13.5px; font-weight: 600;
  color: var(--text-primary); min-width: 200px; margin: 3px;
}

/* ---- GROUP 12: Poll Options ---- */
.option-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.option-row .input-field { flex: 1; }
.option-action-btn {
  width: 36px; height: 36px; border-radius: 8px; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; transition: var(--transition); flex-shrink: 0;
}
.option-action-btn.add { background: var(--accent); color: #fff; }
.option-action-btn.add:hover { background: var(--accent-light); box-shadow: 0 3px 10px var(--accent-glow); }
.option-action-btn.remove { background: rgba(244,63,94,0.1); color: #f43f5e; border: 1.5px solid rgba(244,63,94,0.2); }
.option-action-btn.remove:hover { background: rgba(244,63,94,0.2); }
.result-bar-wrap { width: 100%; background: var(--border); border-radius: 20px; height: 8px; overflow: hidden; margin-top: 6px; }
.result-bar { height: 100%; background: var(--accent); border-radius: 20px; transition: width 0.6s ease; }

/* ---- GROUP 13: Notification Topics ---- */
.file-dropzone {
  border: 2px dashed var(--border); border-radius: var(--radius-sm);
  background: var(--bg-body); padding: 32px 20px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; cursor: pointer; transition: var(--transition); text-align: center;
}
.file-dropzone:hover { border-color: var(--accent); background: var(--accent-dim); }
.file-dropzone i { font-size: 28px; color: var(--text-muted); }
.file-dropzone .dz-text { font-size: 13.5px; font-weight: 600; color: var(--text-muted); }
.file-dropzone .dz-hint { font-size: 11.5px; color: var(--text-muted); opacity: 0.7; }
.country-tag-container {
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg-body); padding: 14px; min-height: 60px;
  transition: var(--transition);
}
.country-tag-container:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); background: #fff; }
.country-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 12px; border-radius: 20px; font-size: 12.5px; font-weight: 600;
  cursor: pointer; transition: var(--transition); margin: 3px;
  border: 1.5px solid var(--border); background: var(--bg-card); color: var(--text-primary);
  user-select: none;
}
.country-tag:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }
.country-tag.selected {
  background: var(--accent); border-color: var(--accent); color: #fff;
  box-shadow: 0 2px 8px var(--accent-glow);
}
.country-tag.selected:hover { background: var(--accent-light); }
.country-search-input {
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: 9px 14px 9px 38px; font-family: 'Nunito', sans-serif;
  font-size: 13.5px; font-weight: 600; color: var(--text-primary);
  background: var(--bg-body); width: 100%; outline: none; transition: var(--transition);
  margin-bottom: 10px;
}
.country-search-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); background: #fff; }
.country-search-wrap { position: relative; }
.country-search-wrap i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 14px; }
.selected-countries-preview {
  display: flex; flex-wrap: wrap; gap: 6px; min-height: 36px;
  padding: 8px 12px; background: var(--bg-body); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); margin-bottom: 10px;
}
.selected-tag-chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--accent); color: #fff; padding: 3px 10px;
  border-radius: 20px; font-size: 12px; font-weight: 700;
}
.selected-tag-chip .remove-tag {
  cursor: pointer; font-size: 12px; opacity: 0.7; transition: var(--transition);
}
.selected-tag-chip .remove-tag:hover { opacity: 1; }

/* ---- GROUP 14: Settings ---- */
.settings-feature-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0; border-bottom: 1px solid var(--border); gap: 16px; flex-wrap: wrap;
}
.settings-feature-left { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 200px; }
.settings-feature-icon {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 17px;
}
.settings-feature-name { font-size: 14px; font-weight: 700; color: var(--text-primary); line-height: 1.2; }
.settings-feature-desc { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; line-height: 1.4; }

/* ---- GROUP 15: Advertisement ---- */
.advert-thumb { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.advert-thumb-img {
  width: 100px; height: 100px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--border); overflow: hidden;
}
.advert-remove-btn {
  font-size: 11.5px; font-weight: 700; color: #f43f5e; background: rgba(244,63,94,0.08);
  border: 1px solid rgba(244,63,94,0.2); border-radius: 20px;
  padding: 3px 10px; cursor: pointer; transition: var(--transition);
}
.advert-remove-btn:hover { background: rgba(244,63,94,0.15); }

/* ---- GROUP 16: Misc ---- */
.pagination-wrap { display: flex; align-items: center; justify-content: flex-end; padding: 16px 22px; gap: 6px; }
.page-btn {
  width: 34px; height: 34px; border-radius: 8px; border: 1.5px solid var(--border);
  background: var(--bg-card); display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: var(--text-muted); cursor: pointer;
  transition: var(--transition); text-decoration: none;
}
.page-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }
.page-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.empty-state {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 60px 20px; gap: 12px;
}
.empty-state i { font-size: 40px; color: var(--border); }
.empty-state p { font-size: 14px; color: var(--text-muted); font-weight: 600; margin: 0; }
@keyframes fadeSlideUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.animate-in { animation: fadeSlideUp 0.35s ease both; }
.animate-in:nth-child(1) { animation-delay: 0.04s; }
.animate-in:nth-child(2) { animation-delay: 0.09s; }
.animate-in:nth-child(3) { animation-delay: 0.13s; }
.animate-in:nth-child(4) { animation-delay: 0.17s; }
.animate-in:nth-child(5) { animation-delay: 0.21s; }
.animate-in:nth-child(6) { animation-delay: 0.25s; }
.animate-in:nth-child(7) { animation-delay: 0.29s; }
.animate-in:nth-child(8) { animation-delay: 0.33s; }
.animate-in:nth-child(9) { animation-delay: 0.37s; }
.text-accent { color: var(--accent); }

/* Action buttons: use native `title` tooltips only (avoids duplicate with custom ::after) */
.action-btn[title] { position: relative; }
.overflow-x-auto { overflow-x: auto; }
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #c5d0dc; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #9aaabb; }
.breadcrumb-sep { color: var(--text-muted); font-size: 11px; }
.breadcrumb-link {
  color: var(--accent); font-weight: 600; text-decoration: none; font-size: 13px; cursor: pointer;
}
.breadcrumb-link:hover { text-decoration: underline; }

/* ---- GROUP 17: Dropzone panel wrapper (Shop / Win / Advertisement) ---- */
.dz-panel-wrap {
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-body);
  padding: 0;
  position: relative;
  overflow: hidden;
}
/* Upload prompt lives inside Dropzone .dz-message so clicks open the file dialog */
.dz-panel-wrap .dropzone {
  min-height: 200px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
}
.dz-panel-wrap .dz-panel-inner-msg {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  gap: 10px;
  text-align: center;
  flex: 1 1 auto;
  min-height: 160px;
  width: 100%;
  box-sizing: border-box;
  cursor: pointer;
}
.dz-panel-wrap .dz-panel-inner-msg i {
  font-size: 32px;
  color: var(--text-muted);
}
.dz-panel-wrap .dz-main-text {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
}
.dz-panel-wrap .dz-hint-text {
  font-size: 11.5px;
  color: var(--text-muted);
  opacity: 0.7;
}
.dz-panel-wrap.dz-has-files .dz-panel-inner-msg {
  display: none;
}
.dz-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
  font-size: 12.5px;
  color: var(--text-muted);
}
.dz-count-text { font-weight: 600; color: var(--text-primary); }
.dz-size-hint { font-size: 11.5px; opacity: 0.85; }
@keyframes dzPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Map Dropzone.js generated elements to our new styles (panel wrap overrides min-height above) */
.dropzone { border: none !important; background: transparent !important; padding: 0 !important; min-height: 0 !important; }
.dropzone .dz-preview { position: relative !important; width: 110px !important; flex-shrink: 0 !important; display: flex !important; flex-direction: column !important; align-items: center !important; gap: 0 !important; margin: 0 !important; }
.dropzone .dz-preview .dz-image { width: 110px !important; height: 110px !important; border-radius: var(--radius-sm) !important; overflow: hidden !important; border: 2px solid var(--border) !important; box-shadow: var(--shadow-sm) !important; }
.dropzone .dz-preview .dz-image img { width: 100% !important; height: 100% !important; object-fit: cover !important; }
.dropzone .dz-preview .dz-progress { position: absolute !important; bottom: -22px !important; left: 0 !important; right: 0 !important; height: 5px !important; background: var(--border) !important; border-radius: 20px !important; overflow: hidden !important; margin: 0 !important; opacity: 1 !important; }
.dropzone .dz-preview .dz-progress .dz-upload { height: 100% !important; background: linear-gradient(90deg, var(--accent), var(--accent-light)) !important; border-radius: 20px !important; }
.dropzone .dz-preview.dz-complete .dz-progress { display: none !important; }
.dropzone .dz-preview .dz-success-mark, .dropzone .dz-preview .dz-error-mark {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  transform: none !important;
  opacity: 0.55 !important;
  pointer-events: none !important;
}
.dropzone .dz-preview .dz-success-mark svg, .dropzone .dz-preview .dz-error-mark svg { display: none !important; }
.dropzone .dz-preview .dz-success-mark { display: none !important; }
.dropzone .dz-preview.dz-success .dz-success-mark::after { content: none !important; }
.dropzone .dz-preview.dz-success .dz-image { position: relative !important; }
.dropzone .dz-preview.dz-success .dz-image::after {
  content: '\F26A';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'bootstrap-icons' !important;
  font-size: 30px !important;
  color: rgba(255,255,255,0.85) !important;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.22)) !important;
  pointer-events: none;
}
.dropzone .dz-preview .dz-filename { font-size: 11px !important; font-weight: 600 !important; color: var(--text-muted) !important; margin-top: 30px !important; text-align: center !important; white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; max-width: 110px !important; }
.dropzone .dz-preview .dz-size { font-size: 10.5px !important; color: var(--text-muted) !important; text-align: center !important; margin-top: 2px !important; }
.dropzone .dz-preview .dz-remove { z-index: 20 !important; font-size: 0 !important; position: absolute !important; top: -7px !important; right: -7px !important; width: 22px !important; height: 22px !important; border-radius: 50% !important; background: #f43f5e !important; color: #fff !important; border: 2px solid #fff !important; display: flex !important; align-items: center !important; justify-content: center !important; cursor: pointer !important; box-shadow: 0 2px 6px rgba(0,0,0,0.25) !important; text-decoration: none !important; pointer-events: auto !important; }
.dropzone .dz-preview .dz-remove::after { content: '\F659'; font-family: 'bootstrap-icons' !important; font-size: 13px !important; }
.dropzone .dz-preview .dz-remove:hover { background: #dc2626 !important; transform: scale(1.12) !important; }
.dropzone .dz-preview.dz-processing .dz-image { animation: dzPulse 1.4s ease infinite !important; }
.dropzone.dz-started .dz-message { display: none !important; }
.dropzone .dz-default.dz-message { display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important; padding: 32px 20px !important; gap: 10px !important; }
.dropzone .dz-previews-container,
.dropzone .dropzone-previews { display: flex !important; flex-wrap: wrap !important; gap: 14px !important; padding: 14px !important; }

/* ============================================================
   PAGINATION — Style vendor/default_paginate inside subscriber
   Targets Bootstrap 4 pagination rendered by that view.
   Scoped inside .page-content so admin is unaffected.
============================================================ */
.page-content .pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0;
  padding: 16px 0 0;
  list-style: none;
}
.page-content .pagination .page-item .page-link {
  width: 34px;
  height: 34px;
  border-radius: 8px !important;
  border: 1.5px solid var(--border) !important;
  background: var(--bg-card) !important;
  color: var(--text-muted) !important;
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  transition: var(--transition);
  box-shadow: none !important;
}
.page-content .pagination .page-item .page-link:hover {
  border-color: var(--accent) !important;
  color: var(--accent) !important;
  background: var(--accent-dim) !important;
}
.page-content .pagination .page-item.active .page-link {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #fff !important;
}
.page-content .pagination .page-item.disabled .page-link {
  opacity: 0.4;
  pointer-events: none;
  background: var(--bg-body) !important;
  border-color: var(--border) !important;
  color: var(--text-muted) !important;
}

/* Wrap pagination in consistent right-aligned container */
.pagination-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 16px 22px;
}

/* Legacy button compatibility — catches any remaining btn classes in subscriber views */
.page-content .btn.btn-primary,
.page-content input[type="submit"].btn-primary {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #fff !important;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  border-radius: var(--radius-sm) !important;
  transition: var(--transition);
}
.page-content .btn.btn-primary:hover {
  background: var(--accent-light) !important;
  border-color: var(--accent-light) !important;
  box-shadow: 0 4px 14px var(--accent-glow) !important;
}
.page-content .btn.btn-success {
  background: var(--sidebar-bg) !important;
  border-color: var(--sidebar-bg) !important;
  color: #fff !important;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  border-radius: var(--radius-sm) !important;
}
.page-content .btn.btn-secondary,
.page-content .btn.btn-light,
.page-content .btn.btn-default {
  background: transparent !important;
  border: 1.5px solid var(--border) !important;
  color: var(--text-muted) !important;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  border-radius: var(--radius-sm) !important;
}
.page-content .btn.btn-danger {
  background: rgba(244,63,94,0.08) !important;
  border: 1.5px solid rgba(244,63,94,0.2) !important;
  color: #f43f5e !important;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  border-radius: var(--radius-sm) !important;
}

/* Standalone subscriber auth cards (login, register, resend verification, …) — footer links.
   subscriber.css is not loaded on superadmin layouts. */
.panel-body .auth-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.panel-body .auth-link:hover {
  color: var(--accent-light);
  text-decoration: underline;
}

/* ============================================================
   SWEETALERT2 — Subscriber palette override
   SweetAlert2 is global so we can't scope by .page-content.
   These overrides apply site-wide but only change the accent
   color so admin Swal dialogs will also look improved, not broken.
============================================================ */
.swal2-confirm {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  border-radius: 8px !important;
  font-family: 'Nunito', sans-serif !important;
  font-weight: 700 !important;
  box-shadow: none !important;
}
.swal2-confirm:hover {
  background: #12c586 !important;
  border-color: #12c586 !important;
}
.swal2-cancel {
  background: transparent !important;
  border: 1.5px solid #d1dae6 !important;
  color: #7a8899 !important;
  border-radius: 8px !important;
  font-family: 'Nunito', sans-serif !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}
.swal2-cancel:hover {
  background: #f0f4f8 !important;
  color: #1a2535 !important;
}
.swal2-deny {
  background: rgba(244,63,94,0.1) !important;
  border: 1.5px solid rgba(244,63,94,0.25) !important;
  color: #f43f5e !important;
  border-radius: 8px !important;
  font-family: 'Nunito', sans-serif !important;
  font-weight: 700 !important;
  box-shadow: none !important;
}
.swal2-popup {
  border-radius: 14px !important;
  font-family: 'Nunito', sans-serif !important;
  /* Extra top space so icons (e.g. question mark) are not flush with the modal edge */
  padding-top: 1.5rem !important;
}
.swal2-icon {
  margin-top: 0.25rem !important;
}
.swal2-title {
  font-family: 'DM Sans', 'Nunito', sans-serif !important;
  font-weight: 800 !important;
  font-size: 20px !important;
}
.swal2-html-container {
  font-family: 'Nunito', sans-serif !important;
  font-size: 14px !important;
}

/* ============================================================
   SWEETALERT (sweetalert.js) — colors only, matches subscriber accent
   Used on My Brands (swal + dangerMode). Scoped to .app-shell.
============================================================ */
.app-shell .swal-button--danger {
  background-color: var(--accent) !important;
  box-shadow: none !important;
}
.app-shell .swal-button--danger:not([disabled]):hover {
  background-color: var(--accent-light) !important;
}
.app-shell .swal-button--danger:active {
  background-color: #0b9568 !important;
}
.app-shell .swal-button--danger:focus {
  box-shadow: 0 0 0 1px #fff, 0 0 0 3px var(--accent-glow) !important;
}
.app-shell .swal-icon--warning {
  border-color: rgba(14, 164, 114, 0.55) !important;
  animation: none !important;
}
.app-shell .swal-icon--warning__body,
.app-shell .swal-icon--warning__dot {
  background-color: var(--accent) !important;
}

/* ============================================================
   TOASTR — subscriber: fixed below top bar (avoids overflow clip on .page-content)
   Container is #subscriber-toast-container on body (see main layout toastr.options).
============================================================ */
#subscriber-toast-container {
  position: fixed !important;
  top: calc(var(--topbar-h) + 12px) !important;
  right: max(16px, env(safe-area-inset-right, 0px)) !important;
  left: auto !important;
  bottom: auto !important;
  width: auto !important;
  max-width: min(360px, calc(100vw - 32px));
  z-index: 100000 !important;
  pointer-events: none;
}
#subscriber-toast-container .subscriber-toastr-el {
  position: relative;
  pointer-events: auto;
  overflow: hidden;
  margin: 0 0 10px;
  padding: 14px 42px 14px 16px;
  width: 300px;
  max-width: min(300px, calc(100vw - 40px));
  box-sizing: border-box;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  color: #fff !important;
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  border: none;
  background-image: none !important;
  /* Override Bootstrap .toast { opacity: 0 } — toastr uses fadeIn, not .show */
  opacity: 1 !important;
  visibility: visible !important;
}
#subscriber-toast-container .toast-title {
  font-weight: 800;
  font-family: 'DM Sans', 'Nunito', sans-serif;
  margin-bottom: 4px;
}
#subscriber-toast-container .toast-message {
  color: #fff !important;
}
#subscriber-toast-container .toast-close-button {
  position: absolute !important;
  top: 50% !important;
  right: 10px !important;
  left: auto !important;
  transform: translateY(-50%) !important;
  float: none !important;
  margin: 0 !important;
  line-height: 1 !important;
  width: 28px;
  height: 28px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: none;
  opacity: 0.95;
}
#subscriber-toast-container .toast-close-button:hover {
  color: #fff;
  opacity: 1;
}
#subscriber-toast-container .subscriber-toastr-el.toast-success {
  background: var(--accent) !important;
  background-image: none !important;
}
#subscriber-toast-container .subscriber-toastr-el.toast-success:hover {
  box-shadow: 0 6px 20px var(--accent-glow);
}
#subscriber-toast-container .subscriber-toastr-el.toast-error {
  background: linear-gradient(135deg, #e24d5c, #c73e4a) !important;
  background-image: none !important;
}
#subscriber-toast-container .subscriber-toastr-el.toast-info {
  background: linear-gradient(135deg, #0b8a8a, #0a6b72) !important;
  background-image: none !important;
}
#subscriber-toast-container .subscriber-toastr-el.toast-warning {
  background: linear-gradient(135deg, #e8a317, #c9860d) !important;
  background-image: none !important;
}

/* ============================================================
   SESSION FLASH MESSAGES — scoped to subscriber content
============================================================ */
.page-content .alert {
  border-radius: 8px !important;
  border: none !important;
  border-left: 4px solid !important;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 16px !important;
  margin-bottom: 16px !important;
  display: flex;
  align-items: center;
  gap: 10px;
}
.page-content .alert-success {
  background: rgba(14,164,114,0.08) !important;
  color: #0ea472 !important;
  border-left-color: #0ea472 !important;
}
.page-content .alert-danger,
.page-content .alert-error {
  background: rgba(244,63,94,0.07) !important;
  color: #f43f5e !important;
  border-left-color: #f43f5e !important;
}
.page-content .alert-warning {
  background: rgba(245,158,11,0.07) !important;
  color: #d97706 !important;
  border-left-color: #f59e0b !important;
}
.page-content .alert-info {
  background: rgba(59,130,246,0.07) !important;
  color: #3b82f6 !important;
  border-left-color: #3b82f6 !important;
}
.page-content .alert .close {
  margin-left: auto;
  color: inherit;
  opacity: 0.5;
  font-size: 18px;
}

/* ============================================================
   FORM VALIDATION ERRORS — scoped to subscriber content
============================================================ */
.page-content .help-block,
.page-content .invalid-feedback,
.page-content span.error,
.page-content label.error,
.page-content .text-danger {
  font-size: 12px !important;
  color: #f43f5e !important;
  margin-top: 4px !important;
  display: block !important;
  font-weight: 600 !important;
}

/* ============================================================
   SELECT2 — scoped to subscriber content
============================================================ */
.page-content .select2-container--default .select2-selection--single,
.page-content .select2-container--default .select2-selection--multiple {
  border: 1.5px solid var(--border) !important;
  border-radius: var(--radius-sm) !important;
  min-height: 44px !important;
  background: var(--bg-body) !important;
  font-family: 'Nunito', sans-serif;
}
.page-content .select2-container--default .select2-selection--single {
  height: 44px !important;
  display: flex !important;
  align-items: center !important;
}
.page-content .select2-container--default.select2-container--focus .select2-selection--single,
.page-content .select2-container--default.select2-container--focus .select2-selection--multiple,
.page-content .select2-container--default.select2-container--open .select2-selection--single {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(14,164,114,0.25) !important;
}
.page-content .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 1.2 !important;
  padding-left: 12px !important;
  padding-right: 34px !important;
  color: var(--text-primary) !important;
  font-size: 13.5px;
  font-weight: 600;
  width: 100%;
  display: flex !important;
  align-items: center !important;
  min-height: 42px !important;
}
.page-content .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 42px !important;
  top: 1px !important;
  right: 6px !important;
}
.page-content .select2-container--default .select2-results__option--highlighted[aria-selected] {
  background: var(--accent) !important;
}
.page-content .select2-dropdown {
  border: 1.5px solid var(--border) !important;
  border-radius: var(--radius-sm) !important;
  box-shadow: 0 4px 20px rgba(13,27,42,0.10) !important;
  font-family: 'Nunito', sans-serif;
}

/* Select2 multiple — stop × remove control overlapping country/option text (brand create/edit, etc.) */
.page-content .select2-container--default .select2-selection--multiple .select2-selection__rendered {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 0 4px !important;
  white-space: normal !important;
  overflow: visible !important;
  padding: 6px 8px 8px !important;
  line-height: 1.35 !important;
  box-sizing: border-box !important;
}
.page-content .select2-container--default .select2-selection--multiple .select2-selection__choice {
  float: none !important;
  display: inline-flex !important;
  align-items: center !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 6px !important;
  margin: 4px 6px 0 0 !important;
  padding: 5px 10px 5px 8px !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  border-radius: 6px !important;
  vertical-align: middle !important;
}
.page-content .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
  position: static !important;
  float: none !important;
  left: auto !important;
  top: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  width: auto !important;
  min-width: 1em !important;
  flex-shrink: 0 !important;
  cursor: pointer !important;
  color: inherit !important;
  opacity: 0.92 !important;
}
.page-content .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
  opacity: 1 !important;
}
.page-content .select2-container--default .select2-selection--multiple .select2-search--inline {
  float: none !important;
  display: inline-flex !important;
  align-items: center !important;
  flex: 1 1 140px !important;
  min-width: 100px !important;
  margin-top: 4px !important;
}
.page-content .select2-container--default .select2-selection--multiple .select2-search--inline .select2-search__field {
  margin-top: 0 !important;
  margin-left: 0 !important;
  margin-bottom: 0 !important;
  padding: 4px 0 !important;
  min-height: 28px !important;
  line-height: 1.35 !important;
  height: auto !important;
  vertical-align: middle !important;
}

/* ============================================================
   TAGSINPUT — scoped to subscriber content
============================================================ */
.page-content .bootstrap-tagsinput {
  border: 1.5px solid var(--border) !important;
  border-radius: var(--radius-sm) !important;
  background: var(--bg-body) !important;
  min-height: 44px !important;
  padding: 6px 10px !important;
  font-family: 'Nunito', sans-serif;
  width: 100% !important;
  box-shadow: none !important;
}
.page-content .bootstrap-tagsinput.focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(14,164,114,0.25) !important;
  background: #fff !important;
}
.page-content .bootstrap-tagsinput .tag {
  background: var(--accent) !important;
  border-radius: 20px !important;
  padding: 3px 10px !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  margin: 2px !important;
}
.page-content .bootstrap-tagsinput input {
  font-family: 'Nunito', sans-serif !important;
  font-size: 13.5px !important;
  color: var(--text-primary) !important;
}

/* ============================================================
   DATATABLES — scoped to subscriber content
============================================================ */
.page-content .dataTables_wrapper .dataTables_filter input,
.page-content .dataTables_wrapper .dataTables_length select {
  border: 1.5px solid var(--border) !important;
  border-radius: var(--radius-sm) !important;
  padding: 6px 10px !important;
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  background: var(--bg-body);
  color: var(--text-primary);
}
.page-content .dataTables_wrapper .dataTables_filter input:focus,
.page-content .dataTables_wrapper .dataTables_length select:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(14,164,114,0.25) !important;
  outline: none;
}
.page-content .dataTables_wrapper .dataTables_paginate .paginate_button.current,
.page-content .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #fff !important;
  border-radius: 8px !important;
}
.page-content .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: var(--accent-dim) !important;
  border-color: var(--accent) !important;
  color: var(--accent) !important;
  border-radius: 8px !important;
}
.page-content .dataTables_info {
  font-family: 'Nunito', sans-serif;
  font-size: 12.5px;
  color: var(--text-muted);
}
