/* =========================================================
   HSO SUITE 2026 — CYBER NEON GLASS DESIGN SYSTEM
   Modern, Intelligent, Ultra-sleek Theme for KnightOnline v403
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&family=Outfit:wght@500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: 'Outfit', var(--font-main);
  --font-mono: 'JetBrains Mono', Consolas, Monaco, monospace;

  /* Color Palette - 2026 Obsidian & Electric Cyan */
  --auth-bg: #0A0D14;
  --auth-bg-subtle: #0f1422;
  --auth-panel: rgba(16, 22, 36, 0.78);
  --auth-panel-solid: #101624;
  --auth-panel-hover: rgba(22, 30, 48, 0.85);
  --auth-panel-card: rgba(16, 22, 36, 0.82);
  
  /* Accents */
  --auth-accent: #f59e0b;
  --auth-accent-light: #fbbf24;
  --auth-accent2: #06b6d4;
  --auth-accent-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --auth-accent-glow: rgba(245, 158, 11, 0.35);
  --auth-gold: #fbbf24;
  --auth-gold-gradient: linear-gradient(135deg, #fbbf24 0%, #ca8a04 100%);
  
  --auth-purple: #8b5cf6;
  --auth-purple-gradient: linear-gradient(135deg, #a855f7 0%, #6366f1 100%);
  
  /* Text */
  --auth-text: #f8fafc;
  --auth-text-dim: #cbd5e1;
  --auth-muted: #94a3b8;
  
  /* Borders */
  --auth-border: rgba(255, 255, 255, 0.08);
  --auth-border-glow: rgba(6, 182, 212, 0.35);
  
  /* Statuses */
  --auth-danger: #f43f5e;
  --auth-danger-bg: rgba(244, 63, 94, 0.12);
  --auth-warning: #f59e0b;
  --auth-warning-bg: rgba(245, 158, 11, 0.12);
  --auth-success: #10b981;
  --auth-success-bg: rgba(16, 185, 129, 0.12);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: #0A0D14;
}
::-webkit-scrollbar-thumb {
  background: #1e2638;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--auth-accent);
}

/* Base Body Enhancements */
body {
  font-family: var(--font-main) !important;
  background-color: #0A0D14 !important;
  background-image: 
    radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.12) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(6, 182, 212, 0.08) 0px, transparent 50%) !important;
  background-size: 24px 24px, 100% 100%, 100% 100% !important;
  background-attachment: fixed !important;
  color: var(--auth-text) !important;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .brand-badge {
  font-family: var(--font-heading);
}

/* =========================================================
   STICKY GLASS NAVBAR (2026 SAAS GAMING PORTAL)
   ========================================================= */
.sticky-glass-navbar {
  position: sticky;
  top: 12px;
  z-index: 1000;
  background: rgba(16, 22, 36, 0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 10px 20px;
  margin-bottom: 24px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.25s ease;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  transition: transform 0.2s ease;
}

.nav-brand:hover {
  transform: translateY(-1px);
}

.brand-shield-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--auth-accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 0 18px var(--auth-accent-glow);
}

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

.brand-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, #ffffff 40%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.brand-subtitle {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--auth-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #94a3b8;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.nav-link.active {
  color: #fff;
  background: var(--auth-accent-glow, rgba(245, 158, 11, 0.16));
  border-color: var(--auth-accent, #f59e0b);
  box-shadow: 0 0 14px var(--auth-accent-glow, rgba(245, 158, 11, 0.2));
}

.nav-link.admin {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.25);
}

.nav-user-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Floating Action Button Support */
.fab-support {
  appearance: none;
  font-family: inherit;
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  background: var(--auth-accent-gradient);
  color: #fff;
  padding: 12px 20px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  box-shadow: 0 8px 24px var(--auth-accent-glow);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  font-weight: 700;
  font-size: 0.88rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.fab-support:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.92);
  outline-offset: 3px;
}

.fab-support:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 30px rgba(6, 182, 212, 0.5);
}

/* Bento Card Style */
.bento-card {
  background: rgba(16, 22, 36, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.user-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: var(--auth-panel);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--auth-border);
  border-radius: 16px;
  padding: 10px 18px;
  margin-bottom: 16px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: all .25s ease;
  position: relative;
  overflow: hidden;
}

.user-top-bar::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 20px;
  right: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--auth-accent-glow, rgba(245, 158, 11, 0.4)), transparent);
}

.user-top-bar .brand-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--auth-text);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: transform .2s ease;
}

.user-top-bar .brand-badge:hover {
  transform: translateY(-1px);
}

.brand-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--auth-accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.15rem;
  box-shadow: 0 0 16px var(--auth-accent-glow);
}

