/* ============================================================================
   AOV VN ENTERPRISE WEB PLATFORM V3.0 — CYBER-GOLD 3D GLASSMORPHISM SYSTEM
   (Generated & Verified via ui-design-system & popup-cro skills)
   ============================================================================ */
:root {
  --bg-body: #070a12;
  --bg-surface: rgba(15, 21, 36, 0.84);
  --bg-elevated: rgba(23, 31, 52, 0.92);
  --bg-input: rgba(9, 13, 24, 0.92);
  --border-subtle: rgba(51, 65, 104, 0.55);
  --border-gold: #c9a45c;
  --gold-main: #e6c687;
  --gold-bright: #ffe29e;
  --periwinkle: #5261b1;
  --periwinkle-bright: #7587eb;
  --cyber-cyan: #38bdf8;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --success: #22c55e;
  --danger: #ef4444;
  --warning: #f59e0b;
  --radius-sm: 7px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-card: 0 16px 40px rgba(0, 0, 0, 0.55);
  --shadow-gold: 0 0 24px rgba(201, 164, 92, 0.22);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: radial-gradient(ellipse at 50% 0%, #16203b 0%, #090d18 55%, var(--bg-body) 100%);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 3D INTERACTIVE CANVAS BACKDROP */
#aov-3d-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

.navbar,
.main-container {
  position: relative;
  z-index: 2;
}

/* NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 16, 29, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  border-top: 2px solid var(--border-gold);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
}

.navbar-inner {
  max-width: 1480px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.brand-block {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 18px;
  font-weight: 900;
  background: linear-gradient(90deg, #ffe5a3 0%, #c9a45c 55%, #7587eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  text-decoration: none;
}

.brand-subtitle {
  font-size: 11.5px;
  color: var(--text-secondary);
  letter-spacing: 0.3px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.nav-link {
  padding: 8px 13px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border: 1px solid transparent;
  transition: all 0.18s ease;
  cursor: pointer;
  background: rgba(23, 31, 52, 0.45);
}

.nav-link:hover {
  color: var(--gold-bright);
  border-color: rgba(201, 164, 92, 0.5);
  background: var(--bg-elevated);
  transform: translateY(-1px);
}

.nav-link.active {
  color: #090c14;
  background: linear-gradient(135deg, #e6c687 0%, #b88f3d 100%);
  border-color: var(--gold-bright);
  box-shadow: var(--shadow-gold);
}

.wallet-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.45);
  color: #4ade80;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

/* LAYOUT CONTAINER */
.main-container {
  max-width: 1480px;
  margin: 0 auto;
  padding: 22px 24px 80px;
}

/* TELEMETRY KPI GRID */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.kpi-card {
  background: var(--bg-surface);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 15px 18px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.kpi-card:hover {
  transform: translateY(-2px);
  border-color: rgba(201, 164, 92, 0.55);
}

.kpi-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.kpi-value {
  font-size: 16px;
  font-weight: 800;
  margin-top: 6px;
  color: var(--text-primary);
}

.kpi-value.gold { color: var(--gold-bright); }
.kpi-value.green { color: var(--success); }
.kpi-value.red { color: var(--danger); }
.kpi-value.cyan { color: var(--cyber-cyan); }

/* WORKSPACE GRID */
.workspace-grid {
  display: grid;
  grid-template-columns: 440px 1fr;
  gap: 22px;
}

.two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

@media (max-width: 1080px) {
  .workspace-grid,
  .two-col-grid {
    grid-template-columns: 1fr;
  }
}

/* CARDS */
.card {
  background: var(--bg-surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
}

.card-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.card-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--gold-main);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

/* VIP SHOP PRICING GRID */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 16px;
  margin-top: 12px;
}

.plan-card {
  background: linear-gradient(180deg, rgba(23, 31, 54, 0.92) 0%, rgba(11, 15, 28, 0.95) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.22s ease;
  position: relative;
  overflow: hidden;
}

.plan-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-gold);
}

.plan-card.vip3 {
  border-color: rgba(201, 164, 92, 0.75);
  background: linear-gradient(180deg, rgba(44, 35, 19, 0.88) 0%, rgba(13, 17, 31, 0.95) 100%);
}

.plan-name {
  font-size: 14px;
  font-weight: 900;
  color: var(--gold-bright);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.plan-price {
  font-size: 24px;
  font-weight: 900;
  color: #4ade80;
  margin: 10px 0 12px;
}

.plan-features {
  list-style: none;
  margin-bottom: 16px;
  font-size: 12.5px;
  color: var(--text-secondary);
}

.plan-features li {
  padding: 4px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
}

.plan-features li::before {
  content: "✦ ";
  color: var(--gold-main);
  font-weight: bold;
}

/* VIETQR BOX */
.vietqr-box {
  background: rgba(9, 13, 24, 0.9);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
}

.vietqr-box img {
  max-width: 230px;
  width: 100%;
  border-radius: 8px;
  border: 3px solid #ffffff;
  margin: 10px auto;
  display: block;
}

/* HALL OF FAME PODIUM */
.hof-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
}

.hof-item.rank-1 {
  border-color: #fbbf24;
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.14) 0%, rgba(9, 13, 24, 0.92) 100%);
}

