/* ============================================================
   SURE VERIFY DASHBOARD — Ultra-Premium Fintech Theme
   Stripe · Revolut · Moniepoint Inspired
   Theme-aware with Light/Dark Mode support
   ============================================================ */

/* ===========================
   CSS CUSTOM PROPERTIES (Theme variables loaded from theme.css)
   =========================== */
:root {
  /* Radii */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 20px;
  --r-xl: 24px;
  --r-full: 9999px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration: 0.3s;
}


/* ===========================
   RESET & BASE
   =========================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: var(--bg-page);
  color: var(--text-primary);
  padding-top: 68px;
  padding-bottom: 88px;
  min-height: 100dvh;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Ambient Background Glow */
body::before {
  content: '';
  position: fixed;
  top: -25%;
  right: -15%;
  width: 55%;
  height: 55%;
  background: radial-gradient(ellipse at center, var(--accent-glow) 0%, var(--accent-subtle) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: ambientPulse 8s ease-in-out infinite alternate;
}

body::after {
  content: '';
  position: fixed;
  bottom: -20%;
  left: -10%;
  width: 45%;
  height: 45%;
  background: radial-gradient(ellipse at center, var(--accent-subtle) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

@keyframes ambientPulse {
  0% { opacity: 0.7; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.08); }
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}


/* ===========================
   LAYOUT CONTAINER
   =========================== */
.container {
  padding: 20px 18px;
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
}


/* ===========================
   HEADER BAR — Glassmorphism
   =========================== */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: var(--bg-header);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 100;
  border-bottom: 1px solid var(--border);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
}

.header-right i {
  font-size: 18px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color var(--duration) var(--ease);
}

.header-right i:hover {
  color: var(--accent);
}

.chat-notification-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: 0 0 0 2px var(--bg-header);
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0F5132, var(--accent));
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  box-shadow: 0 0 0 2px var(--accent-dim), var(--shadow-glow);
  transition: transform var(--duration) var(--ease);
}

.avatar:hover {
  transform: scale(1.06);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-brand i {
  font-size: 20px;
  color: var(--accent);
}

.header-brand-text {
  color: var(--text-primary);
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}


/* ===========================
   MENU BUTTON
   =========================== */
.menu-btn {
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  color: var(--accent);
  padding: 9px 12px;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.menu-btn:hover {
  background: rgba(22, 199, 90, 0.18);
  border-color: rgba(22, 199, 90, 0.3);
}

.menu-btn:active {
  transform: scale(0.94);
}


/* ===========================
   SIDEBAR
   =========================== */
.sidebar {
  position: fixed;
  top: 0;
  left: -300px;
  width: 280px;
  height: 100%;
  background: var(--bg-sidebar);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  padding: 22px;
  overflow-y: auto;
  transition: left 0.35s var(--ease);
  z-index: 2000;
  border-right: 1px solid var(--border);
  scrollbar-width: none;
}

.sidebar::-webkit-scrollbar { display: none; }

.sidebar.show { left: 0; }

.sidebar h2 {
  margin-top: 14px;
  margin-bottom: 4px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, var(--accent), #4ADE80);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sidebar h4 {
  margin: 24px 0 10px;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
}

.sidebar a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: var(--r-sm);
  margin-bottom: 2px;
  transition: all var(--duration) var(--ease);
  font-size: 14px;
  color: var(--text-secondary);
}

.sidebar a:hover {
  background: var(--accent-subtle);
  color: var(--text-primary);
}

.sidebar a i {
  width: 20px;
  text-align: center;
  font-size: 15px;
  color: var(--text-muted);
  transition: color var(--duration) var(--ease);
}

.sidebar a:hover i {
  color: var(--accent);
}

.sidebar hr {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 16px 0;
}


/* ===========================
   WELCOME MESSAGE
   =========================== */
.welcome-msg {
  font-size: 20px;
  font-weight: 600;
  margin: 8px 0 16px;
  letter-spacing: -0.2px;
  line-height: 1.3;
  white-space: nowrap;
}

.welcome-msg span {
  display: inline;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.3px;
  background: linear-gradient(135deg, var(--text-primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
}


/* ===========================
   HERO WALLET CARD — Premium Fintech
   =========================== */
.wallet-card {
  background: var(--grad-wallet);
  border-radius: 26px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(34, 197, 94, 0.2);
  box-shadow: var(--shadow-wallet);
  animation: walletCardEntry 0.5s var(--ease) both;
}

@keyframes walletCardEntry {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.wallet-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 15%, rgba(255,255,255,0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 85%, rgba(255,255,255,0.04) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
}

.wallet-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.04), transparent);
  pointer-events: none;
  z-index: 0;
  animation: walletShimmer 7s ease-in-out infinite;
}

@keyframes walletShimmer {
  0%, 100% { left: -120%; }
  50% { left: 130%; }
}

.wallet-card-inner {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 3;
  padding: 22px 24px;
  gap: 16px;
}

.wallet-card-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.wallet-card-visual {
  width: 38%;
  min-width: 90px;
  max-width: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  align-self: center;
  flex-shrink: 0;
}

.wallet-glow-orb {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(74, 222, 128, 0.22) 0%, rgba(34, 197, 94, 0.08) 45%, transparent 70%);
  border-radius: 50%;
  animation: glowPulse 4s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes glowPulse {
  0% { transform: translate(-50%, -50%) scale(0.88); opacity: 0.55; }
  100% { transform: translate(-50%, -50%) scale(1.12); opacity: 1; }
}

.wallet-3d-illustration {
  width: 100%;
  height: auto;
  aspect-ratio: 220/200;
  position: relative;
  z-index: 1;
  animation: floatWallet 5s ease-in-out infinite;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.35)) drop-shadow(0 0 24px rgba(34, 197, 94, 0.15));
}

