/* ═══════════════════════════════════════════════════════════════
   MODERN DARK GLASSMORPHISM THEME
   Comprehensive user-facing dark theme for Soft UI Dashboard
   ═══════════════════════════════════════════════════════════════ */

/* ─── BASE ─── */
body.g-sidenav-show, body.bg-gray-100 {
  background: #080b14 !important;
}
body {
  background: #080b14 !important;
  color: #e8ecf1;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  animation: animFadeUp 0.4s ease;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
.text-muted, .text-secondary { color: #8892a8; }
.text-dark { color: #e8ecf1; }
.text-primary { color: #00d6ff !important; }
.text-success { color: #22c55e !important; }
.text-danger { color: #ef4444 !important; }
.text-info { color: #06b6d4 !important; }
.text-warning { color: #f59e0b !important; }
.text-white { color: #fff; }

html { overflow-x: hidden; }
.main-content { overflow-x: hidden; min-height: 100vh; }

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: #080b14; }
::-webkit-scrollbar-thumb { background: #2a3048; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #3a405a; }

/* ─── SIDEBAR ─── */
.sidenav {
  background: #0e1120 !important;
  border: none !important;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.03), 0 8px 32px rgba(0,0,0,0.4);
  width: 220px;
}
.g-sidenav-show .sidenav .navbar-brand,
.sidenav .navbar-brand {
  padding: 0.75rem 0.85rem;
  margin: 0;
}
.sidenav .navbar-brand img { max-height: 26px; }
.sidenav .navbar-brand span { font-size: 0.85rem; color: #e8ecf1; font-weight: 600; }

.sidenav .border-bottom {
  padding: 0.6rem 0.85rem;
  border-color: rgba(255,255,255,0.05) !important;
}
.sidenav .border-bottom .avatar { width: 30px; height: 30px; font-size: 0.7rem; }
.sidenav .border-bottom p.text-sm { font-size: 0.72rem; color: #e8ecf1; }
.sidenav .border-bottom p.text-xs { font-size: 0.62rem; color: #8892a8; }

.navbar-vertical .navbar-nav .nav-link {
  padding: 0.38rem 0.7rem;
  margin: 0.06rem 0.5rem;
  border-radius: 0.35rem;
  font-size: 0.75rem;
  color: #c5c9d6;
}
.navbar-vertical .navbar-nav .nav-link .icon.icon-shape {
  width: 22px; height: 22px; min-width: 22px;
  border: none; background: transparent; box-shadow: none;
}
.navbar-vertical .navbar-nav .nav-link .icon.icon-shape i { font-size: 0.78rem; color: #a0a8b8; top: auto; position: static; }
.navbar-vertical .navbar-nav .nav-link .nav-link-text { margin-left: 0.3rem; }

.navbar-vertical .navbar-nav>.nav-item .nav-link.active { background: rgba(0,214,255,0.08); color: #e8ecf1; }
.navbar-vertical .navbar-nav>.nav-item .nav-link.active .icon.icon-shape i,
.navbar-vertical .navbar-nav .nav-link.active .icon.icon-shape i { color: #00d6ff; }
.navbar-vertical .navbar-nav .nav-link.active .nav-link-text { color: #00d6ff; font-weight: 600; }
.navbar-vertical .navbar-nav .nav-link:not(.active):hover { background: rgba(255,255,255,0.03); color: #e8ecf1; }
.navbar-vertical .navbar-nav .nav-link:not(.active):hover .icon.icon-shape i { color: #e8ecf1; }
.navbar-vertical.bg-white .navbar-nav .nav-link .icon { background: transparent !important; }
.sidenav hr.horizontal { margin: 0.3rem 0.75rem; opacity: 0.05; }

.sidenav-footer { padding: 0.5rem; }
.sidenav-footer .card { border-radius: 0.4rem; background: linear-gradient(135deg, #0e1a33, #162240); box-shadow: none; border: 1px solid rgba(0,214,255,0.15); }
.sidenav-footer .card .card-body { padding: 0.55rem 0.75rem; }
.sidenav-footer .card .card-body h6 { font-size: 0.6rem; opacity: 0.7; margin-bottom: 0; color: #fff; letter-spacing: 0.3px; text-transform: uppercase; }
.sidenav-footer .card .card-body p { font-size: 0.78rem; margin-bottom: 0; color: #fff; font-weight: 700; }

.sidenav .border-top { margin: 0.25rem 0.5rem 0; border-color: rgba(255,255,255,0.05) !important; }

/* Sidebar off-canvas mobile */
@media (max-width: 1199.98px) {
  .sidenav { width: 260px; max-width: 80vw; }
  .g-sidenav-show .sidenav { transform: translateX(-100%); z-index: 1050; }
  .g-sidenav-show.g-sidenav-pinned .sidenav { transform: translateX(0); }
  .g-sidenav-show .main-content { margin-left: 0; padding-left: 0; }
  #sidenav-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1049; }
  body.g-sidenav-pinned #sidenav-overlay { display: block; }
}

/* ─── TOP NAVBAR ─── */
.navbar.navbar-main {
  min-height: 48px;
  background: rgba(14, 17, 32, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 14px;
  margin: 0.5rem 0.75rem;
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.navbar.navbar-main .container-fluid { padding: 0.25rem 0.75rem; }
.navbar.navbar-main .breadcrumb { margin-bottom: 0; }
.navbar.navbar-main .breadcrumb-item { font-size: 0.7rem; }
.navbar.navbar-main .breadcrumb-item a { color: rgba(255,255,255,0.45); text-decoration: none; }
.navbar.navbar-main .breadcrumb-item.active { color: #00d6ff; }
.navbar.navbar-main .breadcrumb-item+.breadcrumb-item::before { color: rgba(255,255,255,0.2); }
.navbar.navbar-main h6.font-weight-bolder { font-size: 0.85rem; color: #e8ecf1; font-weight: 700; margin-top: 2px; }
.navbar.navbar-main .nav-link { font-size: 0.72rem; padding: 0.25rem 0.4rem; color: rgba(255,255,255,0.55); }
.navbar.navbar-main .nav-link:hover { color: #fff; }
.navbar.navbar-main .nav-link i { font-size: 0.82rem; }

.sidenav-toggler-inner { display: flex; flex-direction: column; gap: 3px; }
.sidenav-toggler-line { width: 16px; height: 2px; border-radius: 2px; display: block; background: rgba(255,255,255,0.5); }

/* ─── CARDS (Universal Glass) ─── */
body .card {
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  background: rgba(14, 17, 32, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}
body .card:hover {
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}
body .card .card-body { padding: 1rem; }
body .card .card-header {
  padding: 0.75rem 1rem;
  background: transparent;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
body .card .card-header h6 { font-size: 0.8rem; margin-bottom: 0; color: #e8ecf1; font-weight: 600; }

/* Balance / hero card */
body .card.bg-gradient-primary {
  background: linear-gradient(135deg, rgba(0,214,255,0.12), rgba(0,153,255,0.08)) !important;
  border: 1px solid rgba(0,214,255,0.15);
  box-shadow: 0 8px 32px rgba(0,153,255,0.1);
}
body .card.bg-gradient-primary .card-body { padding: 1.25rem; }
body .card.bg-gradient-primary h1 { font-size: 1.6rem; letter-spacing: -0.5px; color: #fff; font-weight: 800; }

/* Guest auth card */
body .card.shadow-lg { box-shadow: 0 20px 60px rgba(0,0,0,0.4) !important; }
body .card.shadow-lg.border-0 { border: 1px solid rgba(255,255,255,0.06) !important; }
body .card.shadow-lg.border-0.rounded-lg { background: rgba(14, 17, 32, 0.8); backdrop-filter: blur(20px); }
body .card.shadow-lg.border-0.rounded-lg .card-header { background: transparent; border-bottom: 1px solid rgba(255,255,255,0.04); }

/* ─── SHARED CARD COMPONENTS ─── */
/* These classes were copy-pasted in every page; now centralized */

.deposit-preview-card {
  background: rgba(14, 17, 32, 0.7);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.deposit-preview-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: #e8ecf1;
  font-size: 0.9rem;
  font-weight: 600;
}
.deposit-preview-header i { color: #00d6ff; font-size: 0.9rem; }
.deposit-preview-body { padding: 20px; }

.deposit-history-card {
  background: rgba(14, 17, 32, 0.7);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(12px);
}
.deposit-history-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: #e8ecf1;
  font-size: 0.9rem;
  font-weight: 600;
}
.deposit-history-header i { color: #00d6ff; }
.deposit-history-body { padding: 0; }

.deposit-history-table { width: 100%; border-collapse: collapse; }
.deposit-history-table th {
  padding: 12px 16px;
  text-align: left;
  color: #5a6482;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.deposit-history-table td {
  padding: 12px 16px;
  color: #b8bfce;
  font-size: 0.78rem;
  border-bottom: 1px solid rgba(255,255,255,0.02);
}
.deposit-history-table tr:last-child td { border-bottom: none; }
.deposit-history-table tr:hover td { background: rgba(255,255,255,0.015); }
.deposit-history-table td strong { color: #e8ecf1; font-size: 0.8rem; font-weight: 600; }

/* ─── METHOD CARDS ─── */
.deposit-method-card {
  background: rgba(14, 17, 32, 0.6);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 14px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.deposit-method-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0,214,255,0.3), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.deposit-method-card:hover {
  border-color: rgba(0,214,255,0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.deposit-method-card:hover::before { opacity: 1; }

.deposit-method-img { width: 48px; height: 48px; border-radius: 12px; object-fit: contain; background: rgba(255,255,255,0.03); padding: 6px; }
.deposit-method-info { flex: 1; }
.deposit-method-name { font-size: 0.85rem; font-weight: 600; color: #e8ecf1; }
.deposit-method-meta { font-size: 0.7rem; color: #5a6482; margin-top: 2px; }
.deposit-method-title { font-size: 0.85rem; font-weight: 600; color: #e8ecf1; }

/* ─── FORMS ─── */
.deposit-form-group { margin-bottom: 1rem; }
.deposit-label {
  display: block;
  color: #8892a8;
  font-size: 0.72rem;
  font-weight: 500;
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}
.deposit-input {
  width: 100%;
  background: rgba(8, 11, 20, 0.6);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 12px 14px;
  color: #e8ecf1;
  font-size: 0.85rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: all 0.3s ease;
}
.deposit-input:focus {
  border-color: #00d6ff;
  box-shadow: 0 0 0 3px rgba(0,214,255,0.08);
  background: rgba(8, 11, 20, 0.8);
}
.deposit-input::placeholder { color: #3a405a; }
.deposit-input option { background: #0e1120; color: #e8ecf1; }
.deposit-input[readonly] { opacity: 0.6; cursor: not-allowed; }

.deposit-input-group { position: relative; margin-bottom: 1rem; }
.deposit-input-group label {
  display: block;
  color: #8892a8;
  font-size: 0.72rem;
  font-weight: 500;
  margin-bottom: 6px;
}
.deposit-input-addon {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  display: flex;
  align-items: center;
  padding: 0 14px;
  background: rgba(255,255,255,0.03);
  border-left: 1px solid rgba(255,255,255,0.06);
  border-radius: 0 12px 12px 0;
  color: #5a6482;
  font-size: 0.75rem;
}

/* Preview rows */
.deposit-preview-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  font-size: 0.8rem;
}
.deposit-preview-row:last-child { border-bottom: none; }
.deposit-preview-row .label { color: #5a6482; font-weight: 500; }
.deposit-preview-row .value { color: #e8ecf1; font-weight: 600; }
.deposit-preview-row.total {
  border-bottom: none;
  padding-top: 14px;
  margin-top: 4px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.deposit-preview-row.total .value { font-size: 0.95rem; color: #00d6ff; }
.deposit-preview-divider {
  height: 1px;
  background: rgba(255,255,255,0.04);
  margin: 12px 0;
}

/* ─── BUTTONS ─── */
body .btn { font-size: 0.78rem; padding: 0.4rem 0.85rem; border-radius: 10px; font-weight: 500; transition: all 0.3s ease; }
body .btn.bg-gradient-success { background: linear-gradient(135deg, #22c55e, #16a34a) !important; border: none; color: #fff; box-shadow: 0 4px 12px rgba(34,197,94,0.2); }
body .btn.bg-gradient-danger { background: linear-gradient(135deg, #ef4444, #dc2626) !important; border: none; color: #fff; box-shadow: 0 4px 12px rgba(239,68,68,0.2); }
body .btn.bg-gradient-primary { background: linear-gradient(135deg, #00d6ff, #0099ff) !important; border: none; color: #fff; box-shadow: 0 4px 12px rgba(0,153,255,0.2); }
body .btn.bg-gradient-info { background: linear-gradient(135deg, #06b6d4, #0891b2) !important; border: none; color: #fff; box-shadow: 0 4px 12px rgba(6,182,212,0.2); }
body .btn.bg-gradient-warning { background: linear-gradient(135deg, #f59e0b, #d97706) !important; border: none; color: #fff; box-shadow: 0 4px 12px rgba(245,158,11,0.2); }
body .btn.bg-gradient-light { background: rgba(255,255,255,0.05) !important; color: #b8bfce; border: 1px solid rgba(255,255,255,0.08); }
body .btn.bg-gradient-light:hover { background: rgba(255,255,255,0.08) !important; color: #fff; }
body .btn.btn-outline-secondary { color: #8892a8; border-color: rgba(255,255,255,0.1); background: transparent; }
body .btn.btn-outline-secondary:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.15); color: #e8ecf1; }
body .btn.btn-outline-primary { color: #00d6ff; border-color: rgba(0,214,255,0.3); background: transparent; }
body .btn.btn-outline-primary:hover { background: rgba(0,214,255,0.1); border-color: #00d6ff; color: #00d6ff; }
body .btn.btn-link { color: #00d6ff; text-decoration: none; }

.deposit-method-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #00d6ff, #0099ff);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0,153,255,0.25);
}
.deposit-method-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,153,255,0.35);
  color: #fff;
}
.deposit-method-btn:active { transform: translateY(0) scale(0.98); }
.deposit-method-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

.deposit-btn-cancel {
  width: 100%;
  padding: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  color: #8892a8;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}
.deposit-btn-cancel:hover { background: rgba(255,255,255,0.06); color: #e8ecf1; }

.deposit-btn-confirm {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(34,197,94,0.2);
}
.deposit-btn-confirm:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(34,197,94,0.3); }

/* ─── STATUS BADGES ─── */
.deposit-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2px;
}
.deposit-status.approved, .deposit-status.completed { background: rgba(34,197,94,0.1); color: #22c55e; }
.deposit-status.rejected, .deposit-status.cancelled { background: rgba(239,68,68,0.1); color: #ef4444; }
.deposit-status.pending { background: rgba(245,158,11,0.1); color: #f59e0b; }
.deposit-status.processing { background: rgba(6,182,212,0.1); color: #06b6d4; }

/* ─── TABLES ─── */
body .table { margin-bottom: 0; color: #b8bfce; }
body .table thead th {
  font-size: 0.62rem;
  padding: 12px 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #5a6482;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-weight: 600;
  border-top: none;
  background: transparent;
}
body .table td {
  padding: 12px 16px;
  font-size: 0.78rem;
  border-color: rgba(255,255,255,0.03);
  color: #b8bfce;
  border-top: 1px solid rgba(255,255,255,0.03);
  vertical-align: middle;
}
body .table tbody tr { transition: background 0.2s; }
body .table tbody tr:hover td { background: rgba(255,255,255,0.015); }
body .table .fw-bold { font-weight: 600; }

.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { min-width: 0; word-break: break-word; }

/* ─── BADGES ─── */
body .badge { font-size: 0.62rem; padding: 0.25em 0.6em; border-radius: 50rem; font-weight: 500; letter-spacing: 0.2px; }
body .badge.bg-success { background: rgba(34,197,94,0.12) !important; color: #22c55e; }
body .badge.bg-warning { background: rgba(245,158,11,0.12) !important; color: #f59e0b; }
body .badge.bg-secondary { background: rgba(100,116,139,0.12) !important; color: #8892a8; }
body .badge.bg-danger { background: rgba(239,68,68,0.12) !important; color: #ef4444; }
body .badge.bg-info { background: rgba(6,182,212,0.12) !important; color: #06b6d4; }
body .badge.bg-primary { background: rgba(0,214,255,0.12) !important; color: #00d6ff; }

/* ─── FORM CONTROLS (Bootstrap override) ─── */
body .form-control,
body .form-select,
body textarea.form-control {
  background: rgba(8, 11, 20, 0.6);
  border: 1px solid rgba(255,255,255,0.06);
  color: #e8ecf1;
  border-radius: 12px;
  font-size: 0.82rem;
  padding: 0.6rem 0.85rem;
  transition: all 0.3s;
}
body .form-control:focus,
body .form-select:focus,
body textarea.form-control:focus {
  border-color: #00d6ff;
  box-shadow: 0 0 0 3px rgba(0,214,255,0.08);
  background: rgba(8, 11, 20, 0.8);
}
body .form-control::placeholder,
body textarea.form-control::placeholder { color: #3a405a; }
body .form-label { color: #8892a8; font-size: 0.78rem; font-weight: 500; margin-bottom: 6px; }
body .form-select option { background: #0e1120; color: #e8ecf1; }
body .form-text { color: #5a6482; font-size: 0.7rem; }
body .form-check-input { background-color: rgba(8, 11, 20, 0.6); border-color: rgba(255,255,255,0.15); }
body .form-check-input:checked { background-color: #00d6ff; border-color: #00d6ff; }
body .form-check-label { color: #b8bfce; font-size: 0.82rem; }
body .input-group { }
body .input-group .form-control { border-radius: 12px; }
body .input-group-text {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  color: #5a6482;
  font-size: 0.8rem;
  border-radius: 12px;
}

/* ─── DROPDOWNS ─── */
body .dropdown-menu {
  min-width: 160px;
  padding: 0.4rem;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  border-radius: 14px;
  background: rgba(14, 17, 32, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  margin-top: 8px !important;
}
body .dropdown-item {
  padding: 0.5rem 0.85rem;
  font-size: 0.78rem;
  border-radius: 8px;
  color: #b8bfce;
  transition: all 0.2s;
}
body .dropdown-item:hover { background: rgba(0,214,255,0.08); color: #00d6ff; }
body .dropdown-item.active { background: rgba(0,214,255,0.12); color: #00d6ff; }
body .dropdown-divider { border-color: rgba(255,255,255,0.05); margin: 0.3rem 0; }

/* ─── MODALS ─── */
body .modal-content {
  background: rgba(14, 17, 32, 0.95);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
body .modal-header { border-bottom: 1px solid rgba(255,255,255,0.04); padding: 1rem 1.25rem; }
body .modal-header .btn-close { filter: invert(1); opacity: 0.6; }
body .modal-header .btn-close:hover { opacity: 1; }
body .modal-title { color: #e8ecf1; font-weight: 600; font-size: 0.95rem; }
body .modal-body { padding: 1.25rem; color: #b8bfce; }
body .modal-footer { border-top: 1px solid rgba(255,255,255,0.04); padding: 1rem 1.25rem; }
body .modal-backdrop.show { background: rgba(0,0,0,0.7); backdrop-filter: blur(4px); }
body .modal { z-index: 1070; }

/* ─── ALERTS ─── */
body .alert { border-radius: 12px; font-size: 0.82rem; border: none; }
body .alert-success { background: rgba(34,197,94,0.08); color: #22c55e; border: 1px solid rgba(34,197,94,0.15); }
body .alert-danger { background: rgba(239,68,68,0.08); color: #ef4444; border: 1px solid rgba(239,68,68,0.15); }
body .alert-warning { background: rgba(245,158,11,0.08); color: #f59e0b; border: 1px solid rgba(245,158,11,0.15); }
body .alert-info { background: rgba(6,182,212,0.08); color: #06b6d4; border: 1px solid rgba(6,182,212,0.15); }

/* ─── HEADINGS ─── */
body h4.fw-bold { font-size: 0.95rem; color: #e8ecf1; font-weight: 700; }
body h5 { color: #e8ecf1; }
body h6 { color: #e8ecf1; }

/* ─── PAGINATION ─── */
body .pagination { gap: 4px; }
body .page-link {
  background: rgba(14, 17, 32, 0.6);
  border: 1px solid rgba(255,255,255,0.05);
  color: #8892a8;
  font-size: 0.75rem;
  border-radius: 8px;
  padding: 0.35rem 0.65rem;
  transition: all 0.2s;
}
body .page-link:hover {
  background: rgba(0,214,255,0.08);
  border-color: rgba(0,214,255,0.2);
  color: #00d6ff;
}
body .page-item.active .page-link {
  background: linear-gradient(135deg, #00d6ff, #0099ff);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,153,255,0.25);
}
body .page-item.disabled .page-link {
  background: rgba(255,255,255,0.02);
  color: #3a405a;
  border-color: rgba(255,255,255,0.03);
}

/* ─── LISTS ─── */
body ul.list-group { background: transparent; border: 1px solid rgba(255,255,255,0.04); border-radius: 12px; }
body .list-group-item { background: transparent; border-color: rgba(255,255,255,0.03); color: #b8bfce; font-size: 0.82rem; }

/* ─── PILL TABS ─── */
body .nav-pills .nav-link {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.04);
  color: #8892a8;
  border-radius: 10px;
  font-size: 0.78rem;
  padding: 0.5rem 1rem;
  transition: all 0.3s;
}
body .nav-pills .nav-link.active {
  background: linear-gradient(135deg, #00d6ff, #0099ff);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,153,255,0.25);
}
body .nav-pills .nav-link:hover:not(.active) {
  background: rgba(255,255,255,0.05);
  color: #b8bfce;
}

/* ─── ACCORDION ─── */
body .accordion-item { background: rgba(14, 17, 32, 0.5); border: 1px solid rgba(255,255,255,0.04); border-radius: 12px !important; margin-bottom: 8px; overflow: hidden; }
body .accordion-button { background: rgba(14, 17, 32, 0.5); color: #e8ecf1; font-size: 0.82rem; font-weight: 500; box-shadow: none; }
body .accordion-button:not(.collapsed) { background: rgba(0,214,255,0.05); color: #00d6ff; }
body .accordion-button::after { filter: invert(1); }
body .accordion-body { color: #b8bfce; font-size: 0.82rem; }

/* ─── CUSTOM MODAL ─── */
.deposit-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.2s ease;
}
.deposit-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.deposit-modal-header h5 { margin: 0; font-size: 1rem; font-weight: 600; color: #e8ecf1; }
.deposit-modal-close {
  width: 32px; height: 32px;
  border-radius: 8px;
  border: none;
  background: rgba(255,255,255,0.04);
  color: #8892a8;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.deposit-modal-close:hover { background: rgba(255,255,255,0.08); color: #e8ecf1; }
.deposit-modal-body { padding: 24px; }
.deposit-modal-footer {
  display: flex;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid rgba(255,255,255,0.04);
}

/* ─── FOOTER ─── */
body footer.footer {
  border-radius: 14px;
  padding: 0.75rem 1rem;
  margin-top: 0.5rem;
  background: rgba(14, 17, 32, 0.6);
  border: 1px solid rgba(255,255,255,0.04);
}
body footer.footer p,
body footer.footer a { font-size: 0.72rem; color: rgba(255,255,255,0.35); }

/* ─── STAT ICONS ─── */
.stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  flex-shrink: 0;
  font-size: 1rem;
}
.stat-icon i { font-size: 1rem; }
.stat-icon-amber { background: rgba(245,158,11,0.12); color: #f59e0b; }
.stat-icon-green { background: rgba(34,197,94,0.12); color: #22c55e; }
.stat-icon-blue { background: rgba(0,214,255,0.12); color: #00d6ff; }
.stat-icon-red { background: rgba(239,68,68,0.12); color: #ef4444; }
.stat-label { font-size: 0.62rem; margin-bottom: 0; }
.icon-empty { font-size: 1.2rem; }

/* ─── KYC UPLOAD ZONE ─── */
.kyc-upload-zone {
  border: 2px dashed rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 2rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  background: rgba(8, 11, 20, 0.3);
}
.kyc-upload-zone:hover {
  border-color: rgba(0,214,255,0.3);
  background: rgba(0,214,255,0.03);
}
.kyc-upload-zone.has-file {
  border-color: rgba(34,197,94,0.3);
  background: rgba(34,197,94,0.03);
}

/* ═══════════════════════════════════════════════════════════════
   AUTH PAGES
   ═══════════════════════════════════════════════════════════════ */
.auth-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 85vh;
  padding: 2rem 1rem;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: rgba(14, 17, 32, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5), 0 0 40px rgba(0,214,255,0.03);
  animation: authSlideUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.auth-card-wide { max-width: 520px; }

@keyframes authSlideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.auth-header { text-align: center; margin-bottom: 2rem; }
.auth-logo {
  margin: 0 auto 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 220px;
}
.auth-logo img {
  max-height: 64px;
  max-width: 100%;
  height: auto;
}
.auth-header h4 { color: #fff; font-size: 1.3rem; font-weight: 700; margin-bottom: 0.3rem; }
.auth-header p { color: #5a6482; font-size: 0.82rem; margin: 0; }

.auth-error {
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.15);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 1.2rem;
}
.auth-error p { color: #ef4444; font-size: 0.8rem; margin: 0; line-height: 1.5; }
.auth-success {
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.15);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 1.2rem;
}
.auth-success p { color: #22c55e; font-size: 0.8rem; margin: 0; line-height: 1.5; }
.auth-field-error { display: block; color: #ef4444; font-size: 0.72rem; margin-top: 4px; }

.auth-input-group { margin-bottom: 1.1rem; }
.auth-input-group label { display: block; color: #8892a8; font-size: 0.78rem; font-weight: 500; margin-bottom: 6px; }
.auth-input-wrapper { position: relative; }
.auth-input-wrapper i {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: #5a6482; font-size: 0.85rem; transition: color 0.3s; z-index: 1;
}
.auth-input-wrapper input {
  width: 100%;
  background: rgba(8, 11, 20, 0.6);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 13px 14px 13px 42px;
  color: #e8ecf1;
  font-size: 0.85rem;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s;
  outline: none;
}
.auth-input-wrapper input:focus {
  border-color: #00d6ff;
  box-shadow: 0 0 0 3px rgba(0,214,255,0.08);
}
.auth-input-wrapper input:focus ~ i { color: #00d6ff; }
.auth-input-wrapper input::placeholder { color: #3a405a; }
.auth-input-wrapper input[readonly] { opacity: 0.6; cursor: not-allowed; }

.auth-checkbox { display: flex; align-items: center; gap: 8px; margin: 1rem 0; }
.auth-checkbox input[type="checkbox"] { width: 16px; height: 16px; accent-color: #00d6ff; cursor: pointer; }
.auth-checkbox label { color: #8892a8; font-size: 0.78rem; cursor: pointer; margin: 0; }
.auth-checkbox a { color: #00d6ff; text-decoration: none; font-weight: 500; }
.auth-checkbox a:hover { text-decoration: underline; }

.auth-link { color: #00d6ff; font-size: 0.78rem; text-decoration: none; font-weight: 500; transition: color 0.3s; }
.auth-link:hover { color: #0099ff; text-decoration: underline; }

.auth-btn {
  width: 100%; padding: 14px;
  background: linear-gradient(135deg, #00d6ff, #0099ff);
  border: none; border-radius: 12px;
  color: #fff; font-size: 0.9rem; font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 6px 20px rgba(0,153,255,0.3);
}
.auth-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,153,255,0.4); }
.auth-btn:active { transform: translateY(0) scale(0.98); }
.auth-btn i { font-size: 0.8rem; transition: transform 0.3s; }
.auth-btn:hover i { transform: translateX(3px); }

.auth-footer { text-align: center; margin-top: 1.5rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,0.04); }
.auth-footer p { color: #5a6482; font-size: 0.82rem; margin: 0; }
.auth-footer a { color: #00d6ff; text-decoration: none; font-weight: 600; transition: color 0.3s; }
.auth-footer a:hover { color: #0099ff; }

.auth-card .g-recaptcha,
.auth-card [class*="captcha"] { margin-bottom: 1rem; }

/* ═══════════════════════════════════════════════════════════════
   GLOBAL ANIMATIONS
   ═══════════════════════════════════════════════════════════════ */

@keyframes animFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes animPopIn {
  0% { opacity: 0; transform: scale(0.85); }
  70% { transform: scale(1.02); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes animSlideRight {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes animPulseGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(0,153,255,0.1); }
  50% { box-shadow: 0 0 30px rgba(0,214,255,0.25); }
}
@keyframes animShimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes animFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes mktRowIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes emptyBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* Utility animation classes */
.anim-fade-in { animation: animFadeUp 0.6s ease both; }
.anim-slide-up { opacity: 0; animation: animFadeUp 0.6s ease both; }
.anim-pop { opacity: 0; animation: animPopIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.anim-slide-right { opacity: 0; animation: animSlideRight 0.5s ease both; }
.anim-float { animation: animFloat 3s ease-in-out infinite; }

.anim-card { opacity: 0; animation: animFadeUp 0.5s ease both; }
.anim-card:nth-child(1) { animation-delay: 0.05s; }
.anim-card:nth-child(2) { animation-delay: 0.1s; }
.anim-card:nth-child(3) { animation-delay: 0.15s; }
.anim-card:nth-child(4) { animation-delay: 0.2s; }
.anim-card:nth-child(5) { animation-delay: 0.25s; }
.anim-card:nth-child(6) { animation-delay: 0.3s; }

.anim-stagger > * { opacity: 0; animation: animPopIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.anim-stagger > *:nth-child(1) { animation-delay: 0.1s; }
.anim-stagger > *:nth-child(2) { animation-delay: 0.15s; }
.anim-stagger > *:nth-child(3) { animation-delay: 0.2s; }
.anim-stagger > *:nth-child(4) { animation-delay: 0.25s; }
.anim-stagger > *:nth-child(5) { animation-delay: 0.3s; }
.anim-stagger > *:nth-child(6) { animation-delay: 0.35s; }
.anim-stagger > *:nth-child(7) { animation-delay: 0.4s; }
.anim-stagger > *:nth-child(8) { animation-delay: 0.45s; }
.anim-stagger > *:nth-child(9) { animation-delay: 0.5s; }

.hover-lift { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.hover-lift:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.3); }

.btn-press { transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); }
.btn-press:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.2); }
.btn-press:active { transform: translateY(0) scale(0.97); }

.trx-slide { transition: all 0.2s ease; }
.trx-slide:hover { background: rgba(0,214,255,0.03); transform: translateX(3px); }

.balance-glow {
  position: relative;
  animation: animPulseGlow 3s ease-in-out infinite;
}
.balance-glow::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.04) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: animShimmer 4s ease-in-out infinite;
  border-radius: inherit;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE BOTTOM NAVIGATION
   ═══════════════════════════════════════════════════════════════ */
body .mobile-bottom-nav {
  display: block;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1060;
  background: rgba(8, 10, 20, 0.88);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-top: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 -8px 40px rgba(0,0,0,0.6), 0 -2px 10px rgba(0,214,255,0.04);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.mobile-bottom-nav .nav-row {
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  margin: 0; padding: 6px 8px 4px;
  list-style: none;
}
.mobile-bottom-nav .nav-row .nav-item { flex: 1; list-style: none; display: flex; }
.mobile-bottom-nav .nav-row .nav-item a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 4px 4px;
  color: #5a6482;
  text-decoration: none;
  border-radius: 14px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  width: 100%;
  -webkit-tap-highlight-color: transparent;
}
.mobile-bottom-nav .nav-row .nav-item a:hover { color: #8892a8; background: rgba(255,255,255,0.03); }
.mobile-bottom-nav .nav-row .nav-item a .nav-icon {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border-radius: 14px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-bottom-nav .nav-row .nav-item a .nav-icon img {
  width: 32px !important; height: 32px !important;
  object-fit: contain;
  transition: all 0.3s;
  filter: brightness(0.5) saturate(0.7);
}
.mobile-bottom-nav .nav-row .nav-item a .nav-icon i,
.mobile-bottom-nav .nav-row .nav-item a .nav-icon svg {
  font-size: 1.1rem !important; color: #5a6482 !important; transition: all 0.3s;
}
.mobile-bottom-nav .nav-row .nav-item a span:last-child {
  font-size: 0.68rem; font-weight: 500; color: #5a6482;
  transition: all 0.3s; letter-spacing: 0.2px;
}

/* Active */
.mobile-bottom-nav .nav-row .nav-item a.active { color: #00d6ff; }
.mobile-bottom-nav .nav-row .nav-item a.active .nav-icon {
  background: rgba(0, 214, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 214, 255, 0.15);
}
.mobile-bottom-nav .nav-row .nav-item a.active .nav-icon img {
  width: 34px !important; height: 34px !important;
  filter: brightness(1) saturate(1.3);
}
.mobile-bottom-nav .nav-row .nav-item a.active .nav-icon i { color: #00d6ff !important; transform: scale(1.1); }
.mobile-bottom-nav .nav-row .nav-item a.active span:last-child { color: #00d6ff; font-weight: 700; }
.mobile-bottom-nav .nav-row .nav-item a.active::after {
  content: '';
  position: absolute; bottom: -2px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px;
  background: #00d6ff;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(0, 214, 255, 0.6);
}
.mobile-bottom-nav .nav-row .nav-item a:active { transform: scale(0.92); }

body .main-content { padding-bottom: 72px; padding-top: 4px; }

@media (min-width: 768px) {
  body .mobile-bottom-nav {
    max-width: 480px; left: 50%; transform: translateX(-50%);
    border-radius: 18px 18px 0 0;
    border: 1px solid rgba(255,255,255,0.05);
    border-bottom: none;
  }
  body .main-content { padding-bottom: 80px; }
  .mobile-bottom-nav .nav-row { padding: 8px 16px 6px; }
  .mobile-bottom-nav .nav-row .nav-item a .nav-icon { width: 46px; height: 46px; }
}
@media (min-width: 1200px) {
  body .mobile-bottom-nav {
    max-width: 540px;
    border-radius: 20px 20px 0 0;
    background: rgba(8, 10, 20, 0.94);
  }
  .mobile-bottom-nav .nav-row .nav-item a .nav-icon img { width: 34px !important; height: 34px !important; }
}
@media (max-width: 374.98px) {
  .mobile-bottom-nav .nav-row { padding: 4px 4px 2px; gap: 2px; }
  .mobile-bottom-nav .nav-row .nav-item a .nav-icon { width: 34px; height: 34px; border-radius: 10px; }
  .mobile-bottom-nav .nav-row .nav-item a .nav-icon img { width: 24px !important; height: 24px !important; }
  .mobile-bottom-nav .nav-row .nav-item a span:last-child { font-size: 0.5rem; }
  body .main-content { padding-bottom: 60px; }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — Mobile card/table overrides
   ═══════════════════════════════════════════════════════════════ */
.container-fluid {
  max-width: 100% !important;
  padding-left: 1rem !important;
  padding-right: 1rem !important;
  overflow-x: hidden;
}

@media (max-width: 575.98px) {
  body .navbar.navbar-main { margin: 0.35rem; border-radius: 12px; }
  body .navbar.navbar-main .breadcrumb { display: none; }
  body .card.bg-gradient-primary h1 { font-size: 1.2rem; }
  body .card.bg-gradient-primary .card-body { padding: 0.85rem; }

  /* Mobile card table transform */
  body .card .table thead { display: none; }
  body .card .table tbody tr {
    display: block;
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 8px;
    background: rgba(14, 17, 32, 0.5);
  }
  body .card .table tbody tr td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border: none;
    font-size: 0.75rem;
  }
  body .card .table tbody tr td::before {
    content: attr(data-label);
    font-weight: 600;
    font-size: 0.62rem;
    color: #5a6482;
    text-transform: uppercase;
    letter-spacing: 0.3px;
  }
  body footer.footer { margin: 0.35rem; border-radius: 12px; }

  .deposit-preview-body { padding: 16px; }
  .deposit-history-table th,
  .deposit-history-table td { padding: 10px 14px; }
  .auth-card { padding: 2rem 1.5rem; border-radius: 20px; }
}

@media (min-width: 576px) and (max-width: 991.98px) {
  body .navbar.navbar-main { margin: 0.5rem; }
}