.hof-item.rank-2 {
  border-color: #38bdf8;
}

.hof-item.rank-3 {
  border-color: #a78bfa;
}

.hof-rank {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 13px;
  background: var(--bg-elevated);
  color: var(--gold-bright);
  border: 1px solid var(--border-gold);
  flex-shrink: 0;
}

/* BADGES */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 5px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-input);
  color: var(--text-secondary);
}

.badge-admin {
  background: rgba(201, 164, 92, 0.22);
  color: var(--gold-bright);
  border-color: var(--border-gold);
}

.badge-vip {
  background: rgba(82, 97, 177, 0.3);
  color: #c7d2fe;
  border-color: var(--periwinkle-bright);
}

.badge-live {
  background: rgba(34, 197, 94, 0.16);
  color: #4ade80;
  border-color: rgba(34, 197, 94, 0.45);
}

.badge-fail {
  background: rgba(239, 68, 68, 0.16);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.45);
}

/* FORMS & INPUTS */
.form-group {
  margin-bottom: 14px;
}

label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 6px;
}

textarea,
input[type="text"],
input[type="password"],
input[type="number"],
select {
  width: 100%;
  background: var(--bg-input);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 13px;
  font-family: "Consolas", "Monaco", monospace;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

textarea:focus,
input:focus,
select:focus {
  border-color: var(--border-gold);
  box-shadow: 0 0 0 2px rgba(201, 164, 92, 0.16);
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  font-size: 12px;
  font-weight: 800;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  color: var(--text-primary);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  text-decoration: none;
  transition: all 0.16s ease;
}

.btn:hover {
  border-color: var(--border-gold);
  color: var(--gold-bright);
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-gold {
  background: linear-gradient(135deg, #e0bd74 0%, #a57e34 100%);
  color: #090c14;
  border-color: var(--gold-bright);
}

.btn-gold:hover {
  background: linear-gradient(135deg, #f0cf88 0%, #b88f40 100%);
  color: #090c14;
  box-shadow: var(--shadow-gold);
}

.btn-periwinkle {
  background: linear-gradient(135deg, #5c6ec7 0%, #3d4a94 100%);
  color: #ffffff;
  border-color: var(--periwinkle-bright);
}

.btn-periwinkle:hover {
  background: linear-gradient(135deg, #6e81df 0%, #4b5ab0 100%);
  color: #ffffff;
}

.btn-danger {
  background: rgba(239, 68, 68, 0.16);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.45);
}

.btn-sm {
  padding: 6px 11px;
  font-size: 11px;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* QUICK SWITCH PILLS */
.switch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.switch-pill {
  padding: 10px;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-input);
  color: var(--text-secondary);
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.15s;
}

.switch-pill.active {
  background: rgba(201, 164, 92, 0.18);
  color: var(--gold-bright);
  border-color: var(--border-gold);
}

/* RESULT CARDS */
.result-card {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 16px;
}

.result-card.live {
  border-left: 4px solid var(--success);
}

.result-card.fail {
  border-left: 4px solid var(--danger);
}

.one-line-code {
  background: #05070e;
  border: 1px solid #1c243a;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-family: "Consolas", "Monaco", monospace;
  font-size: 13px;
  color: #e2e8f0;
  word-break: break-all;
  margin-bottom: 12px;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.media-box {
  background: #05070e;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px;
  text-align: center;
}

.media-box img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  cursor: zoom-in;
  display: block;
  margin: 8px auto;
}

.media-title {
  font-size: 11px;
  font-weight: 800;
  color: var(--gold-main);
  text-transform: uppercase;
}

/* TABLES */
.table-responsive {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th, td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

th {
  background: var(--bg-input);
  color: var(--gold-main);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* ALERTS & BANNERS */
.banner-info {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: rgba(82, 97, 177, 0.22);
  border: 1px solid var(--periwinkle-bright);
  color: var(--gold-bright);
  font-weight: 700;
  margin-bottom: 14px;
  display: none;
}

.banner-error {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid var(--danger);
  color: #fca5a5;
  font-weight: 700;
  margin-bottom: 14px;
  display: none;
}

/* VIEWS / TABS */
.view-section {
  display: none;
}

.view-section.active {
  display: block;
  animation: fadeInView 0.22s ease;
}

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

/* FLOATING QUICK-ACTION DOCK (IB TELE, NẠP THẺ, BÁO LỖI) */
.floating-dock {
  position: fixed;
  right: 20px;
  bottom: 80px;
  z-index: 950;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dock-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.55);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  border: 1px solid var(--border-gold);
}

.dock-btn:hover {
  transform: translateX(-4px) scale(1.03);
}

.dock-btn.tele {
  background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
  color: #ffffff;
  border-color: #7dd3fc;
}

.dock-btn.topup {
  background: linear-gradient(135deg, #e0bd74 0%, #a57e34 100%);
  color: #090c14;
}

.dock-btn.bug {
  background: rgba(23, 31, 52, 0.95);
  color: var(--gold-bright);
}

/* POPUP ANNOUNCEMENT MODAL (CHUẨN POPUP-CRO) */
.popup-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 15, 0.82);
  backdrop-filter: blur(8px);
  z-index: 9800;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.popup-backdrop.open {
  display: flex;
}

.popup-modal {
  max-width: 560px;
  width: 100%;
  background: linear-gradient(180deg, #161f38 0%, #0d1222 100%);
  border: 2px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.75), var(--shadow-gold);
  position: relative;
}

.popup-badge {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(201, 164, 92, 0.2);
  border: 1px solid var(--border-gold);
  border-radius: 99px;
  font-size: 11px;
  font-weight: 800;
  color: var(--gold-bright);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.popup-title {
  font-size: 18px;
  font-weight: 900;
  color: var(--gold-bright);
  margin-bottom: 12px;
  line-height: 1.35;
}

.popup-body {
  font-size: 13.5px;
  color: var(--text-primary);
  white-space: pre-line;
  background: rgba(8, 12, 22, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 18px;
  line-height: 1.65;
}

/* LIGHTBOX */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox-overlay.open {
  display: flex;
}

.lightbox-overlay img {
  max-width: 96vw;
  max-height: 92vh;
  border: 2px solid var(--border-gold);
  border-radius: var(--radius-sm);
}

.lightbox-close-btn {
  position: fixed;
  top: 20px;
  right: 28px;
  padding: 8px 16px;
  background: var(--bg-surface);
  color: var(--gold-bright);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  font-weight: 800;
  cursor: pointer;
}

/* TOAST */
.toast-box {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9990;
  background: var(--bg-elevated);
  color: var(--gold-bright);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--shadow-card);
  display: none;
}
