/* ===== FOREVER GOLD CAPITAL — BLACK & GOLD THEME ===== */

:root {
  --gold: #c9a84c;
  --gold-light: #f0c040;
  --gold-dark: #a07828;
  --black: #0a0a0a;
  --dark: #111111;
  --darker: #0d0d0d;
  --card-bg: #161616;
  --card-border: #2a2a2a;
  --text: #e8e8e8;
  --text-muted: #888;
  --danger: #e74c3c;
  --success: #27ae60;
  --warning: #f39c12;
  --info: #2980b9;
}

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

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--black);
  color: var(--text);
  line-height: 1.6;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-light); }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--darker); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 3px; }

/* ===== NAVBAR ===== */
.navbar {
  background: rgba(10,10,10,0.97);
  border-bottom: 1px solid var(--gold-dark);
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  backdrop-filter: blur(10px);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar-brand img { height: 42px; }
.navbar-brand span {
  font-size: 1.4rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.navbar-nav a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
  letter-spacing: 0.3px;
}

.navbar-nav a:hover { color: var(--gold); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--black) !important;
  font-weight: 700 !important;
  padding: 8px 24px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  transition: all 0.3s;
  display: inline-block;
}

.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  box-shadow: 0 4px 20px rgba(201,168,76,0.4);
  transform: translateY(-1px);
}

.btn-outline-gold {
  border: 1px solid var(--gold);
  color: var(--gold) !important;
  padding: 7px 22px;
  border-radius: 6px;
  background: transparent;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-block;
}

.btn-outline-gold:hover {
  background: var(--gold);
  color: var(--black) !important;
}

.btn-danger {
  background: var(--danger);
  color: #fff !important;
  padding: 7px 18px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
}

.btn-success {
  background: var(--success);
  color: #fff !important;
  padding: 7px 18px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
}

/* ===== HERO ===== */
.hero {
  min-height: 90vh;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1500 50%, #0a0a0a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(201,168,76,0.08) 0%, transparent 60%);
  animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 1; }
}

.hero-content { position: relative; z-index: 1; max-width: 800px; }

.hero-badge {
  display: inline-block;
  background: rgba(201,168,76,0.15);
  border: 1px solid var(--gold-dark);
  color: var(--gold);
  padding: 6px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero h1 .gold { color: var(--gold); }

.hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--card-bg);
  border-top: 1px solid var(--gold-dark);
  border-bottom: 1px solid var(--gold-dark);
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
}

.stat-item { text-align: center; }
.stat-item .num {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
  display: block;
}
.stat-item .lbl {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== SECTION ===== */
.section { padding: 5rem 2rem; }
.section-alt { background: var(--darker); }

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.section-header .gold-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold));
  margin: 0 auto 1rem;
  border-radius: 2px;
}

.section-header p { color: var(--text-muted); max-width: 550px; margin: 0 auto; }

/* ===== CARDS ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s;
}

.card:hover {
  border-color: var(--gold-dark);
  box-shadow: 0 8px 40px rgba(201,168,76,0.12);
  transform: translateY(-4px);
}

.card-gold {
  background: linear-gradient(135deg, #1a1500, #0d0d0d);
  border-color: var(--gold-dark);
}

.card-icon {
  width: 56px;
  height: 56px;
  background: rgba(201,168,76,0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: var(--gold-light);
}

.card p { color: var(--text-muted); font-size: 0.9rem; }

/* ===== PACKAGE CARDS ===== */
.pkg-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  transition: all 0.3s;
}

.pkg-card.featured {
  border-color: var(--gold);
  box-shadow: 0 0 40px rgba(201,168,76,0.2);
}

.pkg-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--black);
  padding: 3px 16px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.pkg-card h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }

.pkg-price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gold);
  margin: 1rem 0;
}

.pkg-price span { font-size: 1rem; color: var(--text-muted); }

