/* ===================================================
   TEEBOT SUITE — DASHBOARD CYBER GLASSMORPHISM CSS
   =================================================== */

:root {
  color-scheme: dark;
  --bg-dark: #08090d;
  --bg-sidebar: #0e1017;
  --bg-card: rgba(18, 21, 31, 0.75);
  --bg-card-hover: rgba(28, 33, 48, 0.9);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(124, 58, 237, 0.5);

  --accent-purple: #7c3aed;
  --accent-cyan: #06b6d4;
  --accent-green: #10b981;
  --accent-red: #ef4444;
  --accent-amber: #f59e0b;
  --accent-blue: #3b82f6;

  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dark: #6b7280;

  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-family);
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  overflow-x: hidden;
}

/* Ambient glow */
.ambient-glow {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
}
.glow-purple {
  top: -100px;
  left: 20%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.15), transparent 70%);
}
.glow-cyan {
  bottom: -100px;
  right: 10%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.12), transparent 70%);
}

/* ==================== FULL-SCREEN AUTH WALL OVERLAY ==================== */
.dashboard-auth-wall-overlay,
#dashboard-auth-wall {
  position: fixed;
  inset: 0;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  background: radial-gradient(circle at 50% 35%, rgba(18, 22, 36, 0.95) 0%, rgba(8, 9, 13, 0.99) 100%);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  z-index: 99999;
  overflow-y: auto;
}

.dashboard-auth-wall-overlay.hidden,
#dashboard-auth-wall.hidden {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  z-index: -9999 !important;
}

#dashboard-app-main.active {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.auth-wall-card {
  width: 100% !important;
  max-width: 480px !important;
  padding: 36px 32px !important;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8), 0 0 45px rgba(0, 242, 254, 0.15) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 20px !important;
  background: rgba(18, 20, 30, 0.9) !important;
  backdrop-filter: blur(30px) !important;
  margin: auto !important;
  animation: authFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

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

/* Layout */
.app-container {
  display: flex;
  width: 100vw;
  height: 100vh;
  position: relative;
  z-index: 1;
}

/* Sidebar */
.sidebar {
  width: 280px;
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 16px;
  flex-shrink: 0;
}

.brand-area {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 10px 24px;
  border-bottom: 1px solid var(--border-glass);
  text-decoration: none;
}

.brand-logo {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.4);
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
}
.brand-title span {
  color: var(--accent-cyan);
}

.brand-tag {
  font-size: 0.65rem;
  padding: 2px 6px;
  background: rgba(124, 58, 237, 0.2);
  border: 1px solid rgba(124, 58, 237, 0.4);
  border-radius: 4px;
  color: #c4b5fd;
  text-transform: uppercase;
  font-weight: 700;
  margin-left: 6px;
}

/* Navigation List */
.nav-menu {
  list-style: none;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  color: var(--text-muted);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.nav-item:hover {
  color: var(--text-main);
  background-color: rgba(255, 255, 255, 0.04);
}

.nav-item.active {
  color: #ffffff;
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.25), rgba(6, 182, 212, 0.08));
  border-color: rgba(124, 58, 237, 0.4);
}

.nav-item .icon {
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-badge {
  margin-left: auto;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 12px;
  background: var(--accent-purple);
  color: #fff;
  font-weight: 700;
}

/* Sidebar User Footer */
.sidebar-footer {
  border-top: 1px solid var(--border-glass);
  padding-top: 16px;
}

.user-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
}

.user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--accent-purple);
  object-fit: cover;
}

.user-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.user-name {
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.user-role-badge {
  font-size: 0.7rem;
  color: var(--accent-cyan);
  font-weight: 600;
}

/* Main Content Area */
.main-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

/* Topbar */
.topbar {
  position: relative;
  z-index: 500;
  height: 72px;
  border-bottom: 1px solid var(--border-glass);
  background: rgba(14, 16, 23, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  flex-shrink: 0;
}

.topbar-status {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  box-shadow: 0 0 10px currentColor;
}
.dot-green { background-color: var(--accent-green); color: var(--accent-green); }
.dot-amber { background-color: var(--accent-amber); color: var(--accent-amber); }
.dot-cyan { background-color: var(--accent-cyan); color: var(--accent-cyan); }

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-purple), #9333ea);
  color: #ffffff;
  box-shadow: 0 0 16px rgba(124, 58, 237, 0.35);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 24px rgba(124, 58, 237, 0.55);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-glass);
  color: var(--text-main);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-success {
  background: linear-gradient(135deg, var(--accent-green), #059669);
  color: #fff;
}

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}
.btn-danger:hover {
  background: rgba(239, 68, 68, 0.25);
}