.wallet-3d-illustration svg {
  width: 100%;
  height: 100%;
}

@keyframes floatWallet {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50% { transform: translateY(-6px) rotate(0.8deg); }
}

/* Wave layer */
.wallet-wave-layer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 45px;
  z-index: 1;
  pointer-events: none;
}

.wallet-wave-layer svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Watermark layer */
.wallet-watermark-layer {
  position: absolute;
  top: 50%;
  left: 20%;
  transform: translateY(-50%);
  width: 120px;
  height: 140px;
  z-index: 1;
  pointer-events: none;
}

.wallet-watermark-svg {
  width: 100%;
  height: 100%;
}

/* Top row: label + eye button */
.wallet-top-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.wallet-label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
}

.wallet-eye-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  font-size: 11px;
  flex-shrink: 0;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  vertical-align: middle;
}

.wallet-eye-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  transform: scale(1.08);
}

.wallet-eye-btn:active {
  transform: scale(0.94);
}

/* Balance */
.wallet-balance-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 16px;
}

.wallet-currency {
  font-family: 'Inter', sans-serif;
  font-size: 42px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1;
}

.wallet-balance {
  font-family: 'Inter', sans-serif;
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -2px;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  line-height: 1;
  transition: opacity 0.3s var(--ease);
}

.wallet-balance-hidden {
  font-family: 'Inter', sans-serif;
  font-size: 42px;
  font-weight: 800;
  letter-spacing: 6px;
  color: rgba(255, 255, 255, 0.25);
  text-shadow: none;
  line-height: 1;
  display: none;
}

.wallet-balance-hidden.visible {
  display: inline;
}

.wallet-balance.hidden {
  display: none;
}