.pkg-features { list-style: none; margin: 1.5rem 0 2rem; text-align: left; }
.pkg-features li {
  padding: 6px 0;
  border-bottom: 1px solid var(--card-border);
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pkg-features li::before {
  content: '✦';
  color: var(--gold);
  font-size: 0.7rem;
}

/* ===== FORM STYLES ===== */
.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.form-control {
  width: 100%;
  background: #1a1a1a;
  border: 1px solid #2e2e2e;
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-control:focus {
  border-color: var(--gold-dark);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.12);
}

.form-control::placeholder { color: #444; }

.form-select {
  width: 100%;
  background: #1a1a1a;
  border: 1px solid #2e2e2e;
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
  cursor: pointer;
}

.form-select:focus { border-color: var(--gold-dark); }

/* ===== AUTH PAGE ===== */
.auth-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #0a0a0a 0%, #0f0e00 50%, #0a0a0a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.auth-card {
  background: var(--card-bg);
  border: 1px solid var(--gold-dark);
  border-radius: 16px;
  padding: 2.5rem;
  width: 100%;
  max-width: 460px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.auth-logo {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-logo img { height: 50px; margin-bottom: 0.75rem; }
.auth-logo h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
}
.auth-logo p { color: var(--text-muted); font-size: 0.9rem; }

.divider {
  height: 1px;
  background: var(--card-border);
  margin: 1.5rem 0;
}

/* ===== ALERTS ===== */
.alert {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
}

.alert-danger { background: rgba(231,76,60,0.15); border: 1px solid rgba(231,76,60,0.3); color: #ff6b6b; }
.alert-success { background: rgba(39,174,96,0.15); border: 1px solid rgba(39,174,96,0.3); color: #55efc4; }
.alert-warning { background: rgba(243,156,18,0.15); border: 1px solid rgba(243,156,18,0.3); color: #f39c12; }
.alert-info { background: rgba(41,128,185,0.15); border: 1px solid rgba(41,128,185,0.3); color: #74b9ff; }

/* ===== USER/ADMIN PANEL LAYOUT ===== */
.panel-layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 260px;
  min-height: 100vh;
  background: var(--darker);
  border-right: 1px solid #1e1e1e;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transition: transform 0.3s;
}

.sidebar-logo {
  padding: 1.5rem;
  border-bottom: 1px solid #1e1e1e;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-logo img { height: 36px; }
.sidebar-logo span {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.2;
}

.sidebar-user {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #1e1e1e;
  background: rgba(201,168,76,0.05);
}

.sidebar-user .name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--gold-light);
}
.sidebar-user .uid {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.sidebar-nav { flex: 1; padding: 0.5rem 0 1rem; }

/* Collapsible nav groups */
.nav-group { border-bottom: 1px solid #1a1a1a; }

.nav-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 1.5rem;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  user-select: none;
  transition: color 0.2s, background 0.2s;
}

.nav-group-header:hover { color: var(--gold-dark); background: rgba(201,168,76,0.04); }
.nav-group.open .nav-group-header { color: var(--gold); }

.nav-chevron {
  font-size: 0.85rem;
  transition: transform 0.3s;
  display: inline-block;
}
.nav-group.open .nav-chevron { transform: rotate(180deg); }

.nav-group-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.nav-group.open .nav-group-body { max-height: 600px; }

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 1.5rem 9px 2rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  color: var(--gold);
  background: rgba(201,168,76,0.07);
  border-left-color: var(--gold);
}

.sidebar-nav a .ico { font-size: 1rem; width: 20px; text-align: center; }

.panel-main {
  margin-left: 260px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.topbar {
  background: var(--darker);
  border-bottom: 1px solid #1e1e1e;
  padding: 0 2rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 90;
}

.topbar-title { font-size: 1.1rem; font-weight: 600; color: var(--text); }

.topbar-actions { display: flex; align-items: center; gap: 1rem; }

.topbar-actions .balance {
  background: rgba(201,168,76,0.1);
  border: 1px solid var(--gold-dark);
  color: var(--gold);
  padding: 5px 14px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
}

.panel-content { padding: 2rem; flex: 1; }

/* ===== DASHBOARD STATS ===== */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold));
}

.stat-card .s-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 0.5rem;
}

.stat-card .s-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold);
}

.stat-card .s-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ===== TABLE ===== */
.table-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  overflow: hidden;
}

.table-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.table-header h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold-light);
}

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

table { width: 100%; border-collapse: collapse; }

thead tr { background: #1a1a1a; }

th {
  padding: 10px 16px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--gold-dark);
  text-align: left;
  white-space: nowrap;
}

td {
  padding: 12px 16px;
  border-bottom: 1px solid #1c1c1c;
  font-size: 0.88rem;
  color: var(--text-muted);
  white-space: nowrap;
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: #141414; }

.badge {
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-success { background: rgba(39,174,96,0.2); color: #2ecc71; }
.badge-danger  { background: rgba(231,76,60,0.2);  color: #e74c3c; }
.badge-warning { background: rgba(243,156,18,0.2); color: #f39c12; }
.badge-info    { background: rgba(41,128,185,0.2); color: #3498db; }
.badge-gold    { background: rgba(201,168,76,0.2); color: var(--gold); }

/* ===== FOOTER ===== */
footer {
  background: var(--darker);
  border-top: 1px solid var(--gold-dark);
  padding: 3rem 2rem 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto 2rem;
}

.footer-brand img { height: 40px; margin-bottom: 1rem; }
.footer-brand p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.7; }

.footer-col h4 {
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a { color: var(--text-muted); font-size: 0.88rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid #1e1e1e;
  padding-top: 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== SIDEBAR OVERLAY (mobile) ===== */
#sidebarOverlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 99;
  cursor: pointer;
}
#sidebarOverlay.active { display: block; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .panel-main { margin-left: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .navbar-nav { display: none; }
  .stats-bar { gap: 2rem; }
}

/* ===== UTILITIES ===== */
.text-gold { color: var(--gold); }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.fw-bold { font-weight: 700; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.p-3 { padding: 1.5rem; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.w-100 { width: 100%; }
.text-center { text-align: center; }
.small { font-size: 0.82rem; }

/* ===== LOADER DOTS (2FA waiting) ===== */
.spinner {
  display: inline-block;
  width: 22px;
  height: 22px;
  border: 3px solid rgba(201,168,76,0.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ===== PROGRESS BAR ===== */
.progress-bar {
  background: #1e1e1e;
  border-radius: 50px;
  height: 8px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold));
  border-radius: 50px;
  transition: width 0.5s;
}

/* ===== OTP BOX ===== */
.otp-inputs { display: flex; gap: 10px; justify-content: center; margin: 1.5rem 0; }
.otp-inputs input {
  width: 50px;
  height: 56px;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 10px;
  color: var(--gold);
  outline: none;
  transition: border-color 0.2s;
}

.otp-inputs input:focus { border-color: var(--gold); }

/* ===== HAMBURGER ===== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: all 0.3s;
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
}
