/* ========================================
   DESIGN SYSTEM — IndicaFácil
   ======================================== */
:root {
  --bg-base: #08090f;
  --bg-surface: #0f1120;
  --bg-card: #141629;
  --bg-card-hover: #1a1e35;
  --bg-input: #1c2038;

  --accent-primary: #7c3aed;
  --accent-primary-hover: #6d28d9;
  --accent-glow: rgba(124, 58, 237, 0.4);
  --accent-secondary: #06b6d4;
  --accent-gold: #f59e0b;
  --accent-gold-glow: rgba(245, 158, 11, 0.35);
  --accent-green: #10b981;
  --accent-rose: #f43f5e;

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #475569;

  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-card: rgba(255, 255, 255, 0.1);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-card: 0 4px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px var(--accent-glow);

  --font-body: 'Inter', sans-serif;
  --font-display: 'Plus Jakarta Sans', sans-serif;

  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-base);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 15% 10%, rgba(124, 58, 237, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 85% 80%, rgba(6, 182, 212, 0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-surface);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-primary);
  border-radius: 99px;
}

/* ---- LAYOUT ---- */
#app {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

.page {
  display: none;
  flex-direction: column;
  min-height: 100vh;
}

.page.active {
  display: flex;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* ---- TOPBAR ---- */
.topbar {
  background: rgba(15, 17, 32, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.topbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  cursor: pointer;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  background: linear-gradient(90deg, #e0e7ff, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.nav-btn:hover,
.nav-btn.active-nav {
  background: rgba(124, 58, 237, 0.15);
  color: #a78bfa;
}

/* ---- HERO ---- */
.hero {
  padding: 100px 20px 60px;
  text-align: center;
  position: relative;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 99px;
  padding: 6px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #c4b5fd;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero h1 span {
  background: linear-gradient(90deg, #c4b5fd, #67e8f9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), #5b21b6);
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-primary);
  border: 1px solid var(--border-card);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.btn-gold {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #1a0f00;
  font-weight: 700;
  box-shadow: 0 4px 20px var(--accent-gold-glow);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-gold-glow);
}

.btn-danger {
  background: rgba(244, 63, 94, 0.15);
  color: var(--accent-rose);
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.btn-danger:hover {
  background: rgba(244, 63, 94, 0.25);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.82rem;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1rem;
}

.btn-full {
  width: 100%;
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
}

/* ---- CARDS ---- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
}

.card:hover {
  border-color: rgba(124, 58, 237, 0.3);
  box-shadow: var(--shadow-card);
}

.card-glass {
  background: rgba(20, 22, 41, 0.7);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 28px;
}

/* ---- FORMS ---- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-input);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 16px;
  transition: var(--transition);
  outline: none;
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group select option {
  background: var(--bg-card);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ---- STATS ---- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 40px 0;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
}

.stat-value {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.stat-icon {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

/* ---- RANKING ---- */
.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ranking-item {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.ranking-item:hover {
  border-color: rgba(124, 58, 237, 0.3);
  transform: translateX(4px);
}

.ranking-item.rank-1 {
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.05);
}

.ranking-item.rank-2 {
  border-color: rgba(148, 163, 184, 0.4);
  background: rgba(148, 163, 184, 0.04);
}

.ranking-item.rank-3 {
  border-color: rgba(180, 120, 60, 0.4);
  background: rgba(180, 120, 60, 0.04);
}

.rank-position {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  min-width: 42px;
  text-align: center;
}

.rank-1 .rank-position {
  color: var(--accent-gold);
}

.rank-2 .rank-position {
  color: #cbd5e1;
}

.rank-3 .rank-position {
  color: #b47c3c;
}

.rank-info {
  flex: 1;
}

.rank-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
}

.rank-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.rank-count {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.25);
  border-radius: 99px;
  padding: 6px 14px;
  font-weight: 700;
  font-size: 0.95rem;
  color: #c4b5fd;
}

.bar-chart {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  border-radius: 99px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- PRIZE BOX ---- */
.prize-box {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(124, 58, 237, 0.08));
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-xl);
  padding: 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.prize-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(245, 158, 11, 0.1), transparent);
  pointer-events: none;
}

.prize-icon {
  font-size: 4rem;
  margin-bottom: 16px;
  display: block;
  filter: drop-shadow(0 0 20px rgba(245, 158, 11, 0.6));
}

.prize-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--accent-gold);
  margin-bottom: 10px;
}

.prize-description {
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.6;
}

.prize-locked {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 99px;
  padding: 8px 20px;
  color: var(--accent-gold);
  font-weight: 600;
  font-size: 0.9rem;
}

.prize-progress {
  margin: 20px 0;
}

.progress-bar-wrap {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 99px;
  height: 10px;
  overflow: hidden;
  margin-top: 8px;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-gold), #fbbf24);
  border-radius: 99px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.5);
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

/* ---- REFERRAL LINK BOX ---- */
.link-box {
  background: var(--bg-input);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.link-text {
  flex: 1;
  font-size: 0.88rem;
  color: #a78bfa;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-btn {
  background: rgba(124, 58, 237, 0.2);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: var(--radius-sm);
  color: #c4b5fd;
  cursor: pointer;
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font-body);
  transition: var(--transition);
  white-space: nowrap;
}

.copy-btn:hover {
  background: rgba(124, 58, 237, 0.35);
}

.copy-btn.copied {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.3);
  color: var(--accent-green);
}

/* ---- MODAL ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 36px;
  max-width: 500px;
  width: 100%;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.07);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 1rem;
  transition: var(--transition);
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.14);
  color: var(--text-primary);
}

.modal h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.modal .subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 28px;
  line-height: 1.6;
}

/* ---- TOAST ---- */
.toast-container {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInToast 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  min-width: 280px;
  box-shadow: var(--shadow-card);
}

.toast.success {
  border-color: rgba(16, 185, 129, 0.4);
  color: var(--accent-green);
}

.toast.error {
  border-color: rgba(244, 63, 94, 0.4);
  color: var(--accent-rose);
}

.toast.info {
  border-color: rgba(124, 58, 237, 0.4);
  color: #a78bfa;
}

@keyframes slideInToast {
  from {
    transform: translateX(60px);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ---- SECTIONS ---- */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ---- DASHBOARD ---- */
.dashboard-header {
  padding: 40px 0 20px;
}

.dashboard-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 6px;
}

.welcome-sub {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.avatar-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: white;
  flex-shrink: 0;
}

/* ---- ADMIN TABLE ---- */
.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
}

.data-table th {
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 8px 16px;
}

.data-table td {
  padding: 14px 16px;
  background: var(--bg-card);
  font-size: 0.9rem;
  vertical-align: middle;
}

.data-table tr td:first-child {
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.data-table tr td:last-child {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.data-table tbody tr:hover td {
  background: var(--bg-card-hover);
}

.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 99px;
}

.badge-active {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
}

.badge-inactive {
  background: rgba(148, 163, 184, 0.12);
  color: var(--text-muted);
}

/* ---- TABS ---- */
.tabs {
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 32px;
}

.tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 9px;
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn.active {
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* ---- EMPTY STATE ---- */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-state .empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  display: block;
}

.empty-state p {
  font-size: 0.95rem;
}

/* ---- DIVIDER ---- */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}

/* ---- ANIMATIONS ---- */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeIn 0.4s ease forwards;
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 var(--accent-glow);
  }

  70% {
    box-shadow: 0 0 0 14px transparent;
  }

  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

.pulse {
  animation: pulse-ring 2s infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.float {
  animation: float 3s ease-in-out infinite;
}

/* ---- CONFETTI PLACEHOLDER ---- */
.confetti-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .stat-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    padding: 70px 20px 40px;
  }

  .tabs {
    flex-direction: column;
  }

  .ranking-item {
    padding: 12px 16px;
    gap: 12px;
  }

  .card,
  .card-glass {
    padding: 20px;
  }

  .modal {
    padding: 24px;
  }
}

/* ---- UTILITY ---- */
.text-gold {
  color: var(--accent-gold);
}

.text-green {
  color: var(--accent-green);
}

.text-purple {
  color: #a78bfa;
}

.text-muted {
  color: var(--text-muted);
}

.text-center {
  text-align: center;
}

.fw-700 {
  font-weight: 700;
}

.fw-800 {
  font-weight: 800;
}

.mb-0 {
  margin-bottom: 0;
}

.mb-8 {
  margin-bottom: 8px;
}

.mb-16 {
  margin-bottom: 16px;
}

.mb-24 {
  margin-bottom: 24px;
}

.mb-32 {
  margin-bottom: 32px;
}

.mt-16 {
  margin-top: 16px;
}

.mt-24 {
  margin-top: 24px;
}