/* Page Content Viewports */
.content-body {
  flex: 1;
  overflow-y: auto;
  padding: 32px;
}

.tab-pane {
  display: none;
  animation: fadeIn 0.25s ease forwards;
}
.tab-pane.active {
  display: block;
}

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

/* Page Header */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.page-title {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.page-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 4px;
}

/* Stat Grid (KPI Cards) */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.kpi-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 22px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}
.kpi-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.15);
}

.kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-cyan));
}

.kpi-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.kpi-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  background: rgba(255, 255, 255, 0.04);
}

.kpi-val {
  font-size: 2.1rem;
  font-weight: 900;
  margin-top: 14px;
  letter-spacing: -1px;
}

.kpi-change {
  font-size: 0.75rem;
  margin-top: 6px;
  color: var(--accent-green);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Glass Tables */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 28px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.panel-title {
  font-size: 1.15rem;
  font-weight: 700;
}

.table-wrapper {
  overflow-x: auto;
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

table.data-table th {
  padding: 12px 16px;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-dark);
  font-weight: 700;
  border-bottom: 1px solid var(--border-glass);
}

table.data-table td {
  padding: 14px 16px;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

table.data-table tr:hover td {
  background-color: rgba(255, 255, 255, 0.02);
}

.tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
}
.tag-open { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.tag-closed { background: rgba(107, 114, 128, 0.2); color: #9ca3af; }
.tag-vip { background: rgba(124, 58, 237, 0.2); color: #c4b5fd; }
.tag-pro { background: rgba(6, 182, 212, 0.2); color: #67e8f9; }

/* Forms & Inputs */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-muted);
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus {
  border-color: var(--accent-purple);
  box-shadow: 0 0 10px rgba(124, 58, 237, 0.25);
}

.form-select, select {
  width: 100%;
  padding: 12px 14px;
  background-color: #121520;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px;
  padding-right: 38px;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 500;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  color-scheme: dark;
  transition: all 0.2s ease;
}

.form-select:focus, select:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.35);
  background-color: #151928;
}

.form-select option, select option {
  background-color: #121520 !important;
  color: #ffffff !important;
  padding: 12px 14px;
  font-size: 0.9rem;
}

.form-select option:hover, select option:hover,
.form-select option:checked, select option:checked {
  background-color: #1f2538 !important;
  color: #00f0ff !important;
}

/* Switch toggle */
.switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(255, 255, 255, 0.1);
  transition: .3s;
  border-radius: 34px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}
input:checked + .slider {
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-cyan));
}
input:checked + .slider:before {
  transform: translateX(22px);
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: #181b24;
  border: 1px solid var(--border-glass);
  border-left: 4px solid var(--accent-purple);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  font-size: 0.85rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from { transform: translateX(50px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal-overlay.open {
  display: flex;
}

.modal-box {
  background: #11141d;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 500px;
  padding: 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  animation: modalScale 0.2s ease;
}

@keyframes modalScale {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ===================================================
   DONATE PREPAID STORE & BADGES
   =================================================== */
.donate-period-selector {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.donate-period-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.donate-period-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}
.donate-period-btn.active {
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 255, 200, 0.3);
}
.period-badge-tag {
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0, 255, 200, 0.2);
  color: var(--accent-cyan);
  font-weight: 800;
}
.donate-period-btn.active .period-badge-tag {
  background: #000;
  color: #00ffc8;
}

.donate-tier-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  transition: all 0.3s;
  cursor: pointer;
}
.donate-tier-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
}
.donate-tier-card.selected {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 25px rgba(0, 255, 200, 0.2);
}
.badge-gold {
  background: rgba(255, 215, 0, 0.2) !important;
  color: #ffd700 !important;
  border: 1px solid rgba(255, 215, 0, 0.4);
}
.badge-platin {
  background: rgba(0, 255, 200, 0.2) !important;
  color: var(--accent-cyan) !important;
  border: 1px solid rgba(0, 255, 200, 0.4);
}

/* Sub-Tab Navigation for Tickets */
.ticket-subtabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 12px;
}
.ticket-subtab-btn {
  background: none;
  border: 1px solid transparent;
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ticket-subtab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}
.ticket-subtab-btn.active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: var(--border-glass);
}