.brand-title-group {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 40%, #c7d2fe 80%, var(--auth-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.brand-tag {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--auth-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--font-mono);
}

.user-top-bar .auth-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* User pill */
.user-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  background: rgba(14, 18, 26, 0.7);
  border: 1px solid var(--auth-border);
  border-radius: 30px;
  font-size: 0.82rem;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.3);
}

.user-avatar-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--auth-success);
  box-shadow: 0 0 10px var(--auth-success);
  position: relative;
}

.user-avatar-dot::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 1px solid var(--auth-success);
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.9); opacity: 0.9; }
  50% { transform: scale(1.8); opacity: 0; }
  100% { transform: scale(0.9); opacity: 0; }
}

.role-tag {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-mono);
}

.role-tag.admin {
  background: var(--auth-danger-bg);
  color: var(--auth-danger);
  border: 1px solid rgba(255, 75, 110, 0.35);
  box-shadow: 0 0 10px rgba(255, 75, 110, 0.2);
}

.role-tag.user {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

/* Buttons */
.btn-auth-sm {
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid var(--auth-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--auth-text);
  text-decoration: none;
  transition: all .2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-main);
}

.btn-auth-sm:hover {
  border-color: var(--auth-accent);
  color: #ffffff;
  background: var(--auth-accent-glow, rgba(245, 158, 11, 0.15));
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.btn-auth-sm.primary {
  background: var(--auth-accent-gradient);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-weight: 700;
  box-shadow: 0 4px 16px var(--auth-accent-glow);
}

.btn-auth-sm.primary:hover {
  opacity: 0.95;
  transform: translateY(-1.5px);
  box-shadow: 0 6px 24px var(--auth-accent-glow);
}

/* Nav Tabs */
.nav-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}

.nav-tab {
  flex: 1;
  text-align: center;
  padding: 13px 16px;
  border-radius: 14px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--auth-muted);
  background: var(--auth-panel);
  backdrop-filter: blur(12px);
  border: 1px solid var(--auth-border);
  transition: all .22s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.nav-tab:hover {
  color: var(--auth-text);
  border-color: rgba(255, 255, 255, 0.16);
  background: var(--auth-panel-hover);
  transform: translateY(-1px);
}

.nav-tab.active {
  color: #ffffff;
  background: var(--auth-accent-gradient);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 700;
  box-shadow: 0 4px 18px var(--auth-accent-glow);
}

.nav-tab.active::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #ffffff;
}

/* =========================================================
   PAGE LOCK WALL (Bắt buộc đăng nhập với giao diện cao cấp)
   ========================================================= */
.page-lock-wall {
  background: var(--auth-panel);
  backdrop-filter: blur(20px);
  border: 1px solid var(--auth-border);
  border-radius: 20px;
  padding: 48px 24px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.page-lock-wall::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--auth-accent-gradient);
  box-shadow: 0 0 16px var(--auth-accent);
}

.page-lock-wall .lock-icon {
  font-size: 3.2rem;
  margin-bottom: 16px;
  display: inline-block;
  filter: drop-shadow(0 0 20px var(--auth-accent-glow, rgba(245, 158, 11, 0.4)));
  animation: float-lock 3s ease-in-out infinite;
}

@keyframes float-lock {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.page-lock-wall h2 {
  font-size: 1.45rem;
  font-weight: 800;
  margin: 0 0 10px;
  color: var(--auth-text);
  letter-spacing: -0.01em;
}

.page-lock-wall p {
  color: var(--auth-muted);
  font-size: 0.92rem;
  max-width: 480px;
  margin: 0 auto 26px;
  line-height: 1.6;
}

.page-lock-wall .btn-group {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* =========================================================
   MODAL DIALOG (ĐĂNG NHẬP / ĐĂNG KÝ) — NEXT-GEN GAMING GLASS
   ========================================================= */
.auth-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 14, 0.82);
  backdrop-filter: blur(24px) saturate(170%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all .28s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.auth-modal {
  background: linear-gradient(165deg, rgba(20, 27, 43, 0.96) 0%, rgba(10, 14, 24, 0.98) 100%);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 26px;
  width: 100%;
  max-width: 485px;
  min-width: 0;
  box-sizing: border-box;
  padding: 34px 30px 28px;
  box-shadow: 
    0 35px 90px -15px rgba(0, 0, 0, 0.92),
    0 0 50px rgba(245, 158, 11, 0.18),
    inset 0 1px 1px rgba(255, 255, 255, 0.16);
  transform: translateY(22px) scale(0.96);
  transition: all .28s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.auth-modal::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #f59e0b, #fbbf24, #10b981, #38bdf8, #f59e0b);
  background-size: 200% 100%;
  animation: modalBeamShift 4s linear infinite;
}

@keyframes modalBeamShift {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

.auth-modal-overlay.open .auth-modal {
  transform: translateY(0) scale(1);
}

.auth-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
}

.auth-modal-close:hover {
  transform: rotate(90deg);
  color: #fff;
  background: rgba(239, 68, 68, 0.3);
  border-color: rgba(239, 68, 68, 0.5);
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.4);
}

.auth-modal-header {
  text-align: center;
  margin-bottom: 22px;
}

.auth-brand-emblem {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  margin: 0 auto 12px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(56, 189, 248, 0.15));
  border: 1.5px solid rgba(245, 158, 11, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.3);
  font-size: 1.8rem;
  position: relative;
}

