/* assets/css/style.css – TrxStar Theme */
/* Colors: Primary #6C3BFF | Secondary #8B5CFF | Background #FFFFFF */

:root {
  --primary:    #6C3BFF;
  --secondary:  #8B5CFF;
  --bg:         #FFFFFF;
  --border:     #D9D9D9;
  --text-dark:  #111827;
  --text-light: #6B7280;
  --radius:     20px;
  --radius-sm:  12px;
  --shadow:     0 4px 24px rgba(108,59,255,0.08);
  --shadow-lg:  0 8px 40px rgba(108,59,255,0.14);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text-dark);
  font-size: 15px;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff; border: none; cursor: pointer;
  padding: 12px 28px; border-radius: 50px;
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 15px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(108,59,255,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(108,59,255,0.4); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--primary);
  border: 1.5px solid var(--primary); cursor: pointer;
  padding: 11px 26px; border-radius: 50px;
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 15px;
  transition: all 0.2s;
}
.btn-outline:hover { background: var(--primary); color: #fff; }

.w-full { width: 100%; justify-content: center; }

/* ── NAVBAR ── */
.navbar {
  background: #fff; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 1000;
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}
.nav-container {
  max-width: 1140px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; height: 68px; gap: 20px;
}
.nav-brand {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 20px; color: var(--text-dark);
}
.brand-star { font-size: 22px; }
.nav-links {
  display: flex; list-style: none; gap: 4px; margin: 0 auto;
}
.nav-links li a {
  padding: 8px 14px; border-radius: 8px; color: var(--text-light);
  font-weight: 500; font-size: 14px; transition: color 0.2s, background 0.2s;
}
.nav-links li a:hover, .nav-links li a.active { color: var(--primary); background: #f3eeff; }

.btn-login {
  display: flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff; border: none; cursor: pointer;
  padding: 10px 22px; border-radius: 50px;
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 14px;
  transition: transform 0.2s; white-space: nowrap;
}
.btn-login:hover { transform: translateY(-1px); }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--text-dark); border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MODAL ── */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 2000;
  background: rgba(17,24,39,0.55); backdrop-filter: blur(4px);
  align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal-box {
  background: #fff; border-radius: var(--radius); width: 100%; max-width: 420px;
  padding: 36px 32px; position: relative; box-shadow: var(--shadow-lg);
  animation: modalIn 0.3s ease;
}
@keyframes modalIn { from { opacity:0; transform: scale(0.95) translateY(10px); } to { opacity:1; transform: none; } }
.modal-close {
  position: absolute; top: 16px; right: 20px;
  background: none; border: none; font-size: 24px; cursor: pointer; color: var(--text-light);
}
.modal-logo { font-weight: 700; font-size: 18px; margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }
.modal-title { font-size: 22px; font-weight: 700; color: var(--text-dark); }
.modal-sub { color: var(--text-light); font-size: 13px; margin: 4px 0 20px; }
.modal-hint { color: var(--text-light); font-size: 12px; text-align: center; margin-top: 12px; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; color: var(--text-dark); }
.form-group input {
  width: 100%; padding: 11px 16px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-family: 'Poppins', sans-serif; font-size: 14px; outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus { border-color: var(--primary); }

.alert { padding: 10px 14px; border-radius: 10px; font-size: 13px; margin-bottom: 14px; }
.alert-error { background: #FEF2F2; color: #DC2626; border: 1px solid #FECACA; }
.alert-success { background: #F0FDF4; color: #16A34A; border: 1px solid #BBF7D0; }

/* ── CAPTCHA ── */
.captcha-wrap { margin: 16px 0; }
.captcha-checkbox {
  display: flex; align-items: center; gap: 10px;
  cursor: pointer; border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 16px; font-size: 14px; font-weight: 500;
  transition: border-color 0.2s;
}
.captcha-checkbox:hover { border-color: var(--primary); }
.check-box { font-size: 18px; }
.captcha-grid-wrap { border: 1px solid var(--border); border-radius: 12px; padding: 14px; }
.captcha-target { font-size: 13px; font-weight: 500; margin-bottom: 10px; color: var(--text-dark); }
.captcha-grid { display: flex; gap: 8px; flex-wrap: wrap; }
.captcha-icon-btn {
  width: 52px; height: 52px; font-size: 26px;
  border: 1.5px solid var(--border); border-radius: 10px;
  background: #fafafa; cursor: pointer; transition: all 0.2s;
}
.captcha-icon-btn:hover { border-color: var(--primary); background: #f3eeff; transform: scale(1.08); }
.captcha-msg { font-size: 12px; color: #DC2626; margin-top: 8px; }
.captcha-verified { background: #F0FDF4; color: #16A34A; border: 1px solid #BBF7D0; border-radius: 10px; padding: 10px 14px; font-size: 13px; font-weight: 500; }

@keyframes shake {
  0%,100% { transform: translateX(0); }
  20%,60%  { transform: translateX(-4px); }
  40%,80%  { transform: translateX(4px); }
}
.shake { animation: shake 0.4s ease; border-color: #DC2626 !important; }

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, #faf8ff 0%, #f0eaff 100%);
  padding: 80px 20px;
  overflow: hidden;
}
.hero-content {
  max-width: 1140px; margin: 0 auto;
  display: flex; align-items: center; gap: 60px;
}
.hero-text { flex: 1; }
.hero-title { font-size: clamp(36px, 5vw, 56px); font-weight: 800; line-height: 1.15; }
.gradient-text { background: linear-gradient(135deg, var(--primary), var(--secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-desc { color: var(--text-light); margin: 16px 0 32px; font-size: 15px; max-width: 480px; }
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-image { flex: 0 0 320px; display: flex; align-items: center; justify-content: center; }

/* Crypto Illustration */
.crypto-illustration {
  position: relative; width: 240px; height: 240px;
  display: flex; align-items: center; justify-content: center;
}
.coin-ring {
  position: absolute; width: 200px; height: 200px;
  border-radius: 50%; border: 2px dashed rgba(108,59,255,0.3);
  animation: spin 12s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.coin-main {
  font-size: 80px; z-index: 1;
  filter: drop-shadow(0 8px 24px rgba(108,59,255,0.3));
  animation: float 3s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.faucet-drop {
  position: absolute; bottom: 30px; right: 30px;
  font-size: 32px; animation: drip 2s ease-in-out infinite;
}
@keyframes drip { 0%,100% { transform: translateY(0) scale(1); opacity:1; } 50% { transform: translateY(6px) scale(0.9); opacity:0.7; } }
.orbit-dot {
  position: absolute; width: 10px; height: 10px;
  background: var(--primary); border-radius: 50%;
  animation: orbit 6s linear infinite;
}
.d1 { top: 10px; left: 50%; animation-delay: 0s; }
.d2 { top: 50%; right: 10px; animation-delay: -2s; }
.d3 { bottom: 10px; left: 30%; animation-delay: -4s; }
@keyframes orbit { 0% { opacity:0.3; } 50% { opacity:1; } 100% { opacity:0.3; } }

/* ── STATS ── */
.stats-section { padding: 48px 20px; }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.stat-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 20px; display: flex; align-items: center; gap: 16px;
  background: #fff; box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.stat-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; font-size: 24px;
  flex-shrink: 0;
}
.stat-value { font-size: 22px; font-weight: 700; color: var(--text-dark); }
.stat-label { font-size: 13px; font-weight: 600; color: var(--text-dark); }
.stat-sub { font-size: 12px; color: var(--text-light); }

/* ── SECTION TITLE ── */
.section-title { text-align: center; font-size: 28px; font-weight: 700; margin-bottom: 40px; }

/* ── HOW IT WORKS ── */
.how-section { padding: 60px 20px; background: #f9f8ff; }
.how-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.how-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 24px; text-align: center; box-shadow: var(--shadow);
  transition: transform 0.2s;
}
.how-card:hover { transform: translateY(-4px); }
.how-num { font-size: 13px; font-weight: 700; color: var(--primary); background: #f0eaff; display: inline-block; padding: 4px 12px; border-radius: 20px; margin-bottom: 12px; }
.how-icon { font-size: 40px; margin-bottom: 12px; }
.how-card h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.how-card p { color: var(--text-light); font-size: 13px; }

/* ── FEATURES ── */
.features-section { padding: 60px 20px; }
.features-grid { display: grid; grid-template-columns: repeat(6,1fr); gap: 14px; }
.feature-card {
  border: 1px solid var(--border); border-radius: 16px;
  padding: 20px 14px; text-align: center; background: #fff;
  box-shadow: var(--shadow); transition: all 0.2s;
}
.feature-card:hover { transform: translateY(-3px); border-color: var(--primary); box-shadow: var(--shadow-lg); }
.feat-icon { font-size: 32px; margin-bottom: 8px; }
.feature-card h4 { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.feature-card p { color: var(--text-light); font-size: 11px; line-height: 1.5; }

/* ── FAQ ── */
.faq-section { padding: 60px 20px; background: #f9f8ff; }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.faq-col { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  cursor: pointer; overflow: hidden; transition: border-color 0.2s;
}
.faq-item:hover { border-color: var(--primary); }
.faq-item.open { border-color: var(--primary); }
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 18px; font-size: 14px; font-weight: 500;
}
.faq-icon { font-size: 18px; color: var(--primary); flex-shrink: 0; }
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height 0.35s ease;
  font-size: 13px; color: var(--text-light); padding: 0 18px;
  line-height: 1.7;
}
.faq-item.open .faq-a { padding-bottom: 16px; }

/* ── FOOTER ── */
.footer { background: #fff; border-top: 1px solid var(--border); padding: 32px 20px; text-align: center; }
.footer-links { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.footer-btn {
  border: 1.5px solid var(--border); border-radius: 50px;
  padding: 10px 22px; font-size: 13px; font-weight: 500;
  color: var(--text-dark); transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 6px;
}
.footer-btn:hover { border-color: var(--primary); color: var(--primary); background: #f3eeff; }
.footer-copy { color: var(--text-light); font-size: 13px; }

/* ── VPN OVERLAY ── */
.vpn-overlay {
  position: fixed; inset: 0; background: rgba(17,24,39,0.8);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999; padding: 20px;
}
.vpn-box {
  background: #fff; border-radius: var(--radius); padding: 40px 32px;
  text-align: center; max-width: 360px; width: 100%;
}
.vpn-icon { font-size: 60px; margin-bottom: 16px; }
.vpn-box h2 { font-size: 22px; margin-bottom: 8px; }
.vpn-box p { color: var(--text-light); font-size: 14px; }

/* ── DASHBOARD SHARED STYLES ── */
.sidebar {
  width: 240px; min-height: 100vh; background: #fff;
  border-right: 1px solid var(--border); padding: 24px 0;
  position: fixed; top: 0; left: 0; z-index: 100;
}
.sidebar-brand { padding: 0 20px 24px; font-weight: 700; font-size: 18px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.sidebar-nav { list-style: none; }
.sidebar-nav li a {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 20px; color: var(--text-light); font-size: 14px; font-weight: 500;
  transition: all 0.2s; border-left: 3px solid transparent;
}
.sidebar-nav li a:hover, .sidebar-nav li a.active {
  background: #f3eeff; color: var(--primary); border-left-color: var(--primary);
}

.dash-content { margin-left: 240px; padding: 24px; min-height: 100vh; background: #f7f6fb; }
.dash-header {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 24px; display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px;
}
.dash-title { font-size: 20px; font-weight: 700; }

.card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
}
.balance-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-bottom: 24px; }
.balance-card {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius); padding: 24px; color: #fff;
}
.balance-card.light { background: #fff; border: 1px solid var(--border); color: var(--text-dark); }
.balance-card .bc-label { font-size: 12px; opacity: 0.8; margin-bottom: 6px; }
.balance-card .bc-value { font-size: 28px; font-weight: 700; }
.balance-card .bc-sub { font-size: 12px; opacity: 0.75; margin-top: 4px; }

.lifetime-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 24px; }
.lt-card {
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  padding: 18px 16px; text-align: center; box-shadow: var(--shadow);
}
.lt-card .lt-val { font-size: 20px; font-weight: 700; color: var(--primary); }
.lt-card .lt-label { font-size: 12px; color: var(--text-light); margin-top: 4px; }

.profile-card { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.profile-item { background: #f9f8ff; border-radius: 10px; padding: 14px; }
.profile-item .pi-label { font-size: 11px; color: var(--text-light); }
.profile-item .pi-val { font-size: 14px; font-weight: 600; margin-top: 2px; }

/* ── FAUCET ── */
.faucet-box {
  max-width: 520px; margin: 0 auto;
  text-align: center;
}
.faucet-reward { font-size: 40px; font-weight: 800; color: var(--primary); margin: 10px 0 4px; }
.faucet-timer { font-size: 28px; font-weight: 700; color: var(--text-dark); font-variant-numeric: tabular-nums; }
.faucet-disabled { opacity: 0.5; pointer-events: none; }

/* ── TABLES ── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
thead th { background: #f3eeff; color: var(--primary); font-weight: 600; padding: 12px 14px; text-align: left; }
tbody tr { border-bottom: 1px solid var(--border); }
tbody td { padding: 12px 14px; color: var(--text-dark); }
tbody tr:hover { background: #faf8ff; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.badge-green  { background: #F0FDF4; color: #16A34A; }
.badge-yellow { background: #FFFBEB; color: #D97706; }
.badge-red    { background: #FEF2F2; color: #DC2626; }

/* ── ADMIN ── */
.admin-stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 24px; }
.admin-stat-card {
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  padding: 20px; box-shadow: var(--shadow);
}
.admin-stat-card .as-icon { font-size: 28px; margin-bottom: 8px; }
.admin-stat-card .as-val { font-size: 24px; font-weight: 700; color: var(--primary); }
.admin-stat-card .as-label { font-size: 12px; color: var(--text-light); }

.settings-form .setting-row { display: flex; gap: 16px; align-items: flex-end; margin-bottom: 16px; flex-wrap: wrap; }
.settings-form .setting-row .form-group { flex: 1; min-width: 200px; margin-bottom: 0; }

/* Toggle Switch */
.toggle-wrap { display: flex; align-items: center; gap: 10px; }
.toggle { position: relative; display: inline-block; width: 44px; height: 24px; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; cursor: pointer; inset: 0;
  background: #ccc; border-radius: 24px; transition: 0.3s;
}
.toggle-slider:before {
  content: ''; position: absolute; width: 18px; height: 18px;
  left: 3px; bottom: 3px; background: #fff; border-radius: 50%; transition: 0.3s;
}
.toggle input:checked + .toggle-slider { background: var(--primary); }
.toggle input:checked + .toggle-slider:before { transform: translateX(20px); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(3,1fr); }
  .stats-grid    { grid-template-columns: repeat(2,1fr); }
  .admin-stats-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    flex-direction: column; padding: 12px 20px; gap: 2px;
  }
  .nav-links.open { display: flex; }
  .nav-links li a { border-radius: 8px; padding: 10px 14px; }
  .hero-content { flex-direction: column; text-align: center; padding: 40px 0 0; gap: 32px; }
  .hero-desc, .hero-buttons { text-align: center; }
  .hero-buttons { justify-content: center; }
  .hero-image { flex: none; }
  .how-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: repeat(2,1fr); }
  .faq-grid { grid-template-columns: 1fr; }
  .balance-cards { grid-template-columns: 1fr; }
  .lifetime-grid { grid-template-columns: repeat(2,1fr); }
  .profile-card { grid-template-columns: 1fr 1fr; }
  .sidebar { transform: translateX(-100%); transition: transform 0.3s; }
  .sidebar.open { transform: translateX(0); }
  .dash-content { margin-left: 0; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .lifetime-grid { grid-template-columns: 1fr 1fr; }
  .profile-card { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════
   UPDATES v2 – Top Navbar, Footer, SweetAlert tweaks
   ══════════════════════════════════════════════ */

/* ── SITE FOOTER (shared) ── */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 28px 20px 20px;
  margin-top: 40px;
  text-align: center;
}
.footer-inner { max-width: 900px; margin: 0 auto; }
.site-footer .footer-brand {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; font-weight: 700; font-size: 16px; margin-bottom: 14px;
}
.site-footer .footer-links {
  display: flex; justify-content: center; gap: 10px;
  flex-wrap: wrap; margin-bottom: 14px;
}
.site-footer .footer-btn {
  border: 1.5px solid var(--border); border-radius: 50px;
  padding: 8px 18px; font-size: 13px; font-weight: 500;
  color: var(--text-dark); transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 5px;
}
.site-footer .footer-btn:hover { border-color: var(--primary); color: var(--primary); background: #f3eeff; }
.site-footer .footer-copy { color: var(--text-light); font-size: 12px; }

/* ── USER TOP NAVBAR ── */
.user-topnav {
  position: sticky; top: 0; z-index: 200;
  background: #fff; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; padding: 0 20px;
  height: 62px; gap: 16px;
  box-shadow: 0 1px 8px rgba(0,0,0,0.05);
}
.utn-left  { display: flex; align-items: center; gap: 12px; }
.utn-brand { font-weight: 700; font-size: 17px; color: var(--text-dark); white-space: nowrap; }
.utn-center {
  display: flex; align-items: center; gap: 2px;
  margin: 0 auto; overflow-x: auto;
}
.utn-link {
  padding: 7px 13px; border-radius: 8px;
  font-size: 13px; font-weight: 500; color: var(--text-light);
  white-space: nowrap; transition: all 0.2s;
}
.utn-link:hover, .utn-link.active { color: var(--primary); background: #f3eeff; }
.utn-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.utn-balance {
  background: #f3eeff; color: var(--primary);
  padding: 6px 14px; border-radius: 20px;
  font-size: 13px; font-weight: 600; white-space: nowrap;
}
.utn-profile { position: relative; cursor: pointer; }
.utn-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff; font-weight: 700; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  user-select: none;
}
.utn-dropdown {
  display: none; position: absolute; right: 0; top: 46px;
  background: #fff; border: 1px solid var(--border);
  border-radius: 14px; min-width: 200px;
  box-shadow: var(--shadow-lg); padding: 8px;
  z-index: 500;
}
.utn-dropdown.open { display: block; animation: modalIn 0.2s ease; }
.udn-email { padding: 8px 12px; font-size: 12px; color: var(--text-light); border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.udn-item {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px; border-radius: 9px;
  font-size: 13px; color: var(--text-dark);
  transition: background 0.15s;
}
.udn-item:hover { background: #f3eeff; color: var(--primary); }
.udn-divider { border-top: 1px solid var(--border); margin: 4px 0; }
.udn-logout { color: #DC2626 !important; }
.udn-logout:hover { background: #FEF2F2 !important; }

/* Adjust dash-content when top navbar is present */
.has-topnav .dash-content { margin-left: 0; padding-top: 0; }
.has-topnav .sidebar {
  top: 62px; height: calc(100vh - 62px);
  position: fixed;
}
.has-topnav .dash-header { display: none; }

/* ── SWEETALERT CUSTOM THEME ── */
.swal2-popup { border-radius: 18px !important; font-family: 'Poppins', sans-serif !important; }
.swal2-title { font-size: 18px !important; color: var(--text-dark) !important; }
.swal2-html-container { font-size: 14px !important; color: var(--text-light) !important; }
.swal2-confirm {
  background: linear-gradient(135deg, #6C3BFF, #8B5CFF) !important;
  border-radius: 50px !important; font-family: 'Poppins', sans-serif !important;
  font-weight: 600 !important; padding: 10px 28px !important;
}
.swal2-timer-progress-bar { background: var(--primary) !important; }

/* Toast (top-right) */
.swal2-container.swal2-top-end { z-index: 9999 !important; }

/* ── LEADERBOARD POINTS BADGE ── */
.lb-points { color: var(--primary); font-weight: 700; }
.lb-rank-1 { background: linear-gradient(135deg,#FFF7E0,#FFF3C0); }
.lb-rank-2 { background: #F5F5F5; }
.lb-rank-3 { background: #FFF2EE; }

/* ── BAN BADGE ── */
.badge-banned { background: #FEF2F2; color: #DC2626; }
.user-banned-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: #fff; display: flex; align-items: center; justify-content: center;
}
.banned-box { text-align: center; max-width: 360px; }
.banned-box h2 { color: #DC2626; margin: 12px 0 6px; }

/* ── EARN SETTINGS SIDEBAR ── */
.admin-earn-menu { list-style: none; margin-bottom: 20px; }
.admin-earn-menu li a {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 10px;
  font-size: 14px; color: var(--text-light); font-weight: 500;
  transition: all 0.2s; margin-bottom: 2px;
}
.admin-earn-menu li a:hover, .admin-earn-menu li a.active {
  background: #f3eeff; color: var(--primary);
}

@media (max-width: 768px) {
  .utn-center { display: none; }
  .utn-brand { font-size: 15px; }
  .has-topnav .sidebar { top: 62px; }
}