/* Security & Domain Chips */
.security-domain-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 74, 74, 0.15);
  border: 1px solid rgba(255, 74, 74, 0.3);
  color: #ff8080;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  margin: 4px;
}
.security-domain-chip button {
  background: none;
  border: none;
  color: #ff4a4a;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

/* Giveaway Cards */
.giveaway-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 16px;
  transition: all 0.2s;
}
.giveaway-card.ended {
  opacity: 0.7;
  border-color: rgba(255, 255, 255, 0.05);
}

/* Transcript Chat Bubbles */
.transcript-msg {
  margin-bottom: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 12px 16px;
  border-radius: 8px;
}
.transcript-msg .msg-sender {
  font-weight: 800;
  font-size: 0.8rem;
  color: var(--accent-cyan);
  margin-bottom: 4px;
}
.transcript-msg .msg-bubble {
  color: #cbd5e1;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* ===================================================
   LUXURY VIP MEMBERSHIP STYLES & OVERHAUL
   =================================================== */
.vip-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.gold-glow {
  background: linear-gradient(135deg, #ffd700 0%, #ff9900 100%) !important;
  color: #1a1200 !important;
  box-shadow: 0 0 14px rgba(255, 215, 0, 0.45);
  border: 1px solid rgba(255, 240, 150, 0.6);
}

.platin-glow {
  background: linear-gradient(135deg, #00f0ff 0%, #7000ff 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.user-card-gold {
  border: 1px solid rgba(255, 215, 0, 0.4) !important;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.08) 0%, rgba(18, 21, 31, 0.9) 100%) !important;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.15) !important;
}

.user-card-platin {
  border: 1px solid rgba(0, 240, 255, 0.4) !important;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.08) 0%, rgba(18, 21, 31, 0.9) 100%) !important;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.2) !important;
}

/* VIP Hero Banner in tab-donate */
.vip-hero-card {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.12) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(255, 215, 0, 0.35);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 28px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4), 0 0 25px rgba(255, 215, 0, 0.12);
  position: relative;
  overflow: hidden;
}

.vip-hero-card::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.2), transparent 70%);
  pointer-events: none;
}

.vip-hero-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.vip-hero-badge-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.vip-hero-glow-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, #ffd700, #ff8800);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
  flex-shrink: 0;
}

.vip-hero-sub {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #ffd700;
  font-weight: 700;
}

.vip-hero-title {
  font-size: 1.6rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.vip-hero-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.vip-meta-box {
  display: flex;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 16px;
}

.vip-meta-box .meta-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.vip-meta-box .meta-value {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
}

.text-gold { color: #ffd700 !important; }
.text-cyan { color: var(--accent-cyan) !important; }
.text-emerald { color: #10b981 !important; }

.vip-perks-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.vip-perk-item {
  font-size: 0.8rem;
  color: #e2e8f0;
  font-weight: 600;
}

/* Polished Table Styling */
.table-wrapper {
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.data-table th {
  background: rgba(255, 255, 255, 0.03);
  padding: 14px 18px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

.data-table td {
  padding: 16px 18px;
  font-size: 0.88rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

.data-table tbody tr {
  transition: background 0.15s ease;
}

.data-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.04);
}

/* ==========================================================================
   LANGUAGE PICKER DROPDOWN (Dashboard Topbar)
   ========================================================================== */
.lang-picker-wrapper {
  position: relative;
  display: inline-block;
}

.lang-picker-wrapper {
  position: relative;
  z-index: 10000;
}

.lang-picker-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.lang-picker-btn:hover {
  background: rgba(0, 240, 255, 0.1);
  border-color: rgba(0, 240, 255, 0.45);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.2);
  transform: translateY(-1px);
}

.current-lang-flag {
  font-size: 1rem;
  line-height: 1;
}

.current-lang-code {
  font-family: monospace;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--accent-cyan);
}

.lang-chevron {
  font-size: 0.72rem;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 230px;
  background: #090c15 !important;
  background-color: #090c15 !important;
  border: 1px solid rgba(0, 240, 255, 0.35) !important;
  border-radius: 12px !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.95), 0 0 24px rgba(0, 240, 255, 0.15) !important;
  padding: 8px !important;
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 999999 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.lang-dropdown.open {
  display: flex !important;
  animation: langDropdownIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes langDropdownIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.lang-dropdown-header {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--accent-cyan);
  padding: 8px 12px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 4px;
}

.lang-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  border-radius: 8px;
  color: #cbd5e1;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  text-align: left;
}

.lang-dropdown-item:hover {
  background: rgba(0, 240, 255, 0.09);
  border-color: rgba(0, 240, 255, 0.3);
  color: #ffffff;
  transform: translateX(3px);
}

.lang-dropdown-item.active {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.18) 0%, rgba(112, 0, 255, 0.14) 100%);
  border-color: var(--accent-cyan);
  color: #00f0ff;
  font-weight: 800;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.2);
}