/* Diagonal watermark line */
.wallet-diagonal-line {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.wallet-diagonal-line svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Meta row removed */

/* Action Buttons */
.wallet-actions {
  display: flex;
  gap: 10px;
}

.wallet-btn {
  padding: 10px 18px;
  border: none;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  letter-spacing: 0.2px;
  position: relative;
  overflow: hidden;
  width: fit-content;
}

.wallet-btn i {
  font-size: 10px;
  transition: transform 0.25s var(--ease);
}

.wallet-btn:hover {
  transform: translateY(-2px);
}

.wallet-btn:hover i {
  transform: rotate(90deg);
}

.wallet-btn:active {
  transform: translateY(0) scale(0.97);
}

.btn-fund {
  background: #fff;
  color: #0B3D2E;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.12);
}

.btn-fund:hover {
  background: #f0fdf4;
  box-shadow: 0 6px 28px rgba(255, 255, 255, 0.2);
}

.account-badge {
  display: none !important;
}


/* ===========================
   SECTION TITLES
   =========================== */
.section-title {
  font-size: 24px;
  font-weight: 600;
  margin: 24px 0 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.section-title i {
  color: var(--accent);
  font-size: 18px;
}


/* ===========================
   SERVICES GRID
   =========================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

.service-card {
  background: var(--bg-primary-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 20px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 120px;
  position: relative;
  transition: all var(--duration) var(--ease);
  overflow: hidden;
  cursor: pointer;
}

/* Soft top light on hover */
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(22, 199, 90, 0.06) 0%, transparent 55%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.service-card.active {
  cursor: pointer;
}

.service-card.active:hover {
  transform: translateY(-5px);
  border-color: var(--border-accent);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3), var(--shadow-glow);
}

.service-card.active:hover::before {
  opacity: 1;
}

.service-card.active:active {
  transform: translateY(-2px) scale(0.98);
}

.service-card.disabled {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}

.service-status.unavailable {
  margin-top: 8px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
  padding: 2px 8px;
  border-radius: 6px;
  display: inline-block;
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 12px;
  color: #fff;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transition: transform var(--duration) var(--ease);
}

.service-card.active:hover .service-icon {
  transform: scale(1.08);
}

.service-label {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-secondary);
  position: relative;
  z-index: 1;
}

.badge-active {
  position: absolute;
  top: 8px;
  right: 8px;
  background: linear-gradient(135deg, #7C3AED, #6D28D9);
  color: #fff;
  padding: 3px 8px;
  font-size: 9px;
  border-radius: var(--r-xs);
  font-weight: 700;
  z-index: 2;
  letter-spacing: 0.4px;
}

.bg-purple { background: linear-gradient(135deg, #7C3AED, #6366F1); }
.bg-teal { background: linear-gradient(135deg, #0D9488, #14B8A6); }
.bg-indigo { background: linear-gradient(135deg, #4F46E5, #6366F1); }
.bg-red { background: linear-gradient(135deg, #DC2626, #EF4444); }
.bg-orange { background: linear-gradient(135deg, #EA580C, #F97316); }
.bg-green { background: linear-gradient(135deg, #059669, #10B981); }
.bg-blue { background: linear-gradient(135deg, #2563EB, #3B82F6); }
.bg-yellow { background: linear-gradient(135deg, #CA8A04, #EAB308); }
.bg-cyan { background: linear-gradient(135deg, #0891B2, #06B6D4); }
.bg-rose { background: linear-gradient(135deg, #BE123C, #F43F5E); }
.bg-amber { background: linear-gradient(135deg, #B45309, #F59E0B); }
.bg-emerald { background: linear-gradient(135deg, #047857, #34D399); }
.bg-violet { background: linear-gradient(135deg, #6D28D9, #8B5CF6); }
.bg-sky { background: linear-gradient(135deg, #0369A1, #38BDF8); }
.bg-lime { background: linear-gradient(135deg, #65A30D, #A3E635); }


/* ===========================
   STATISTICS ROW
   =========================== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 24px 0;
}

.stat-box {
  background: var(--bg-primary-card);
  border-radius: var(--r-md);
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--border);
  transition: all var(--duration) var(--ease);
  overflow: hidden;
}

.stat-box:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-card);
}

.stat-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: var(--r-sm);
  background: var(--accent-dim);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  color: var(--accent);
}

.stat-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.stat-val {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.stat-lbl {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 3px;
  white-space: nowrap;
  letter-spacing: 0.3px;
}


/* ===========================
   TRANSACTION CARD
   =========================== */
.transaction-card {
  background: var(--bg-primary-card);
  border-radius: var(--r-md);
  padding: 18px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
  line-height: 1.7;
  transition: border-color var(--duration) var(--ease);
}

.transaction-card:hover {
  border-color: var(--border-accent);
}

.transaction-card strong {
  font-size: 15px;
}


/* ===========================
   PROMOTION BANNER
   =========================== */
.promo-banner {
  background: var(--bg-primary-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
  padding: 24px 22px;
  margin: 32px 0;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
}

.promo-content {
  margin-bottom: 16px;
}

.promo-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--accent-dim);
  color: var(--accent);
  padding: 6px 14px;
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 16px;
  border: 1px solid rgba(22, 199, 90, 0.15);
  letter-spacing: 0.3px;
}

.promo-tag i {
  font-size: 12px;
}

.promo-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.2px;
}

.promo-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 18px;
}

.promo-actions {
  display: flex;
  gap: 12px;
}

.promo-btn {
  flex: 1;
  padding: 14px;
  border: none;
  border-radius: var(--r-sm);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  letter-spacing: 0.1px;
}

.promo-btn:hover {
  transform: translateY(-2px);
}

.promo-btn:active {
  transform: translateY(0) scale(0.97);
}

.btn-green {
  background: var(--grad-button, linear-gradient(135deg, var(--accent), #12964A));
  color: #fff;
  box-shadow: 0 4px 20px rgba(22, 199, 90, 0.25);
}

.btn-green:hover {
  box-shadow: 0 8px 30px rgba(22, 199, 90, 0.35);
}

.btn-blue {
  background: linear-gradient(135deg, var(--blue), #2563EB);
  color: #fff;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.2);
}

.btn-blue:hover {
  box-shadow: 0 8px 28px rgba(59, 130, 246, 0.3);
}


/* ===========================
   FLOATING BOTTOM NAV — Glassmorphism Dock
   =========================== */
.bottom-nav {
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 420px;
  height: 64px;
  background: var(--bg-header);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  display: flex;
  justify-content: space-around;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  z-index: 999;
  box-shadow: var(--shadow-elevated);
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  color: var(--text-muted);
  transition: all var(--duration) var(--ease);
  padding: 8px 14px;
  border-radius: var(--r-sm);
  position: relative;
  letter-spacing: 0.2px;
}

.bottom-nav a i {
  font-size: 19px;
  transition: all var(--duration) var(--ease);
}

/* Active State — Green Pill Container */
.bottom-nav a.active {
  color: var(--accent);
  background: rgba(22, 199, 90, 0.12);
}

.bottom-nav a.active i {
  color: var(--accent);
  filter: drop-shadow(0 0 6px rgba(22, 199, 90, 0.4));
}

.bottom-nav a:hover:not(.active) {
  color: var(--text-secondary);
}

.bottom-nav a:hover:not(.active) i {
  color: var(--text-secondary);
}


/* ===========================
   SCROLLBAR
   =========================== */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--scrollbar-track, transparent); }
::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb, rgba(22, 199, 90, 0.2)); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-dim); }


/* ===========================
   TEXT SELECTION
   =========================== */
::selection {
  background: var(--selection-bg, rgba(22, 199, 90, 0.3));
  color: var(--selection-text, #fff);
}


/* ===========================
   ENTRANCE ANIMATIONS
   =========================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.wallet-card { animation: walletCardEntry 0.6s var(--ease) both; }
.services-grid { animation: fadeInUp 0.5s var(--ease) 0.08s both; }
.stats-row { animation: fadeInUp 0.5s var(--ease) 0.16s both; }
.promo-banner { animation: fadeInUp 0.5s var(--ease) 0.24s both; }
.section-title { animation: fadeIn 0.4s var(--ease) 0.05s both; }
.welcome-msg { animation: fadeIn 0.4s var(--ease) both; }


/* ============================================================
   WATERMARK WAVY LINES — Background Pattern (Static)
   ============================================================ */
.watermark-waves {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  opacity: var(--wave-opacity, 0.4);
}

.watermark-svg {
  width: 100%;
  height: 100%;
  display: block;
  will-change: auto;
}

/* ============================================================
   TOOLS FOLDER CARD
   ============================================================ */
.folder-card {
  position: relative;
  border-style: dashed !important;
  border-width: 2px !important;
}

.folder-card .service-icon {
  background: linear-gradient(135deg, #475569, #64748b) !important;
}

.folder-lock {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.4);
  color: #fbbf24;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  z-index: 2;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.folder-card:hover .folder-lock {
  background: rgba(251, 191, 36, 0.2);
  color: #f59e0b;
}

.bg-slate {
  background: linear-gradient(135deg, #475569, #64748b);
}

/* ============================================================
   TOOLS SUB-PANEL
   ============================================================ */
.tools-panel {
  background: var(--bg-primary-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--r-md);
  padding: 18px;
  margin-bottom: 24px;
  animation: fadeInUp 0.4s var(--ease) both;
}

.tools-unlocked-badge {
  font-size: 10px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 4px 10px;
  border-radius: var(--r-full);
  margin-left: auto;
  border: 1px solid var(--border-accent);
  letter-spacing: 0.3px;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.tools-sub-card {
  background: var(--bg-secondary-card);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 20px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100px;
  transition: all var(--duration) var(--ease);
  cursor: pointer;
}

.tools-sub-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-accent);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25), var(--shadow-glow);
}

.tools-sub-card:active {
  transform: translateY(-1px) scale(0.98);
}

.tools-sub-card .service-icon {
  width: 46px;
  height: 46px;
  font-size: 20px;
  border-radius: 14px;
  margin-bottom: 10px;
}

.tools-sub-card .service-label {
  font-size: 12px;
  font-weight: 600;
}

/* ============================================================
   TOOLS PASSWORD MODAL
   ============================================================ */
.tools-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease both;
}

.tools-modal {
  background: var(--bg-primary-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  width: 100%;
  max-width: 380px;
  padding: 32px 28px;
  position: relative;
  animation: fadeInUp 0.3s var(--ease) both;
  box-shadow: var(--shadow-elevated);
}

.tools-modal-header {
  text-align: center;
  margin-bottom: 24px;
}

.tools-modal-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  margin: 0 auto 14px;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.3);
}

.tools-modal-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.tools-modal-header p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

.tools-password-input {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  color: var(--text-primary);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.25s var(--ease);
  box-sizing: border-box;
}

.tools-password-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.tools-password-input::placeholder {
  color: var(--text-muted);
}

.tools-password-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #ef4444;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 500;
  margin-top: 10px;
  animation: shake 0.4s ease;
}

.tools-verify-btn {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: #fff;
  border: none;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  margin-top: 16px;
  transition: all 0.25s var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.tools-verify-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35);
}

.tools-verify-btn:active {
  transform: translateY(0) scale(0.98);
}

.tools-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--bg-secondary-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.25s var(--ease);
}

.tools-modal-close:hover {
  background: var(--accent-dim);
  color: var(--text-primary);
  border-color: var(--border-accent);
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}


/* ============================================================
   RESPONSIVE — Mobile (max-width: 480px)
   ============================================================ */
@media (max-width: 480px) {

  .container {
    padding: 16px 14px;
  }

  .welcome-msg {
    font-size: 18px;
    margin: 6px 0 14px;
  }

  .welcome-msg span {
    font-size: 18px;
  }

  .wallet-card {
    border-radius: 22px;
    margin-bottom: 20px;
  }

  .wallet-card-inner {
    padding: 18px 18px;
    gap: 12px;
  }

  .wallet-card-visual {
    width: 36%;
    min-width: 76px;
  }

  .wallet-watermark-layer {
    left: 16%;
    width: 80px;
    height: 96px;
  }

  .wallet-balance {
    font-size: 34px;
    letter-spacing: -1.5px;
  }

  .wallet-balance-hidden {
    font-size: 34px;
    letter-spacing: 5px;
  }

  .wallet-currency {
    font-size: 34px;
  }

  .wallet-label {
    font-size: 10px;
    letter-spacing: 1.2px;
  }

  .wallet-eye-btn {
    width: 20px;
    height: 20px;
    font-size: 10px;
  }

  .wallet-btn {
    padding: 9px 14px;
    font-size: 11px;
    border-radius: 10px;
    gap: 6px;
  }

  .wallet-wave-layer {
    height: 35px;
  }

  .section-title {
    font-size: 20px;
    margin: 20px 0 14px;
  }

  .services-grid {
    gap: 10px;
  }

  .service-card {
    min-height: 110px;
    padding: 16px 8px;
    border-radius: 14px;
  }

  .service-icon {
    width: 46px;
    height: 46px;
    font-size: 20px;
    border-radius: 14px;
    margin-bottom: 10px;
  }

  .service-label {
    font-size: 11px;
  }

  .stats-row {
    gap: 10px;
    margin: 20px 0;
  }

  .stat-box {
    padding: 14px 12px;
    gap: 12px;
    border-radius: 14px;
  }

  .stat-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    font-size: 16px;
    border-radius: var(--r-sm);
  }

  .stat-val {
    font-size: 18px;
  }

  .stat-lbl {
    font-size: 12px;
  }

  .promo-banner {
    padding: 20px 18px;
    margin: 28px 0;
  }

  .promo-title {
    font-size: 18px;
  }

  .promo-desc {
    font-size: 14px;
  }

  .promo-btn {
    padding: 12px;
    font-size: 13px;
  }

  .bottom-nav {
    width: calc(100% - 24px);
    height: 60px;
    bottom: 10px;
    border-radius: var(--r-lg);
  }

  .bottom-nav a {
    font-size: 9px;
    padding: 6px 12px;
  }

  .bottom-nav a i {
    font-size: 17px;
  }

  .tools-grid {
    gap: 10px;
  }

  .tools-sub-card {
    min-height: 90px;
    padding: 16px 8px;
  }

  .tools-sub-card .service-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
    border-radius: 12px;
    margin-bottom: 8px;
  }

  .tools-sub-card .service-label {
    font-size: 11px;
  }

  .tools-modal {
    padding: 24px 20px;
  }
}


/* ============================================================
   RESPONSIVE — Very Small (max-width: 360px)
   ============================================================ */
@media (max-width: 360px) {

  body {
    padding-top: 62px;
    padding-bottom: 82px;
  }

  .welcome-msg {
    font-size: 16px;
  }

  .welcome-msg span {
    font-size: 16px;
  }

  .wallet-card {
    border-radius: 18px;
  }

  .wallet-card-inner {
    padding: 14px 14px;
    gap: 10px;
  }

  .wallet-card-visual {
    width: 34%;
    min-width: 64px;
  }

  .wallet-watermark-layer {
    left: 14%;
    width: 64px;
    height: 78px;
  }

  .wallet-balance {
    font-size: 28px;
    letter-spacing: -1px;
  }

  .wallet-balance-hidden {
    font-size: 28px;
    letter-spacing: 4px;
  }

  .wallet-currency {
    font-size: 28px;
  }

  .wallet-label {
    font-size: 9px;
    letter-spacing: 1px;
  }

  .wallet-eye-btn {
    width: 18px;
    height: 18px;
    font-size: 9px;
  }

  .wallet-btn {
    padding: 8px 12px;
    font-size: 10px;
    border-radius: 9px;
    gap: 5px;
  }

  .wallet-wave-layer {
    height: 28px;
  }

  .services-grid {
    gap: 8px;
  }

  .service-card {
    min-height: 96px;
    padding: 14px 6px;
    border-radius: 12px;
  }

  .service-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
    border-radius: 12px;
    margin-bottom: 8px;
  }

  .service-label {
    font-size: 10px;
  }

  .stats-row {
    gap: 8px;
  }

  .stat-box {
    padding: 12px 10px;
    gap: 10px;
  }

  .stat-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    font-size: 14px;
    border-radius: 10px;
  }

  .stat-val {
    font-size: 16px;
  }

  .stat-lbl {
    font-size: 11px;
  }

  .section-title {
    font-size: 18px;
  }

  .promo-title {
    font-size: 16px;
  }

  .promo-desc {
    font-size: 13px;
  }

  .bottom-nav {
    width: calc(100% - 20px);
    height: 56px;
    bottom: 8px;
    gap: 4px;
  }

  .bottom-nav a {
    padding: 5px 8px;
  }

  .header-brand-text {
    font-size: 13px;
    letter-spacing: 0.3px;
  }

  .header-brand i {
    font-size: 17px;
  }
}


/* ============================================================
   RESPONSIVE — Tablet (min-width: 768px)
   ============================================================ */
@media (min-width: 768px) {

  body {
    padding-top: 72px;
    padding-bottom: 32px;
  }

  .container {
    padding: 28px 32px;
    max-width: 860px;
  }

  .welcome-msg {
    font-size: 24px;
  }

  .welcome-msg span {
    font-size: 24px;
  }

  .wallet-card {
    border-radius: 28px;
  }

  .wallet-card-inner {
    padding: 28px 32px;
    gap: 28px;
  }

  .wallet-card-visual {
    width: 38%;
    min-width: 130px;
    max-width: 180px;
  }

  .wallet-watermark-layer {
    left: 20%;
    width: 130px;
    height: 156px;
  }

  .wallet-balance {
    font-size: 48px;
    letter-spacing: -2.5px;
  }

  .wallet-balance-hidden {
    font-size: 48px;
    letter-spacing: 7px;
  }

  .wallet-currency {
    font-size: 48px;
  }

  .wallet-label {
    font-size: 12px;
    letter-spacing: 1.6px;
  }

  .wallet-eye-btn {
    width: 26px;
    height: 26px;
    font-size: 12px;
  }

  .wallet-btn {
    padding: 12px 24px;
    font-size: 13px;
    border-radius: 14px;
  }

  .wallet-wave-layer {
    height: 50px;
  }

  .section-title {
    font-size: 24px;
    margin: 28px 0 20px;
  }

  .services-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }

  .service-card {
    min-height: 140px;
    padding: 24px 14px;
    border-radius: var(--r-lg);
  }

  .service-icon {
    width: 56px;
    height: 56px;
    font-size: 24px;
    border-radius: 16px;
  }

  .service-label {
    font-size: 13px;
  }

  .stats-row {
    gap: 16px;
  }

  .stat-box {
    padding: 22px;
    border-radius: var(--r-lg);
  }

  .stat-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    font-size: 22px;
    border-radius: var(--r-md);
  }

  .stat-val {
    font-size: 26px;
  }

  .stat-lbl {
    font-size: 14px;
  }

  .promo-banner {
    padding: 28px;
    margin: 32px 0;
    border-radius: var(--r-xl);
  }

  .promo-title {
    font-size: 20px;
  }

  .promo-desc {
    font-size: 15px;
  }

  .bottom-nav {
    display: none;
  }

  .header {
    padding: 16px 28px;
  }

  .header-brand-text {
    font-size: 17px;
  }

  .tools-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }

  .tools-sub-card {
    min-height: 120px;
    padding: 20px 12px;
  }
}


/* ============================================================
   RESPONSIVE — Desktop (min-width: 1024px)
   ============================================================ */
@media (min-width: 1024px) {

  body {
    padding-top: 76px;
    padding-bottom: 40px;
  }

  .container {
    padding: 32px 40px;
    max-width: 1200px;
  }

  .welcome-msg {
    font-size: 28px;
    margin: 12px 0 20px;
  }

  .welcome-msg span {
    font-size: 28px;
  }

  /* Premium Wallet Card — Full Width Hero */
  .wallet-card {
    border-radius: 32px;
    margin-bottom: 32px;
  }

  .wallet-card-inner {
    padding: 36px 40px;
    gap: 40px;
  }

  .wallet-card-visual {
    width: 32%;
    min-width: 160px;
    max-width: 220px;
  }

  .wallet-watermark-layer {
    left: 18%;
    width: 160px;
    height: 192px;
  }

  .wallet-balance {
    font-size: 56px;
    letter-spacing: -3px;
  }

  .wallet-balance-hidden {
    font-size: 56px;
    letter-spacing: 8px;
  }

  .wallet-currency {
    font-size: 56px;
  }

  .wallet-label {
    font-size: 13px;
    letter-spacing: 2px;
  }

  .wallet-eye-btn {
    width: 28px;
    height: 28px;
    font-size: 13px;
  }

  .wallet-btn {
    padding: 14px 28px;
    font-size: 14px;
    border-radius: 16px;
  }

  .wallet-wave-layer {
    height: 60px;
  }

  /* Section Titles */
  .section-title {
    font-size: 28px;
    margin: 36px 0 24px;
  }

  .section-title i {
    font-size: 22px;
  }

  /* Premium Services Grid */
  .services-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
    margin-bottom: 36px;
  }

  .service-card {
    min-height: 150px;
    padding: 28px 16px;
    border-radius: var(--r-xl);
    transition: all 0.4s var(--ease);
  }

  .service-card.active:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), var(--shadow-glow);
  }

  .service-icon {
    width: 64px;
    height: 64px;
    font-size: 28px;
    border-radius: 20px;
    margin-bottom: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  }

  .service-label {
    font-size: 14px;
    font-weight: 600;
  }

  /* Premium Stats Row */
  .stats-row {
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin: 32px 0;
  }

  .stat-box {
    padding: 24px;
    border-radius: var(--r-xl);
    transition: all 0.4s var(--ease);
  }

  .stat-box:hover {
    transform: translateY(-4px);
  }

  .stat-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    font-size: 24px;
    border-radius: var(--r-lg);
  }

  .stat-val {
    font-size: 28px;
    font-weight: 800;
  }

  .stat-lbl {
    font-size: 15px;
  }

  /* Premium Promo Banner */
  .promo-banner {
    padding: 36px 40px;
    margin: 40px 0;
    border-radius: var(--r-xl);
    display: flex;
    align-items: center;
    gap: 40px;
  }

  .promo-content {
    flex: 1;
  }

  .promo-tag {
    font-size: 13px;
    padding: 8px 18px;
    margin-bottom: 18px;
  }

  .promo-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 12px;
  }

  .promo-desc {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 0;
  }

  .promo-actions {
    flex-shrink: 0;
    flex-direction: column;
    min-width: 200px;
  }

  .promo-btn {
    padding: 16px 28px;
    font-size: 15px;
    border-radius: var(--r-md);
  }

  /* Header Premium */
  .header {
    padding: 18px 36px;
  }

  .header-brand i {
    font-size: 24px;
  }

  .header-brand-text {
    font-size: 19px;
    letter-spacing: 0.8px;
  }

  .avatar {
    width: 42px;
    height: 42px;
    font-size: 16px;
  }

  /* Tools Grid Desktop */
  .tools-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
  }

  .tools-sub-card {
    min-height: 130px;
    padding: 24px 14px;
    border-radius: var(--r-lg);
  }

  .tools-sub-card .service-icon {
    width: 52px;
    height: 52px;
    font-size: 22px;
    border-radius: 16px;
  }

  /* Sidebar Desktop — Always Visible */
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 260px;
    height: 100vh;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    z-index: 100;
    overflow-y: auto;
    padding: 24px 20px;
    transition: none;
  }

  .sidebar.show {
    left: 0;
  }

  .sidebar .menu-btn {
    display: none;
  }

  .header .menu-btn {
    display: none;
  }

  /* Adjust container for sidebar */
  .container {
    margin-left: 260px;
    max-width: calc(1200px - 260px);
  }

  /* Adjust header for sidebar */
  .header {
    left: 260px;
    width: calc(100% - 260px);
  }

  /* Hide mobile bottom nav on desktop */
  .bottom-nav {
    display: none !important;
  }

  /* Watermark waves subtle on desktop */
  .watermark-waves {
    opacity: 0.2;
  }
}


/* ============================================================
   RESPONSIVE — Large Desktop (min-width: 1440px)
   ============================================================ */
@media (min-width: 1440px) {

  .container {
    max-width: 1320px;
    padding: 40px 48px;
  }

  .welcome-msg {
    font-size: 32px;
  }

  .welcome-msg span {
    font-size: 32px;
  }

  .wallet-card-inner {
    padding: 40px 48px;
    gap: 48px;
  }

  .wallet-card-visual {
    max-width: 240px;
  }

  .wallet-balance {
    font-size: 64px;
    letter-spacing: -3.5px;
  }

  .wallet-balance-hidden {
    font-size: 64px;
    letter-spacing: 9px;
  }

  .wallet-currency {
    font-size: 64px;
  }

  .wallet-btn {
    padding: 16px 32px;
    font-size: 15px;
  }

  .services-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
  }

  .service-card {
    min-height: 160px;
    padding: 32px 18px;
  }

  .service-icon {
    width: 72px;
    height: 72px;
    font-size: 32px;
    border-radius: 22px;
  }

  .service-label {
    font-size: 15px;
  }

  .stats-row {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }

  .stat-box {
    padding: 28px;
  }

  .stat-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    font-size: 26px;
  }

  .stat-val {
    font-size: 32px;
  }

  .stat-lbl {
    font-size: 16px;
  }
}


/* ============================================================
   DARK MODE MEDIA QUERY (system preference)
   ============================================================ */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
  }
}
