  /* ===== RESET & VARIABLES ===== */
  *,
  *::before,
  *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  a {
    text-decoration: none;
  }
  
  :root {
    --bg: #0a0c10;
    --bg2: #10131a;
    --bg3: #161b26;
    --card: #13161f;
    --card2: #1a1f2e;
    --border: rgba(255, 255, 255, 0.07);
    --border2: rgba(255, 255, 255, 0.12);
    --text: #f0f2f8;
    --text2: #8a91a8;
    --text3: #5a6278;
    --accent: #6c63ff;
    --accent2: #8b85ff;
    --accent-glow: rgba(108, 99, 255, 0.25);
    --green: #22c55e;
    --green-bg: rgba(34, 197, 94, 0.1);
    --red: #ef4444;
    --red-bg: rgba(239, 68, 68, 0.1);
    --yellow: #f59e0b;
    --yellow-bg: rgba(245, 158, 11, 0.1);
    --blue: #3b82f6;
    --blue-bg: rgba(59, 130, 246, 0.1);
    --sidebar-w: 260px;
    --radius: 14px;
    --radius-sm: 8px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    
    
    --gold: #2E7D52;
    --gold-light: #4CAF7D;
    --gold-dark: #1B4D32;
    --gold-pale: #EAF5EE;
    --dark: #0A1F14;
    --font-display: 'Sora', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    
    --border-color: #1e3828;
    --modal-bg: #0f1f16;
    --modal-overlay: rgba(0, 0, 0, 0.75);
    --modal-text: #f0faf4;
    --modal-sub: #8faf97;
  }
  
  [data-theme="light"] {
    --bg: #f0f2f8;
    --bg2: #e8eaf2;
    --bg3: #dfe2ef;
    --card: #ffffff;
    --card2: #f7f8fc;
    --border: rgba(0, 0, 0, 0.07);
    --border2: rgba(0, 0, 0, 0.12);
    --text: #0f1120;
    --text2: #4a5068;
    --text3: #8a91a8;
    --accent: #5c54e0;
    --accent2: #7b75f5;
    --accent-glow: rgba(92, 84, 224, 0.15);
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    
    --border-color: #e5e7eb;
    --modal-bg: #ffffff;
    --modal-overlay: rgba(0, 0, 0, 0.55);
    --modal-text: #0A1F14;
    --modal-sub: #64748b;
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    transition: background var(--transition), color var(--transition);
    overflow-x: hidden;
  }
  
  /* ===== SCROLLBAR ===== */
  ::-webkit-scrollbar {
    width: 4px;
  }
  
  ::-webkit-scrollbar-track {
    background: transparent;
  }
  
  ::-webkit-scrollbar-thumb {
    background: var(--border2);
    border-radius: 99px;
  }
  
  /* ===== SIDEBAR ===== */
  .sidebar {
    width: var(--sidebar-w);
    min-height: 100vh;
    background: var(--card);
    border-right: 1px solid var(--border);
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: transform var(--transition), background var(--transition);
    overflow-y: auto;
  }
  
  .sidebar-logo {
    padding: 28px 24px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border);
  }
  
  .logo-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--accent), #a78bfa);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 0 20px var(--accent-glow);
  }
  
  .logo-text {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -0.5px;
    color: var(--text);
  }
  
  .logo-text span {
    color: var(--accent);
  }
  
  .sidebar-user {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border);
  }
  
  .user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #a78bfa);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #fff;
    flex-shrink: 0;
  }
  
  .user-info .user-name {
    font-weight: 600;
    font-size: 14px;
  }
  
  .user-info .user-badge {
    font-size: 11px;
    color: var(--green);
    background: var(--green-bg);
    padding: 2px 8px;
    border-radius: 99px;
    display: inline-block;
    margin-top: 2px;
  }
  
  .sidebar-nav {
    padding: 16px 12px;
    flex: 1;
    overflow-y: scroll;
  }
  
  .nav-section {
    margin-bottom: 8px;
  }
  
  .nav-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--text3);
    padding: 8px 12px 6px;
  }
  
  .dnav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    color: var(--text2);
    font-size: 14px;
    font-weight: 500;
    position: relative;
    user-select: none;
  }
  
  .dnav-item:hover {
    background: var(--bg2);
    color: var(--text);
  }
  
  .dnav-item.active {
    background: var(--accent-glow);
    color: var(--accent2);
  }
  
  .dnav-item.active .nav-icon {
    color: var(--accent);
  }
  
  .nav-icon {
    width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
  }
  
  .nav-icon i {
    font-size: 18px;
    line-height: 1;
  }
  
  .nav-badge {
    margin-left: auto;
    background: var(--accent);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 99px;
    min-width: 18px;
    text-align: center;
  }
  
  .nav-badge.red {
    background: var(--red);
  }
  
  .sidebar-footer {
    padding: 16px 12px;
    border-top: 1px solid var(--border);
  }
  
  /* ===== MAIN CONTENT ===== */
  .main {
    margin-left: var(--sidebar-w);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: margin var(--transition);
    width: 100%;
    overflow: hidden;
  }
  
  /* ===== TOPBAR ===== */
  .topbar {
    height: 70px;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 50;
    transition: background var(--transition);
  }
  
  .topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
  }
  
  .menu-btn {
    display: none;
    width: 36px;
    height: 36px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--text2);
    transition: all var(--transition);
  }
  
  .menu-btn:hover {
    color: var(--text);
    background: var(--bg3);
  }
  
  .page-title {
    font-family: 'Syne', sans-serif;
    font-weight: 650;
    font-size: 18px;
    letter-spacing: -0.2px;
  }
  
  .topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  
  .theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--bg2);
    border: 1px solid var(--border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all var(--transition);
    color: var(--text2);
  }
  
  .theme-toggle:hover {
    background: var(--bg3);
    color: var(--text);
  }
  
  .notif-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--bg2);
    border: 1px solid var(--border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all var(--transition);
    color: var(--text2);
    position: relative;
  }
  
  .notif-btn::after {
    content: '';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: var(--red);
    border-radius: 50%;
    border: 2px solid var(--card);
  }
  
  .topbar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
  }
  
  .topbar-user:hover {
    border-color: var(--border2);
  }
  
  .topbar-user .t-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #a78bfa);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
  }
  
  .topbar-user .t-name {
    font-size: 13px;
    font-weight: 500;
    display: none;
  }
  
  /* ===== PAGE CONTENT ===== */
  .page-content {
    padding: 32px;
    flex: 1;
  }
  
  .page {
    animation: fadeIn 0.3s ease;
  }
  
  .hidden {
    display: none !important;
  }
  
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* ===== COMPONENTS ===== */
  .section-header {
    margin-bottom: 24px;
  }
  
  .section-title {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 22px;
    margin-bottom: 4px;
  }
  
  .section-sub {
    color: var(--text2);
    font-size: 14px;
  }
  
  /* CARDS */
  .card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: border-color var(--transition), background var(--transition);
  }
  
  .card:hover {
    border-color: var(--border2);
  }
  
  .card-sm {
    padding: 16px 20px;
  }
  
  /* GRID */
  .grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
  
  .grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  
  .grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .grid-2-1 {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
  }
  
  /* STAT CARDS */
  .stat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    position: relative;
    overflow: hidden;
    transition: all var(--transition);
  }
  
  .stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
  }
  
  .stat-card.purple::before {
    background: linear-gradient(90deg, var(--accent), #a78bfa);
  }
  
  .stat-card.green::before {
    background: linear-gradient(90deg, var(--green), #4ade80);
  }
  
  .stat-card.blue::before {
    background: linear-gradient(90deg, var(--blue), #60a5fa);
  }
  
  .stat-card.yellow::before {
    background: linear-gradient(90deg, var(--yellow), #fbbf24);
  }
  
  .stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
  }
  
  .stat-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 14px;
  }
  
  .stat-icon i {
    font-size: 20px;
    line-height: 1;
  }
  
  .stat-icon.purple {
    background: var(--accent-glow);
    color: var(--accent2);
  }
  
  .stat-icon.green {
    background: var(--green-bg);
    color: var(--green);
  }
  
  .stat-icon.blue {
    background: var(--blue-bg);
    color: var(--blue);
  }
  
  .stat-icon.yellow {
    background: var(--yellow-bg);
    color: var(--yellow);
  }
  
  .stat-value {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 26px;
    line-height: 1;
    margin-bottom: 6px;
  }
  
  .stat-label {
    font-size: 13px;
    color: var(--text2);
  }
  
  .stat-change {
    font-size: 12px;
    font-weight: 500;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
  }
  
  .stat-change.up {
    color: var(--green);
  }
  
  .stat-change.down {
    color: var(--red);
  }
  
  /* BALANCE CARD */
  .balance-card {
    background: linear-gradient(135deg, var(--accent) 0%, #a78bfa 50%, #818cf8 100%);
    border-radius: var(--radius);
    padding: 0;
    color: #fff;
    position: relative;
    overflow: hidden;
  }
  
  .balance-card::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 180px;
    height: 180px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
  }
  
  .balance-card::after {
    content: '';
    position: absolute;
    bottom: -60px;
    right: 40px;
    width: 240px;
    height: 240px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
  }
  
  .balance-label {
    font-size: 13px;
    opacity: 0.8;
    margin: 15px 0 8px 15px;
  }
  
  .balance-amount {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 30px;
    letter-spacing: -1px;
    margin: 0 0 10px 15px;
  }
  
  .balance-actions {
    display: flex;
    gap: 8px;
    position: relative;
    z-index: 1;
    width: 100%;
    align-items: center;
    margin: 0 0 20px 8px;
  }
  
  .bal-btn {
    padding: 9px 13px;
    border-radius: var(--radius-sm);
    font-size: 10px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
  }
  
  .bal-btn.white {
    background: rgba(255, 255, 255, 0.95);
    color: var(--accent);
  }
  
  .bal-btn.outline {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
  }
  
  .bal-btn:hover {
    transform: translateY(-1px);
  }
  
  /* TABLE */
  .table-wrap {
    overflow-x: auto;
  }
  
  table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
  }
  
  thead th {
    text-align: left;
    padding: 12px 16px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--text3);
    border-bottom: 1px solid var(--border);
  }
  
  tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
  }
  
  tbody tr:hover {
    background: var(--bg2);
  }
  
  tbody tr:last-child {
    border-bottom: none;
  }
  
  tbody td {
    padding: 14px 16px;
    color: var(--text2);
  }
  
  tbody td:first-child {
    color: var(--text);
  }
  
  /* BADGES */
  .badge {
    padding: 3px 10px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 600;
    display: inline-block;
  }
  
  .badge.success {
    background: var(--green-bg);
    color: var(--green);
  }
  
  .badge.pending {
    background: var(--yellow-bg);
    color: var(--yellow);
  }
  
  .badge.failed {
    background: var(--red-bg);
    color: var(--red);
  }
  
  .badge.info {
    background: var(--blue-bg);
    color: var(--blue);
  }
  
  /* BUTTONS */
  .btn {
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  
  .btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 0 20px var(--accent-glow);
  }
  
  .btn-primary:hover {
    background: var(--accent2);
    transform: translateY(-1px);
  }
  
  .btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border2);
  }
  
  .btn-outline:hover {
    background: var(--bg2);
  }
  
  .btn-ghost {
    background: var(--bg2);
    color: var(--text2);
    border: 1px solid var(--border);
  }
  
  .btn-ghost:hover {
    color: var(--text);
    border-color: var(--border2);
  }
  
  .btn-danger {
    background: var(--red-bg);
    color: var(--red);
    border: 1px solid rgba(239, 68, 68, 0.2);
  }
  
  .btn-danger:hover {
    background: var(--red);
    color: #fff;
  }
  
  .btn-sm {
    padding: 7px 14px;
    font-size: 13px;
  }
  
  /* FORMS */
  .form-group {
    margin-bottom: 20px;
  }
  
  label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text2);
    margin-bottom: 8px;
  }
  
  input,
  select,
  textarea {
    width: 100%;
    padding: 11px 16px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    transition: all var(--transition);
    outline: none;
  }
  
  input:focus,
  select:focus,
  textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
  }
  
  input::placeholder,
  textarea::placeholder {
    color: var(--text3);
  }
  
  .input-icon {
    position: relative;
  }
  
  .input-icon input {
    padding-left: 42px;
  }
  
  .input-icon .icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text3);
    font-size: 16px;
  }
  
  .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  
  /* PROGRESS */
  .progress-bar {
    height: 6px;
    background: var(--bg3);
    border-radius: 99px;
    overflow: hidden;
    margin-top: 8px;
  }
  
  .progress-fill {
    height: 100%;
    border-radius: 99px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .progress-fill.purple {
    background: linear-gradient(90deg, var(--accent), #a78bfa);
  }
  
  .progress-fill.green {
    background: linear-gradient(90deg, var(--green), #4ade80);
  }
  
  .progress-fill.yellow {
    background: linear-gradient(90deg, var(--yellow), #fbbf24);
  }
  
  /* TRANSACTION ITEM */
  .txn-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
  }
  
  .txn-item:last-child {
    border-bottom: none;
  }
  
  .txn-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
  }
  
  .txn-icon.credit {
    background: var(--green-bg);
    color: var(--green);
  }
  
  .txn-icon.debit {
    background: var(--red-bg);
    color: var(--red);
  }
  
  .txn-icon.pending {
    background: var(--yellow-bg);
    color: var(--yellow);
  }
  
  .txn-info {
    flex: 1;
  }
  
  .txn-name {
    font-size: 14px;
    font-weight: 500;
  }
  
  .txn-date {
    font-size: 12px;
    color: var(--text3);
    margin-top: 2px;
  }
  
  .txn-amount {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 15px;
  }
  
  .txn-amount.credit {
    color: var(--green);
  }
  
  .txn-amount.debit {
    color: var(--red);
  }
  
  .txn-amount.pending {
    color: var(--yellow);
  }
  
  /* REFERRAL CARD */
  .ref-code-box {
    background: var(--bg2);
    border: 1px dashed var(--border2);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
  }
  
  .ref-code {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 3px;
    color: var(--accent2);
  }
  
  .copy-btn {
    padding: 7px 16px;
    background: var(--accent-glow);
    color: var(--accent2);
    border: 1px solid rgba(108, 99, 255, 0.3);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
  }
  
  .copy-btn:hover {
    background: var(--accent);
    color: #fff;
  }
  
  /* REFERRAL LEVEL */
  .ref-level {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg2);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    margin-bottom: 10px;
    transition: all var(--transition);
  }
  
  .ref-level:hover {
    border-color: var(--border2);
  }
  
  .ref-level-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent-glow);
    color: var(--accent2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
  }
  
  /* NOTIFICATION */
  .notif-item {
    display: flex;
    gap: 14px;
    padding: 16px;
    border-radius: var(--radius-sm);
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background var(--transition);
  }
  
  .notif-item:hover {
    background: var(--bg2);
  }
  
  .notif-item.unread {
    background: var(--accent-glow);
  }
  
  .notif-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    margin-top: 6px;
    flex-shrink: 0;
  }
  
  .notif-item:not(.unread) .notif-dot {
    background: transparent;
  }
  
  /* TABS */
  .tabs {
    display: flex;
    gap: 4px;
    background: var(--bg2);
    padding: 4px;
    border-radius: var(--radius-sm);
    width: fit-content;
    margin-bottom: 24px;
  }
  
  .tab {
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    color: var(--text2);
    transition: all var(--transition);
  }
  
  .tab.active {
    background: var(--card);
    color: var(--text);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  }
  
  /* SETTINGS */
  .settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
  }
  
  .settings-row:last-child {
    border-bottom: none;
  }
  
  .settings-info .s-title {
    font-size: 14px;
    font-weight: 500;
  }
  
  .settings-info .s-desc {
    font-size: 12px;
    color: var(--text3);
    margin-top: 2px;
  }
  
  /* TOGGLE SWITCH */
  .toggle {
    width: 44px;
    height: 24px;
    background: var(--bg3);
    border-radius: 99px;
    cursor: pointer;
    position: relative;
    transition: background var(--transition);
    flex-shrink: 0;
    border: 1px solid var(--border);
  }
  
  .toggle::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    background: var(--text3);
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: all var(--transition);
  }
  
  .toggle.on {
    background: var(--accent);
    border-color: var(--accent);
  }
  
  .toggle.on::after {
    transform: translateX(20px);
    background: #fff;
  }
  
  /* AMOUNT INPUT */
  .amount-input {
    position: relative;
  }
  
  .amount-input .currency {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 700;
    color: var(--text2);
    font-size: 14px;
  }
  
  .amount-input input {
    padding-left: 50px;
  }
  
  /* QUICK AMOUNTS */
  .quick-amounts {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
  }
  
  .qa-btn {
    padding: 6px 16px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 99px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    color: var(--text2);
    transition: all var(--transition);
  }
  
  .qa-btn:hover {
    border-color: var(--accent);
    color: var(--accent2);
    background: var(--accent-glow);
  }
  
  /* CHART BARS */
  .mini-chart {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 60px;
    margin-top: 16px;
  }
  
  .bar {
    flex: 1;
    background: var(--border);
    border-radius: 3px 3px 0 0;
    transition: background var(--transition);
  }
  
  .bar.active {
    background: var(--accent);
  }
  
  .bar:hover {
    background: var(--accent2);
  }
  
  /* SUPPORT */
  .support-category {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
  }
  
  .support-category:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
  }
  
  .support-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 12px;
  }
  
  /* OVERLAY */
  .overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 90;
    backdrop-filter: blur(2px);
  }
  
  .overlay.active {
    display: block;
  }
  
  
  /* MOBILE: slide up sheet */
  @media (max-width: 640px) {
    .topbar-right {
      display: flex;
      align-items: center;
      gap: 5px;
    }
    
    .topbar-right a,
    .topbar-right button {
      padding: 5px;
    }
    
    .txn-icon {
      width: 22px;
      height: 22px;
    }
    
    .balance-amount {
      font-weight: 600;
      font-size: 22px;
    }
  }
  
  
  /* ══════════════════════════════════════
       BOTTOM SHEET MODALS
    ══════════════════════════════════════ */
  /* ── MOBILE: slide up from bottom ── */
  .modal {
    position: fixed;
    inset: 0;
    background: var(--modal-overlay);
    display: none;
    align-items: flex-end;
    z-index: 10000;
    backdrop-filter: blur(3px);
  }
  
  .modal.show {
    display: flex;
    animation: overlayIn 0.3s ease forwards;
  }
  
  @keyframes overlayIn {
    from {
      opacity: 0;
    }
    
    to {
      opacity: 1;
    }
  }
  
  .modal-content {
    background: var(--modal-bg);
    width: 100%;
    border-radius: 22px 22px 0 0;
    padding: 10px 24px 10px 24px;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.2);
  }
  
  .modal.show .modal-content {
    transform: translateY(0);
  }
  
  /* ── DESKTOP: centered popup ── */
  @media (min-width: 769px) {
    .modal {
      align-items: center;
      justify-content: center;
      padding: 20px;
    }
    
    .modal-content {
      width: 100%;
      max-width: 440px;
      border-radius: 18px;
      padding: 28px 28px 32px;
      max-height: 90vh;
      transform: scale(0.92) translateY(0);
      transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
      opacity: 0;
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    }
    
    .modal.show .modal-content {
      transform: scale(1) translateY(0);
      opacity: 1;
    }
    
    /* hide drag handle on desktop — it's a bottom sheet thing */
    .modal-handle {
      display: none;
    }
  }
  
  .modal-handle {
    width: 40px;
    height: 4px;
    background: var(--border-color);
    border-radius: 4px;
    margin: 10px auto 18px;
  }
  
  .modal-content h2 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--modal-text);
    margin-bottom: 6px;
  }
  
  .modal-message {
    font-size: 0.88rem;
    color: var(--modal-sub);
    line-height: 1.6;
    margin-bottom: 22px;
  }
  
  .close-button {
    float: right;
    font-size: 1.3rem;
    color: var(--text-body);
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
  }
  
  .close-button:hover {
    color: var(--modal-text);
  }
  
  .modal-detail {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 0.83rem;
    color: var(--modal-sub);
    line-height: 2;
  }
  
  .modal-detail strong {
    display: block;
    color: var(--modal-text);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    margin-bottom: 1px;
  }
  
  #alert-ok-button {
    width: 100%;
    padding: 13px;
    background: var(--gold);
    color: white;
    border: none;
    border-radius: 10px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    box-shadow: 0 4px 16px rgba(46, 125, 82, 0.25);
  }
  
  #alert-ok-button:hover {
    background: var(--gold-dark);
    transform: translateY(-1px);
  }
  
  .confirm-buttons {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }
  
  .confirm-buttons button {
    width: 100%;
    padding: 13px;
    border-radius: 10px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    border: none;
    transition: background 0.2s, transform 0.15s;
  }
  
  #confirm-yes-button {
    background: var(--gold);
    color: white;
    box-shadow: 0 4px 16px rgba(46, 125, 82, 0.25);
  }
  
  #confirm-yes-button:hover {
    background: var(--gold-dark);
    transform: translateY(-1px);
  }
  
  #confirm-no-button {
    background: var(--btn-sec-bg);
    color: var(--btn-sec-text);
    border: 1px solid var(--btn-sec-border) !important;
  }
  
  #confirm-no-button:hover {
    opacity: 0.82;
  }
  
  
  
  /* ===== MOBILE BOTTOM NAV ===== */
  .mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--card);
    border-top: 1px solid var(--border);
    z-index: 200;
    padding: 0 4px env(safe-area-inset-bottom, 8px);
    width: 100%;
  }
  
  .mobile-nav-inner {
    display: flex;
    align-items: stretch;
    justify-content: center;
    width: 80%;
    margin: 0 auto;
  }
  
  .mnav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 4px 8px;
    cursor: pointer;
    border: none;
    background: transparent;
    color: var(--text3);
    transition: color var(--transition);
    position: relative;
    max-width: 68px;
    font-family: 'DM Sans', sans-serif;
  }
  
  .mnav-item .mnav-icon {
    font-size: 32px;
    line-height: 1;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .mnav-item .mnav-icon i {
    font-size: 22px;
  }
  
  .mnav-item .mnav-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.2px;
    white-space: nowrap;
  }
  
  .mnav-item.active {
    color: var(--accent2);
  }
  
  .mnav-item.active .mnav-icon {
    transform: translateY(-2px) scale(1.15);
  }
  
  .mnav-item .mnav-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    background: var(--red);
    border-radius: 50%;
    border: 2px solid var(--card);
  }
  
  /* More button opens full nav sheet */
  .nav-sheet-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(3px);
    z-index: 300;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }
  
  .nav-sheet-backdrop.open {
    opacity: 1;
    pointer-events: all;
  }
  
  .nav-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--card);
    border-radius: 24px 24px 0 0;
    z-index: 310;
    padding: 14px 20px 32px;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
    max-height: 80vh;
    overflow-y: auto;
  }
  
  .nav-sheet-backdrop.open .nav-sheet {
    transform: translateY(0);
  }
  
  .nav-sheet-handle {
    width: 40px;
    height: 4px;
    background: var(--border2);
    border-radius: 99px;
    margin: 0 auto 20px;
  }
  
  .nav-sheet-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
  
  .nav-sheet-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 8px;
    background: var(--bg2);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
    color: var(--text);
    border: 1px solid var(--border);
  }
  
  .nav-sheet-item:hover,
  .nav-sheet-item.active {
    background: var(--accent-glow);
    border-color: rgba(108, 99, 255, 0.3);
    color: var(--accent2);
  }
  
  .nav-sheet-item .ns-icon {
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .nav-sheet-item .ns-icon i {
    font-size: 22px;
  }
  
  .nav-sheet-item .ns-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text2);
  }
  
  .nav-sheet-item.active .ns-label {
    color: var(--accent2);
  }
  
  @media (max-width: 900px) {
    .mobile-nav {
      display: flex;
      flex-direction: column;
    }
    
    .main {
      padding-bottom: 70px;
    }
  }
  
  /* ===== RESPONSIVE ===== */
  @media (max-width: 1100px) {
    .grid-4 {
      grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-2-1 {
      grid-template-columns: 1fr;
    }
  }
  
  @media (max-width: 900px) {
    :root {
      --sidebar-w: 260px;
    }
    
    .sidebar {
      transform: translateX(-100%);
    }
    
    .sidebar.open {
      transform: translateX(0);
      box-shadow: 20px 0 60px rgba(0, 0, 0, 0.5);
    }
    
    .main {
      margin-left: 0;
    }
    
    .menu-btn {
      /* display: flex;*/
    }
    
    .topbar {
      padding: 0 20px;
    }
    
    .page-content {
      padding: 20px;
    }
  }
  
  @media (max-width: 600px) {
    
    .grid-4,
    .grid-3,
    .grid-2,
    .grid-2-1 {
      grid-template-columns: 1fr;
    }
    
    .form-row {
      grid-template-columns: 1fr;
    }
    
    .balance-amount {
      font-size: 28px;
    }
    
    .topbar-user .t-name {
      display: none;
    }
  }
  
  /* ===== EMPTY STATE ===== */
  .empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--text3);
    text-align: center;
  }
  
  .empty-state .e-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
  }
  
  .empty-state .e-text {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text2);
  }
  
  .empty-state .e-sub {
    font-size: 13px;
  }
  
  /* TOAST */
  .toast {
    position: fixed;
    bottom: 90px;
    right: 20px;
    background: var(--card);
    border: 1px solid var(--border2);
    border-radius: var(--radius-sm);
    padding: 13px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 500;
    z-index: 9999;
    box-shadow: var(--shadow);
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 300px;
  }
  
  @media (min-width: 901px) {
    .toast {
      bottom: 24px;
      right: 24px;
    }
  }
  
  .toast.show {
    opacity: 1;
    transform: translateY(0);
  }
  
  .toast-icon {
    font-size: 18px;
    display: flex;
    align-items: center;
  }
  
  .toast-icon i {
    font-size: 18px;
  }
  
  /* SECTION SPACING */
  .mb-4 {
    margin-bottom: 16px;
  }
  
  .mb-6 {
    margin-bottom: 24px;
  }
  
  .mb-8 {
    margin-bottom: 32px;
  }
  
  .mt-4 {
    margin-top: 16px;
  }
  
  .mt-6 {
    margin-top: 24px;
  }
  
  .flex {
    display: flex;
  }
  
  .flex-center {
    display: flex;
    align-items: center;
  }
  
  .flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .flex-gap-2 {
    gap: 8px;
  }
  
  .flex-gap-3 {
    gap: 12px;
  }
  
  .flex-wrap {
    flex-wrap: wrap;
  }
  
  .gap-2 {
    gap: 8px;
  }
  
  .text-sm {
    font-size: 13px;
    color: var(--text2);
  }
  
  .text-xs {
    font-size: 12px;
    color: var(--text3);
  }
  
  .text-accent {
    color: var(--accent2);
  }
  
  .font-bold {
    font-weight: 700;
  }
  
  .w-full {
    width: 100%;
  }
  
  .divider {
    height: 1px;
    background: var(--border);
    margin: 20px 0;
  }
  
  /* HTML: <div class="loader"></div> */
  .loader-container {
    position: fixed;
    width: 100%;
    height: 100vh;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--modal-overlay);
    backdrop-filter: blur(6px);
    
  }
  
  .loader {
    --r1: 154%;
    --r2: 68.5%;
    width: 60px;
    aspect-ratio: 1;
    border-radius: 50%;
    background:
      radial-gradient(var(--r1) var(--r2) at top, #0000 79.5%, #2E7D52 80%),
      radial-gradient(var(--r1) var(--r2) at bottom, #2E7D52 79.5%, #0000 80%),
      radial-gradient(var(--r1) var(--r2) at top, #0000 79.5%, #2E7D52 80%),
      #ccc;
    background-size: 50.5% 220%;
    background-position: -100% 0%, 0% 0%, 100% 0%;
    background-repeat: no-repeat;
    animation: l9 2s infinite alternate;
  }
  
  @keyframes l9 {
    33% {
      background-position: 0% 33%, 100% 33%, 200% 33%
    }
    
    66% {
      background-position: -100% 66%, 0% 66%, 100% 66%
    }
    
    100% {
      background-position: 0% 100%, 100% 100%, 200% 100%
    }
  }
  
  .verified-green {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #10b981;
  }
  
  .unverified-red {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
  }
  
  .bank-details .detail-row {
    display: block;
    width: 100%;
  }
  
  .bank-details .detail-row strong {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }