/* ============================================================
   SURE VERIFY PROFILE PAGE — Premium Fintech Theme
   Matches dashboard.css design system exactly
   ============================================================ */

/* ===========================
   CSS CUSTOM PROPERTIES (Shared with dashboard via theme.css)
   =========================== */
:root {
  --bg-tertiary: var(--bg-secondary-card);
  --accent-dim: var(--accent-subtle);
  --accent-glow: rgba(22, 199, 90, 0.25);
  --border-accent: rgba(22, 199, 90, 0.15);
  --gold: #F5A623;
  --blue: #3B82F6;
  --purple: #8B5CF6;
  --teal: #14B8A6;
  --indigo: #6366F1;
  --red: #EF4444;
  --orange: #F97316;
  --grad-wallet: linear-gradient(145deg, var(--accent-hover) 0%, var(--accent) 50%, var(--accent) 100%);
  --grad-wallet-shine: linear-gradient(135deg, rgba(255,255,255,0.07) 0%, transparent 40%, transparent 60%, rgba(255,255,255,0.03) 100%);
  --grad-header: var(--bg-header);
  --grad-sidebar: var(--bg-sidebar);
  --shadow-card: 0 1px 3px rgba(0,0,0,0.15), 0 8px 24px rgba(0,0,0,0.1);
  --shadow-elevated: 0 4px 12px rgba(0,0,0,0.15), 0 20px 40px rgba(0,0,0,0.2);
  --shadow-wallet: 0 8px 32px rgba(0,0,0,0.2), 0 0 80px var(--accent-dim);
  --shadow-glow: 0 0 40px var(--accent-dim);
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 20px;
  --r-xl: 24px;
  --r-full: 9999px;
  --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;
}

body::before {
  content: '';
  position: fixed;
  top: -25%;
  right: -15%;
  width: 55%;
  height: 55%;
  background: radial-gradient(ellipse at center, rgba(22, 199, 90, 0.07) 0%, rgba(22, 199, 90, 0.02) 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, rgba(22, 199, 90, 0.04) 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: 1;
  max-width: 600px;
  margin: 0 auto;
}


/* ===========================
   HEADER BAR — Glassmorphism
   =========================== */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: var(--grad-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;
}

.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); }

.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(--grad-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 a.active-link {
  background: var(--accent-dim);
  color: var(--accent);
}

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

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


/* ===========================
   PROFILE HERO SECTION
   =========================== */
.profile-hero {
  text-align: center;
  padding: 28px 20px 32px;
  position: relative;
  z-index: 1;
}

.profile-hero::before {
  content: '';
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(22, 199, 90, 0.12) 0%, transparent 70%);
  pointer-events: none;
  border-radius: 50%;
}

.profile-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0F5132, var(--accent));
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 800;
  font-size: 36px;
  color: #fff;
  margin: 0 auto 16px;
  box-shadow: 0 0 0 4px var(--accent-dim), 0 0 40px rgba(22, 199, 90, 0.15);
  position: relative;
  z-index: 2;
  animation: avatarGlow 3s ease-in-out infinite alternate;
}

@keyframes avatarGlow {
  0% { box-shadow: 0 0 0 4px var(--accent-dim), 0 0 40px rgba(22, 199, 90, 0.15); }
  100% { box-shadow: 0 0 0 4px var(--accent-dim), 0 0 60px rgba(22, 199, 90, 0.25); }
}

.profile-avatar .status-dot {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 16px;
  height: 16px;
  background: var(--accent);
  border-radius: 50%;
  border: 3px solid var(--bg-page);
  z-index: 3;
}

.profile-name {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin-bottom: 4px;
  position: relative;
  z-index: 2;
}

.profile-email {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 8px;
  position: relative;
  z-index: 2;
}

.profile-member {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-dim);
  color: var(--accent);
  padding: 6px 14px;
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(22, 199, 90, 0.15);
  letter-spacing: 0.3px;
  position: relative;
  z-index: 2;
}

.profile-member i { font-size: 11px; }


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

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


/* ===========================
   PROFILE INFO CARDS
   =========================== */
.profile-card {
  background: var(--bg-primary-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
  margin-bottom: 16px;
  transition: all var(--duration) var(--ease);
  position: relative;
  overflow: hidden;
}

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

.profile-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(22, 199, 90, 0.04) 0%, transparent 55%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.profile-card:hover::before { opacity: 1; }


/* ===========================
   INFO ROW (label-value pairs)
   =========================== */
.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.info-row:last-child { border-bottom: none; }

.info-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
}

.info-label i {
  font-size: 14px;
  width: 20px;
  text-align: center;
  color: var(--text-muted);
}

.info-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: right;
  max-width: 55%;
  word-break: break-all;
}

.info-value.highlight {
  color: var(--accent);
}


/* ===========================
   WALLET CARD (Profile)
   =========================== */
.wallet-card-profile {
  background: var(--grad-wallet);
  border-radius: var(--r-xl);
  padding: 22px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(22, 199, 90, 0.12);
  box-shadow: var(--shadow-wallet);
}

.wallet-card-profile::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-wallet-shine);
  pointer-events: none;
  z-index: 1;
}

.wallet-card-profile::after {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 55%;
  height: 140%;
  background: radial-gradient(ellipse, rgba(22, 199, 90, 0.14) 0%, transparent 65%);
  pointer-events: none;
  z-index: 1;
}

.wallet-card-profile .wallet-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 2;
}

.wallet-card-profile .wallet-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: rgba(167, 181, 171, 0.85);
  font-weight: 500;
}

.wallet-card-profile .wallet-balance {
  font-size: 36px;
  font-weight: 800;
  margin: 10px 0 16px;
  letter-spacing: -1px;
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.wallet-card-profile .wallet-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  position: relative;
  z-index: 2;
}

.wallet-card-profile .wallet-btn {
  padding: 13px 12px;
  border: none;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  text-align: center;
  letter-spacing: 0.1px;
}

.wallet-card-profile .wallet-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-elevated);
}

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

.wallet-card-profile .btn-white {
  background: #FFFFFF;
  color: #0B3D24;
  font-weight: 700;
}

.wallet-card-profile .btn-outline {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
}


/* ===========================
   STATS GRID (4-col)
   =========================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 8px;
}

.stat-card {
  background: var(--bg-primary-card);
  border-radius: var(--r-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid var(--border);
  transition: all var(--duration) var(--ease);
  position: relative;
  overflow: hidden;
}

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

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

.stat-card .stat-icon.icon-blue { background: rgba(59, 130, 246, 0.12); color: var(--blue); }
.stat-card .stat-icon.icon-purple { background: rgba(139, 92, 246, 0.12); color: var(--purple); }
.stat-card .stat-icon.icon-gold { background: rgba(245, 166, 35, 0.12); color: var(--gold); }
.stat-card .stat-icon.icon-teal { background: rgba(20, 184, 166, 0.12); color: var(--teal); }

.stat-card .stat-val {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.stat-card .stat-lbl {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.3px;
  margin-top: -4px;
}


/* ===========================
   SECURITY SECTION
   =========================== */
.security-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.security-row:last-child { border-bottom: none; }

.security-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.security-icon.icon-red { background: rgba(239, 68, 68, 0.12); color: var(--red); }
.security-icon.icon-blue { background: rgba(59, 130, 246, 0.12); color: var(--blue); }
.security-icon.icon-gold { background: rgba(245, 166, 35, 0.12); color: var(--gold); }

.security-text h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.security-text p {
  font-size: 12px;
  color: var(--text-muted);
}

.security-action {
  padding: 8px 16px;
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  white-space: nowrap;
}

.security-action:hover {
  background: var(--accent-dim);
  border-color: var(--border-accent);
  color: var(--accent);
}

.security-action:active { transform: scale(0.96); }


/* ===========================
   TOGGLE SWITCH
   =========================== */
.toggle-wrap {
  position: relative;
  width: 46px;
  height: 26px;
}

.toggle-wrap input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--bg-tertiary);
  border-radius: 26px;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: transform var(--duration) var(--ease-bounce);
}

.toggle-wrap input:checked + .toggle-slider {
  background: var(--accent);
}

.toggle-wrap input:checked + .toggle-slider::before {
  transform: translateX(20px);
}


/* ===========================
   NOTIFICATION ITEMS
   =========================== */
.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.notif-item:last-child { border-bottom: none; }

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

.notif-icon.type-transaction { background: rgba(59, 130, 246, 0.12); color: var(--blue); }
.notif-icon.type-security { background: rgba(239, 68, 68, 0.12); color: var(--red); }
.notif-icon.type-promo { background: rgba(139, 92, 246, 0.12); color: var(--purple); }

.notif-content {
  flex: 1;
  min-width: 0;
}

.notif-content h4 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
  line-height: 1.3;
}

.notif-content p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

.notif-time {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  margin-top: 2px;
}

.notif-empty {
  text-align: center;
  padding: 24px 0;
  color: var(--text-muted);
  font-size: 14px;
}

.notif-empty i {
  font-size: 32px;
  color: var(--text-muted);
  opacity: 0.4;
  display: block;
  margin-bottom: 10px;
}


/* ===========================
   REFERRAL CARD
   =========================== */
.referral-card {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.06));
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: var(--r-lg);
  padding: 22px;
  position: relative;
  overflow: hidden;
}

.referral-card::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -15%;
  width: 40%;
  height: 100%;
  background: radial-gradient(ellipse, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.referral-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.referral-header i {
  font-size: 18px;
  color: var(--indigo);
}

.referral-header h3 {
  font-size: 16px;
  font-weight: 700;
}

.referral-code {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--r-sm);
  padding: 12px 16px;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.referral-code span {
  flex: 1;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--indigo);
  font-family: 'Courier New', Courier, monospace;
}

.referral-code button {
  background: var(--indigo);
  border: none;
  color: #fff;
  padding: 8px 14px;
  border-radius: var(--r-xs);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}

.referral-code button:hover {
  background: #5558E6;
  transform: translateY(-1px);
}

.referral-code button:active { transform: scale(0.96); }

.referral-stats {
  display: flex;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.referral-stat {
  display: flex;
  flex-direction: column;
}

.referral-stat .val {
  font-size: 20px;
  font-weight: 700;
  color: var(--indigo);
}

.referral-stat .lbl {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}


/* ===========================
   SUPPORT SECTION
   =========================== */
.support-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.support-card {
  background: var(--bg-primary-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  position: relative;
  overflow: hidden;
}

.support-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);
}

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

.support-card:hover::before { opacity: 1; }

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

.support-card .support-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin: 0 auto 12px;
  color: #fff;
  position: relative;
  z-index: 1;
}

.support-card .support-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  position: relative;
  z-index: 1;
}

.support-card .support-desc {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
  position: relative;
  z-index: 1;
}


/* ===========================
   ACCOUNT ACTIONS
   =========================== */
.action-btn {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: var(--r-md);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
  letter-spacing: 0.1px;
}

.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-elevated);
}

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

.action-btn.btn-danger {
  background: rgba(239, 68, 68, 0.1);
  color: var(--red);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.action-btn.btn-danger:hover {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.35);
}

.action-btn.btn-logout {
  background: var(--bg-secondary-card);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.action-btn.btn-logout:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}


/* ===========================
   SKELETON LOADERS
   =========================== */
.skeleton {
  background: linear-gradient(90deg, var(--bg-primary-card) 25%, var(--bg-secondary-card) 50%, var(--bg-primary-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--r-sm);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
}

.skeleton-line {
  height: 16px;
  margin: 8px auto;
}

.skeleton-line.w60 { width: 60%; }
.skeleton-line.w40 { width: 40%; }
.skeleton-line.w80 { width: 80%; }
.skeleton-line.w100 { width: 100%; }

.skeleton-row {
  height: 48px;
  border-radius: var(--r-sm);
  margin-bottom: 12px;
}

.skeleton-card {
  height: 100px;
  border-radius: var(--r-lg);
  margin-bottom: 16px;
}

.skeleton-stat {
  height: 80px;
  border-radius: var(--r-md);
}

.skeleton-badge {
  height: 28px;
  width: 120px;
  border-radius: var(--r-full);
  margin: 0 auto;
}

.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); }

.hidden { display: none !important; }


/* ===========================
   FLOATING BOTTOM NAV
   =========================== */
.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);
}

.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: transparent; }
::-webkit-scrollbar-thumb { background: rgba(22, 199, 90, 0.2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(22, 199, 90, 0.35); }


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


/* ===========================
   TOAST NOTIFICATION
   =========================== */
.toast {
  position: fixed;
  top: 80px;
  right: 18px;
  background: var(--bg-primary-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--r-sm);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 3000;
  box-shadow: var(--shadow-elevated);
  transform: translateX(120%);
  transition: transform 0.4s var(--ease-bounce);
  max-width: 300px;
}

.toast.show { transform: translateX(0); }

.toast i {
  font-size: 16px;
  color: var(--accent);
}

.toast span {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
}


/* ===========================
   MODAL OVERLAY
   =========================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 5000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
  padding: 20px;
}

.modal-overlay.show {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--bg-primary-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  width: 100%;
  max-width: 380px;
  padding: 28px;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.35s var(--ease-bounce);
  box-shadow: var(--shadow-elevated);
}

.modal-overlay.show .modal {
  transform: scale(1) translateY(0);
}

.modal h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.modal p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

.modal-input {
  width: 100%;
  padding: 14px;
  background: var(--bg-tertiary);
  color: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 14px;
  outline: none;
  transition: border-color var(--duration) var(--ease);
  margin-bottom: 12px;
}

.modal-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-dim);
}

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.modal-actions button {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.modal-actions .btn-cancel {
  background: var(--bg-secondary-card);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.modal-actions .btn-cancel:hover { background: var(--bg-hover); }

.modal-actions .btn-confirm {
  background: var(--accent);
  color: #fff;
}

.modal-actions .btn-confirm:hover { background: #12964A; }

.modal-actions .btn-confirm.btn-red {
  background: var(--red);
}

.modal-actions .btn-confirm.btn-red:hover { background: #DC2626; }


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

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

.profile-hero { animation: fadeIn 0.5s var(--ease) both; }
.profile-hero .profile-avatar { animation: fadeInUp 0.5s var(--ease) 0.1s both; }
.profile-hero .profile-name { animation: fadeInUp 0.5s var(--ease) 0.15s both; }
.profile-hero .profile-email { animation: fadeInUp 0.5s var(--ease) 0.2s both; }
.profile-hero .profile-member { animation: fadeInUp 0.5s var(--ease) 0.25s both; }
.wallet-card-profile { animation: fadeInUp 0.5s var(--ease) 0.3s both; }
.stats-grid { animation: fadeInUp 0.5s var(--ease) 0.35s both; }
.section-title { animation: fadeIn 0.4s var(--ease) 0.05s both; }
.profile-card { animation: fadeInUp 0.5s var(--ease) 0.4s both; }
.referral-card { animation: fadeInUp 0.5s var(--ease) 0.45s both; }
.support-grid { animation: fadeInUp 0.5s var(--ease) 0.5s both; }


/* ============================================================
   RESPONSIVE — Mobile (max-width: 480px)
   ============================================================ */
@media (max-width: 480px) {
  .container { padding: 16px 14px; }

  .profile-hero { padding: 20px 16px 28px; }
  .profile-avatar { width: 80px; height: 80px; font-size: 30px; }
  .profile-name { font-size: 22px; }

  .wallet-card-profile { padding: 18px; }
  .wallet-card-profile .wallet-balance { font-size: 30px; }

  .stats-grid { gap: 10px; }
  .stat-card { padding: 14px; }
  .stat-card .stat-val { font-size: 18px; }

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

  .info-row { padding: 12px 0; }
  .info-label, .info-value { font-size: 13px; }

  .security-row { padding: 14px 0; }
  .security-text h4 { font-size: 13px; }

  .support-grid { gap: 10px; }
  .support-card { padding: 16px 12px; }

  .referral-code span { font-size: 16px; }

  .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; }
}


/* ============================================================
   RESPONSIVE — Very Small (max-width: 360px)
   ============================================================ */
@media (max-width: 360px) {
  body { padding-top: 62px; padding-bottom: 82px; }

  .profile-avatar { width: 72px; height: 72px; font-size: 26px; }
  .profile-name { font-size: 20px; }

  .wallet-card-profile .wallet-balance { font-size: 26px; }

  .stats-grid { gap: 8px; }
  .stat-card { padding: 12px; gap: 8px; }
  .stat-card .stat-icon { width: 34px; height: 34px; font-size: 14px; }
  .stat-card .stat-val { font-size: 16px; }

  .support-grid { gap: 8px; }
  .support-card { padding: 14px 10px; }
  .support-card .support-icon { width: 38px; height: 38px; font-size: 18px; }

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


/* ============================================================
   RESPONSIVE — Tablet & Desktop (min-width: 768px)
   ============================================================ */
@media (min-width: 768px) {
  .container { padding: 24px 28px; max-width: 780px; }

  .profile-hero { padding: 36px 24px 40px; }
  .profile-avatar { width: 110px; height: 110px; font-size: 42px; }
  .profile-name { font-size: 28px; }

  .wallet-card-profile { padding: 26px; border-radius: 28px; }
  .wallet-card-profile .wallet-balance { font-size: 44px; }

  .stats-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .stat-card { padding: 22px; border-radius: var(--r-lg); }
  .stat-card .stat-val { font-size: 26px; }

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

  .profile-card { padding: 24px; }

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

  .referral-code span { font-size: 20px; }

  .bottom-nav { max-width: 460px; height: 68px; bottom: 16px; }
}


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