.auth-brand-kicker {
  font-family: var(--font-mono, monospace);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--auth-accent-light, #fbbf24);
  text-transform: uppercase;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.auth-brand-kicker .kicker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--auth-accent, #f59e0b);
  box-shadow: 0 0 8px var(--auth-accent, #f59e0b);
}

.auth-modal-title {
  font-size: 1.45rem;
  font-weight: 800;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #ffffff 40%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.auth-modal-sub {
  font-size: 0.85rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.45;
}

/* Modal Segmented Switch Tabs */
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: rgba(8, 12, 20, 0.7);
  padding: 5px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 20px;
}

.auth-tab {
  padding: 11px 14px;
  font-size: 0.88rem;
  font-weight: 700;
  background: transparent;
  color: #94a3b8;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all .2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
}

.auth-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.auth-tab.active {
  background: var(--auth-accent-gradient);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 16px var(--auth-accent-glow);
}

/* Modern Form Input Groups with Icons */
.auth-form-group {
  margin-bottom: 16px;
  text-align: left;
}

.auth-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.76rem;
  font-weight: 700;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 7px;
}

.auth-input-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
}

.auth-input-icon {
  position: absolute;
  left: 14px;
  color: #64748b;
  font-size: 1.05rem;
  pointer-events: none;
  transition: color .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.auth-input {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 48px;
  background: rgba(9, 13, 22, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 13px;
  padding: 0 42px 0 44px;
  font-size: 0.94rem;
  color: #f8fafc;
  outline: none;
  transition: all .2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  font-family: inherit;
}

.auth-input:focus {
  background: rgba(13, 19, 32, 0.95);
  border-color: var(--auth-accent, #f59e0b);
  box-shadow: 0 0 0 3px var(--auth-accent-glow, rgba(245, 158, 11, 0.25));
}

.auth-input:focus ~ .auth-input-icon {
  color: var(--auth-accent-light, #fbbf24);
}

.auth-eye-btn {
  position: absolute;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all .2s;
  z-index: 1;
}

.auth-eye-btn:hover {
  color: var(--auth-accent-light, #fbbf24);
  background: var(--auth-accent-glow, rgba(245, 158, 11, 0.12));
}

/* 4-bar Password Strength Indicator */
.auth-pwd-meter {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  margin-top: 8px;
  margin-bottom: 6px;
}

.meter-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  transition: background-color .25s ease, box-shadow .25s ease;
}

.strength-pill {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: #64748b;
  transition: all .2s;
}

.strength-rules {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.rule-chip {
  font-size: 0.71rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: #64748b;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all .2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.rule-chip.valid {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.3);
  font-weight: 700;
}

/* High-Energy Action Button */
.auth-btn-submit {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--auth-accent-gradient);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  margin-top: 12px;
  transition: all .2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
  box-shadow: 0 4px 18px var(--auth-accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.auth-btn-submit:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 6px 24px var(--auth-accent-glow);
  filter: brightness(1.08);
}

.auth-btn-submit:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px var(--auth-accent-glow);
}

.auth-btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.auth-link-text {
  background: transparent;
  border: none;
  color: var(--auth-accent-light, #818cf8);
  font-weight: 800;
  font-size: 0.84rem;
  cursor: pointer;
  padding: 0;
  margin-left: 5px;
  text-decoration: underline;
  transition: color .15s;
}

.auth-link-text:hover {
  color: #38bdf8;
}

.auth-security-notice {
  text-align: center;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.73rem;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* =========================================================
   VIP USER DASHBOARD MODAL (BẢN QUYỀN CỦA TÔI)
   ========================================================= */
.user-dash-modal {
  max-width: 720px !important;
  padding: 26px 28px !important;
}

.vip-profile-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 20, 32, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 20px;
}

.vip-user-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.vip-avatar {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--auth-accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  box-shadow: 0 4px 14px var(--auth-accent-glow);
}

.vip-key-card {
  background: rgba(15, 20, 34, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 18px;
  transition: all .2s;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.vip-key-card:hover {
  border-color: rgba(245, 158, 11, 0.35);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.15);
}

.btn-copy-chip {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all .15s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-copy-chip:hover {
  background: rgba(56, 189, 248, 0.24);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

.btn-eye-chip {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fbbf24;
  padding: 4px 8px;
  line-height: 1;
}

.btn-eye-chip:hover {
  background: rgba(245, 158, 11, 0.25);
  color: #ffffff;
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.btn-eye-chip.active {
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.dash-key-code {
  transition: color .15s ease, opacity .15s ease;
}

.dash-key-code:hover {
  opacity: 0.9;
  text-decoration: underline dotted;
}

/* Stat Grid for User Dashboard Cards */
.dash-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  background: rgba(8, 12, 20, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 12px 14px;
  border-radius: 12px;
  margin-top: 10px;
}
.dash-stat-cell {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.dash-stat-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
}
.dash-stat-value {
  font-size: 0.88rem;
  font-weight: 700;
  color: #f8fafc;
}
.dash-stat-value.text-accent {
  color: #38bdf8;
}
.dash-stat-value.mono-val {
  font-family: var(--font-mono, monospace);
  font-size: 0.84rem;
  color: #e2e8f0;
}
.dash-actions-row {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.dash-action-btn {
  padding: 7px 14px;
  border-radius: 9px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all .15s ease;
  border: 1px solid transparent;
}
.dash-action-btn.primary {
  background: rgba(56, 189, 248, 0.14);
  border-color: rgba(56, 189, 248, 0.35);
  color: #38bdf8;
}
.dash-action-btn.primary:hover {
  background: rgba(56, 189, 248, 0.25);
  color: #ffffff;
  border-color: rgba(56, 189, 248, 0.5);
  transform: translateY(-1px);
}
.dash-action-btn.secondary {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.35);
  color: #fcd34d;
}
.dash-action-btn.secondary:hover {
  background: rgba(245, 158, 11, 0.22);
  color: #ffffff;
  border-color: rgba(245, 158, 11, 0.5);
  transform: translateY(-1px);
}

.dash-guide-card {
  margin-top: 12px;
  background: rgba(245, 158, 11, 0.06);
  border: 1px dashed rgba(245, 158, 11, 0.35);
  border-radius: 12px;
  padding: 12px 14px;
}
.dash-guide-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: #fbbf24;
  margin-bottom: 6px;
}
.dash-guide-step {
  font-size: 0.78rem;
  color: #cbd5e1;
  line-height: 1.5;
  margin-bottom: 4px;
}

/* =========================================================
   TOAST NOTIFICATION (MODERN SLIDE-IN ALERT)
   ========================================================= */
.hso-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0f1422;
  border: 1px solid var(--auth-accent);
  color: var(--auth-text);
  padding: 13px 20px;
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7), 0 0 20px var(--auth-accent-glow);
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 100000;
  transform: translateY(30px) scale(0.95);
  opacity: 0;
  transition: all .25s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.hso-toast.show {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

/* Responsive adjustments across devices */
@media (max-width: 768px) {
  .user-top-bar {
    padding: 10px 14px;
  }
  .nav-tabs {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)) !important;
    gap: 8px !important;
  }
  .nav-tab {
    padding: 10px 12px !important;
    font-size: 0.82rem !important;
    min-width: 0 !important;
  }
}

@media (max-width: 600px) {
  .auth-modal-overlay {
    padding: 12px;
  }
  .auth-modal {
    padding: 24px 16px 20px;
    width: 100%;
    max-width: 485px;
    border-radius: 22px;
  }
  .user-top-bar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    padding: 12px 14px !important;
  }
  .user-top-bar .auth-actions {
    justify-content: flex-end;
    width: 100%;
  }
  .brand-title-group .brand-name {
    font-size: 0.98rem;
  }
  .nav-tabs {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }
  .nav-tab {
    padding: 10px 8px !important;
    font-size: 0.8rem !important;
    min-width: 0 !important;
  }
  .mod-hero-title {
    font-size: 1.4rem !important;
  }
  .hero-title {
    font-size: 1.3rem !important;
  }
  .vip-key-card {
    padding: 14px 12px !important;
  }
}

@media (max-width: 380px) {
  .nav-tabs {
    grid-template-columns: 1fr !important;
    gap: 6px !important;
  }
  .user-top-bar .auth-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-auth-sm {
    text-align: center;
    width: 100%;
  }
}