.lang-badge-pill {
  font-size: 0.72rem;
  font-weight: 800;
  font-family: monospace;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-right: 10px;
}

.lang-dropdown-item.active .lang-badge-pill {
  background: rgba(0, 240, 255, 0.2);
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

.lang-title {
  flex: 1;
}

.lang-check {
  font-size: 0.85rem;
  color: var(--accent-cyan);
  display: none;
}

.lang-dropdown-item.active .lang-check {
  display: inline-block;
}

/* ==========================================================================
   ACCOUNT DASHBOARD & DISCORD LINKING STYLES
   ========================================================================== */
.account-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}

.discord-hero-card {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.15) 0%, rgba(124, 58, 237, 0.1) 100%);
  border: 1px solid rgba(88, 101, 242, 0.4);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.discord-hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.discord-user-badge {
  display: flex;
  align-items: center;
  gap: 16px;
}

.discord-avatar-large {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid #5865F2;
  box-shadow: 0 0 20px rgba(88, 101, 242, 0.4);
  object-fit: cover;
}

.discord-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.discord-status-pill.connected {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.discord-status-pill.disconnected {
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.account-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.account-info-label {
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
}

.account-info-val {
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
}

@media (max-width: 900px) {
  .account-grid {
    grid-template-columns: 1fr;
  }
}

/* ==================== RTL (Right-to-Left) Arabic Support ==================== */
html[dir="rtl"],
body.rtl-layout {
  direction: rtl;
  text-align: right;
  font-family: 'Cairo', 'Inter', 'Segoe UI', Tahoma, Arial, sans-serif;
}

html[dir="rtl"] .sidebar {
  border-right: none;
  border-left: 1px solid var(--border-glass);
}

html[dir="rtl"] .brand-area img {
  margin-right: 0;
  margin-left: 12px;
}

html[dir="rtl"] .nav-item .icon {
  margin-right: 0;
  margin-left: 10px;
}

html[dir="rtl"] .nav-item .nav-badge {
  margin-left: 0;
  margin-right: auto;
}

html[dir="rtl"] .topbar {
  flex-direction: row-reverse;
}

html[dir="rtl"] .topbar-actions {
  margin-left: 0;
  margin-right: auto;
}

html[dir="rtl"] .status-dot {
  margin-right: 0;
  margin-left: 8px;
}

html[dir="rtl"] .data-table th,
html[dir="rtl"] .data-table td {
  text-align: right;
}

html[dir="rtl"] .data-table th:last-child,
html[dir="rtl"] .data-table td:last-child {
  text-align: left;
}

html[dir="rtl"] .modal-head,
html[dir="rtl"] .modal-header {
  flex-direction: row-reverse;
}

html[dir="rtl"] .lang-dropdown {
  left: 0;
  right: auto;
}

html[dir="rtl"] .kpi-head {
  flex-direction: row-reverse;
}

html[dir="rtl"] .panel-header {
  flex-direction: row;
}

html[dir="rtl"] .form-input,
html[dir="rtl"] .form-select,
html[dir="rtl"] textarea.form-input {
  text-align: right;
  direction: rtl;
}

html[dir="rtl"] .form-input[type="url"],
html[dir="rtl"] .form-input[type="password"],
html[dir="rtl"] .form-input[type="email"],
html[dir="rtl"] .form-input[type="number"],
html[dir="rtl"] code {
  direction: ltr;
  text-align: left;
}

html[dir="rtl"] .lang-dropdown-item {
  text-align: right;
  flex-direction: row-reverse;
}

html[dir="rtl"] .lang-dropdown-item .lang-flag {
  margin-right: 0;
  margin-left: 8px;
}

html[dir="rtl"] .sidebar-section-title {
  text-align: right;
}

html[dir="rtl"] .metric-card {
  text-align: right;
}

html[dir="rtl"] .btn {
  flex-direction: row-reverse;
}

/* ==================== Enterprise Guild Switcher ==================== */
.guild-select-item {
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-glass);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  user-select: none;
}

.guild-select-item:hover {
  background: rgba(0, 240, 255, 0.08);
  border-color: rgba(0, 240, 255, 0.4);
  transform: translateY(-1px);
}

.guild-select-item.active {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.16) 0%, rgba(112, 0, 255, 0.12) 100%) !important;
  border-color: var(--accent-cyan) !important;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.25), inset 0 0 10px rgba(0, 240, 255, 0.08) !important;
}