.gap-12 {
  gap: 12px;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.flex-1 {
  flex: 1;
}

/* Loading spinner */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---- PASSWORD TOGGLE ---- */
.pass-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.pass-wrap input {
  padding-right: 48px !important;
}

.pass-toggle {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1.1rem;
  padding: 4px;
  line-height: 1;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pass-toggle:hover {
  color: var(--text-secondary);
}

/* ---- PHONE WITH COUNTRY CODE ---- */
.phone-wrap {
  display: flex;
  gap: 8px;
  align-items: stretch;
  width: 100%;
}

/* ---- CUSTOM COUNTRY FLAG DROPDOWN (pdd) ---- */
.pdd-wrap {
  position: relative;
  flex-shrink: 0;
}

.pdd-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 100%;
  min-height: 46px;
  padding: 0 10px;
  background: var(--bg-input);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  outline: none;
}

.pdd-btn:hover,
.pdd-btn:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.pdd-flag {
  font-size: 1.2rem;
  line-height: 1;
}

.pdd-code {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.pdd-arrow {
  font-size: 0.6rem;
  color: var(--text-muted);
  margin-left: 2px;
}

/* Dropdown panel */
.pdd-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 500;
  min-width: 240px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px);
  overflow: hidden;
}

.pdd-dropdown.open {
  display: block;
  animation: fadeIn 0.15s ease;
}

.pdd-search-wrap {
  padding: 10px 10px 6px;
  border-bottom: 1px solid var(--border-subtle);
}

.pdd-search {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.85rem;
  padding: 8px 12px;
  outline: none;
  transition: var(--transition);
}

.pdd-search:focus {
  border-color: var(--accent-primary);
}

.pdd-list {
  max-height: 240px;
  overflow-y: auto;
  padding: 4px 0;
}

.pdd-list::-webkit-scrollbar {
  width: 4px;
}

.pdd-list::-webkit-scrollbar-track {
  background: transparent;
}

.pdd-list::-webkit-scrollbar-thumb {
  background: var(--border-card);
  border-radius: 4px;
}

.pdd-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  cursor: pointer;
  transition: background 0.12s;
}

.pdd-option:hover {
  background: rgba(124, 58, 237, 0.12);
}

.pdd-option .pdd-flag {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.pdd-option .pdd-code {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-primary);
  min-width: 40px;
}

.pdd-option .pdd-name {
  font-size: 0.85rem;
  color: var(--text-secondary);
  white-space: nowrap;
}


.phone-number {
  flex: 1;
  min-width: 0;
  background: var(--bg-input);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 14px;
  outline: none;
  transition: var(--transition);
}

.phone-number:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.phone-number::placeholder {
  color: var(--text-muted);
}

/* ---- BLOCKED BADGE ---- */
.badge-blocked {
  background: rgba(244, 63, 94, 0.15);
  color: var(--accent-rose);
  border: 1px solid rgba(244, 63, 94, 0.25);
}

/* ---- ADMIN ACTION BUTTONS ---- */
.action-btns {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: nowrap;
}

.btn-icon {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  padding: 7px 10px;
  font-size: 0.85rem;
  transition: var(--transition);
  line-height: 1;
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
}

.btn-icon.edit:hover {
  border-color: rgba(124, 58, 237, 0.4);
  color: #a78bfa;
}

.btn-icon.block:hover {
  border-color: rgba(245, 158, 11, 0.4);
  color: var(--accent-gold);
}

.btn-icon.del:hover {
  border-color: rgba(244, 63, 94, 0.4);
  color: var(--accent-rose);
}

/* ---- EDIT MODAL WIDE ---- */
.modal-wide {
  max-width: 580px;
}

/* ---- BLOCKED ROW ---- */
.data-table tbody tr.blocked-row td {
  opacity: 0.5;
}

/* ---- BASE FILTER PILLS ---- */
.base-filter-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-card);
  color: var(--text-secondary);
  transition: var(--transition);
}

.base-filter-pill:hover {
  background: rgba(167, 139, 250, 0.1);
  border-color: rgba(167, 139, 250, 0.3);
  color: #a78bfa;
}

.base-filter-pill.active {
  background: linear-gradient(135deg, var(--accent-primary), #5b21b6);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 2px 12px var(--accent-glow);
}

@media (max-width: 768px) {
  .topbar { padding: 0 10px; }
  .nav-btn { padding: 6px 10px; font-size: 0.8rem; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 550px) {
  .topbar { height: auto; padding: 12px 10px; }
  .topbar-inner { flex-wrap: wrap; height: auto; gap: 14px; justify-content: center; }
  .logo { width: 100%; justify-content: center; }
  .nav-links { width: 100%; justify-content: center; flex-wrap: nowrap; gap: 4px; }
  .nav-btn { flex: 1; padding: 8px 4px; font-size: 0.8rem; text-align: center; white-space: nowrap; }
  
  .stat-grid { grid-template-columns: 1fr; gap: 12px; }
  .hero h1 { font-size: 2rem; }
  .prize-box { padding: 24px; }
  .link-box { flex-direction: column; align-items: stretch; }
  .copy-btn { width: 100%; text-align: center; }
}