.guild-select-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--border-glass);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
}

.guild-select-item.active .guild-select-icon {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.45);
}

.guild-select-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.guild-select-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.guild-select-tier {
  font-size: 0.7rem;
  color: var(--accent-cyan);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

/* Smooth table hover & card glow enhancements */
.data-table tbody tr {
  transition: background-color 0.15s ease;
}

.data-table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.035);
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

/* ===================================================
   TOPLIST BOOSTER & CAMPAIGNS — ENTERPRISE STYLING
   =================================================== */

/* KPI Stat Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.03) 0%, rgba(18, 21, 31, 0.85) 100%);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

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

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

.stat-value {
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 4px;
}

/* ==================== TOPLIST FILTER PILLS (Segmented Control) ==================== */
.toplist-filter-pills {
  display: inline-flex;
  align-items: center;
  background: rgba(13, 16, 26, 0.9);
  padding: 4px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4);
  gap: 4px;
}

.toplist-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 7px 16px;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  font-family: inherit;
}

.toplist-filter-pill:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.toplist-filter-pill.active {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.16), rgba(124, 58, 237, 0.24));
  color: #fff;
  border-color: rgba(0, 240, 255, 0.4);
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.22);
}

.toplist-filter-pill .count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  font-size: 0.74rem;
  font-weight: 700;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  min-width: 22px;
  height: 20px;
  transition: all 0.2s ease;
}

.toplist-filter-pill.active .count-badge {
  background: rgba(0, 240, 255, 0.35);
  color: #00f0ff;
}

/* Specific styling for Cancelled / Deleted pill */
#tab-btn-cancelled.active {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.45);
  color: #fca5a5;
  box-shadow: 0 0 18px rgba(239, 68, 68, 0.22);
}

#tab-btn-cancelled.active .count-badge-deleted {
  background: rgba(239, 68, 68, 0.4);
  color: #fff;
}

.toplist-filter-pill .count-badge-deleted {
  background: rgba(239, 68, 68, 0.16);
  color: #f87171;
}

/* Specific styling for Done / Completed pill */
#tab-btn-completed.active {
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(16, 185, 129, 0.45);
  color: #6ee7b7;
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.22);
}

#tab-btn-completed.active .count-badge-done {
  background: rgba(16, 185, 129, 0.4);
  color: #fff;
}

.toplist-filter-pill .count-badge-done {
  background: rgba(16, 185, 129, 0.16);
  color: #34d399;
}

/* Category Filter Pills */
.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(18, 22, 36, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  font-family: inherit;
}

.category-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.category-pill.active {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(124, 58, 237, 0.25));
  border-color: rgba(0, 240, 255, 0.5);
  color: #fff;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.25);
}

/* Custom Range Slider */
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  outline: none;
  transition: background 0.2s ease;
}

input[type="range"]:hover {
  background: rgba(255, 255, 255, 0.2);
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #00f0ff;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.7);
  border: 2px solid #fff;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.9);
}

input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #00f0ff;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.7);
  border: 2px solid #fff;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* Toplist Site Directory Card */
.toplist-site-card {
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(18, 22, 38, 0.65);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.toplist-site-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 240, 255, 0.35);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 240, 255, 0.15);
}

/* Feature Item Row */
.toplist-feat-item {
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
  align-items: flex-start;
}

.toplist-feat-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

/* VIP Perk Box */
.toplist-vip-perk-box {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: radial-gradient(circle at 10% 10%, rgba(255, 215, 0, 0.1) 0%, rgba(124, 58, 237, 0.15) 100%);
  border: 1px solid rgba(255, 215, 0, 0.35);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.08);
}

/* Action button inside tables */
.btn-action-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-action-icon:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.btn-action-icon.btn-action-edit:hover {
  background: rgba(0, 240, 255, 0.18);
  border-color: rgba(0, 240, 255, 0.45);
  color: #00f0ff;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.btn-action-icon.btn-action-delete:hover {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.45);
  color: #f87171;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}
