/* ============================================================
   GLOBAL RESET & VARIABLES (LIGHT THEME / PHONG CÁCH TRẮNG)
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #f8fafc;
  --surface:     #ffffff;
  --surface-2:   #f1f5f9;
  --border:      rgba(0, 0, 0, 0.08);
  --primary:     #6366f1;
  --primary-2:   #4f46e5;
  --accent:      #0284c7;
  --success:     #059669;
  --error:       #dc2626;
  --text:        #0f172a;
  --text-muted:  #64748b;
  --gold:        #d97706;
  --font:        'Inter', system-ui, sans-serif;
  --radius:      16px;
  --radius-sm:   10px;
  --shadow:      0 10px 30px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.04);
  --glow:        0 8px 30px rgba(99, 102, 241, 0.12);
}

html { font-family: var(--font); font-size: 16px; }

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  position: relative;
}

/* ============================================================
   BACKGROUND ORBS ANIMATION (LIGHT MODE PASTEL BLURS)
   ============================================================ */
.bg-orbs {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.25;
  animation: floatOrb 14s ease-in-out infinite;
}
.orb-1 {
  width: 550px; height: 550px;
  background: radial-gradient(circle, #818cf8, transparent);
  top: -180px; left: -120px;
  animation-delay: 0s;
}
.orb-2 {
  width: 450px; height: 450px;
  background: radial-gradient(circle, #38bdf8, transparent);
  bottom: -120px; right: -100px;
  animation-delay: -4s;
}
.orb-3 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, #c084fc, transparent);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -8s;
}
@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0); }
  33%       { transform: translate(40px, -30px); }
  66%       { transform: translate(-20px, 25px); }
}

/* ============================================================
   AUTH PAGE LAYOUT
   ============================================================ */
.auth-wrapper {
  position: relative; z-index: 1;
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 24px 16px;
}

.brand { text-align: center; margin-bottom: 28px; }
.brand-icon { font-size: 48px; margin-bottom: 10px; display: block; }
.brand-name {
  font-size: 26px; font-weight: 800;
  background: linear-gradient(135deg, var(--primary-2), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
}
.brand-tagline { color: var(--text-muted); font-size: 14px; font-weight: 500; }

/* CARD */
.card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius);
  padding: 0;
  width: 100%; max-width: 460px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0,0,0,0.03);
  overflow: hidden;
  position: relative;
}

/* TAB BAR */
.tab-bar {
  display: flex;
  background: #f1f5f9;
  border-bottom: 1px solid var(--border);
}
.tab {
  flex: 1; padding: 16px 8px;
  background: none; border: none;
  color: var(--text-muted); font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all 0.25s;
  border-bottom: 2px solid transparent;
  font-family: var(--font);
}
.tab:hover { color: var(--text); }
.tab.active {
  color: var(--primary-2);
  border-bottom-color: var(--primary);
  background: #ffffff;
}

/* TAB PANELS */
.tab-panel {
  display: none;
  padding: 28px 30px 30px;
  animation: fadeUp 0.3s ease;
}
.tab-panel.active { display: block; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* FORM ELEMENTS */
.form-group { margin-bottom: 18px; }

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

.input-wrap {
  position: relative; display: flex; align-items: center;
}
.input-icon {
  position: absolute; left: 14px;
  font-size: 16px; pointer-events: none; line-height: 1; opacity: 0.7;
}
.input-wrap input {
  width: 100%; padding: 12px 14px 12px 44px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  color: var(--text); font-size: 14px; font-family: var(--font);
  outline: none; transition: all 0.2s;
}
.input-wrap input:focus {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}
.input-wrap input::placeholder { color: var(--text-muted); opacity: 0.7; }

.toggle-pw {
  position: absolute; right: 12px;
  background: none; border: none; cursor: pointer;
  font-size: 16px; color: var(--text-muted); transition: color 0.2s;
  line-height: 1; padding: 4px;
}
.toggle-pw:hover { color: var(--text); }

/* OTP Input */
.otp-input {
  text-align: center !important;
  letter-spacing: 10px !important;
  font-size: 22px !important; font-weight: 700 !important;
  padding-left: 44px !important;
}

/* BUTTONS */
.btn-primary {
  width: 100%; padding: 13px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  border: none; border-radius: var(--radius-sm);
  color: #fff; font-size: 15px; font-weight: 600;
  cursor: pointer; font-family: var(--font);
  transition: all 0.25s; margin-top: 4px;
  position: relative; overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0; transition: opacity 0.2s;
}
.btn-primary:hover:not(:disabled)::before { opacity: 1; }
.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.35);
}
.btn-primary:active:not(:disabled) { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-ghost {
  width: 100%; padding: 11px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0; border-radius: var(--radius-sm);
  color: var(--text-muted); font-size: 14px; font-weight: 600;
  cursor: pointer; font-family: var(--font);
  transition: all 0.2s; margin-top: 10px;
}
.btn-ghost:hover {
  background: #e2e8f0;
  color: var(--text);
}

/* STEP BADGE */
.step-badge {
  display: inline-flex; align-items: center;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: var(--primary-2); font-size: 12px; font-weight: 600;
  padding: 5px 12px; border-radius: 50px;
  margin-bottom: 20px; letter-spacing: 0.03em;
}

.otp-info {
  background: rgba(2, 132, 199, 0.08);
  border: 1px solid rgba(2, 132, 199, 0.2);
  border-radius: var(--radius-sm);
  color: var(--accent); font-size: 13px;
  padding: 12px 14px; margin-bottom: 18px;
  line-height: 1.6;
}

.form-hint {
  text-align: center; color: var(--text-muted);
  font-size: 13px; margin-top: 16px;
}
.form-hint a { color: var(--primary-2); text-decoration: none; font-weight: 600; }
.form-hint a:hover { text-decoration: underline; }

/* TOAST */
.toast {
  position: fixed; bottom: 28px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 50px; padding: 12px 24px;
  font-size: 14px; font-weight: 600;
  white-space: nowrap; pointer-events: none;
  opacity: 0; transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
  z-index: 1000; max-width: 90vw; white-space: normal;
  text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  color: var(--text);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success { border-color: var(--success); color: var(--success); }
.toast.error   { border-color: var(--error);   color: var(--error); }
.toast.info    { border-color: var(--accent);   color: var(--accent); }

/* DASHBOARD LIGHT MODE */
.dashboard-body { background: var(--bg); color: var(--text); }

.dash-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 64px;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}
.dash-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.dash-brand {
  font-size: 19px; font-weight: 800;
  background: linear-gradient(135deg, var(--primary-2), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}
.dash-brand span { font-style: normal; }

.dash-user-info { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
.dash-avatar { font-size: 20px; }
.dash-uname { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; }

.btn-logout {
  padding: 6px 14px;
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.25);
  border-radius: 50px; color: var(--error);
  font-size: 12px; font-weight: 700;
  cursor: pointer; font-family: var(--font);
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-logout:hover { background: rgba(220, 38, 38, 0.15); }

.dash-main {
  position: relative; z-index: 1;
  max-width: 1000px; margin: 0 auto;
  padding: 84px 20px 60px;
}

.dash-welcome { margin-bottom: 32px; }
.dash-welcome h2 { font-size: 26px; font-weight: 800; line-height: 1.4; color: var(--text); }
.dash-welcome p  { color: var(--text-muted); font-size: 14px; margin-top: 6px; }
.highlight {
  background: linear-gradient(135deg, var(--primary-2), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* BALANCE CARD */
.balance-card {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #4f46e5, #6366f1, #0284c7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px; padding: 40px 36px;
  margin-bottom: 28px;
  box-shadow: 0 20px 45px rgba(79, 70, 229, 0.25);
  text-align: center; color: #ffffff;
}
.balance-glow {
  position: absolute; inset: -40px;
  background: radial-gradient(ellipse at 50% 50%, rgba(255,255,255,0.2), transparent 70%);
  pointer-events: none; animation: pulse 3s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.05); }
}
.balance-label  { color: rgba(255,255,255,0.85); font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.balance-amount {
  font-size: clamp(32px, 8vw, 56px);
  font-weight: 800; letter-spacing: -1px;
  color: #ffffff;
  line-height: 1; text-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.balance-sub { color: rgba(255,255,255,0.75); font-size: 12px; margin-top: 12px; }

/* INFO GRID */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px; margin-bottom: 24px;
}
.info-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius); padding: 22px 20px;
  transition: all 0.25s; box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}
.info-card:hover {
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.07);
}
.info-card-icon  { font-size: 24px; margin-bottom: 10px; }
.info-card-label { font-size: 12px; color: var(--text-muted); font-weight: 600; margin-bottom: 6px; }
.info-card-value { font-size: 15px; font-weight: 700; color: var(--text); word-break: break-all; }
.status-verified { color: var(--success) !important; }

/* SECURITY NOTICE */
.security-notice {
  display: flex; align-items: flex-start; gap: 12px;
  background: rgba(5, 150, 105, 0.08);
  border: 1px solid rgba(5, 150, 105, 0.2);
  border-radius: var(--radius-sm); padding: 14px 18px;
  color: #047857; font-size: 13px; line-height: 1.6; font-weight: 500;
}

/* HAMBURGER BUTTON & USER AVATAR DROPDOWN */
.btn-hamburger {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  width: 38px; height: 38px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; cursor: pointer; transition: all 0.2s;
  padding: 0;
}
.btn-hamburger:hover {
  background: #e2e8f0;
  border-color: #cbd5e1;
}
.btn-hamburger span {
  display: block; width: 18px; height: 2px;
  background: #0f172a; border-radius: 2px;
  transition: all 0.25s;
}

.avatar-btn {
  background: none; border: none; padding: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  outline: none; position: relative; flex-shrink: 0;
}
.avatar-img {
  width: 38px; height: 38px; min-width: 38px; min-height: 38px;
  aspect-ratio: 1 / 1; border-radius: 50% !important;
  border: 2px solid var(--primary); object-fit: cover !important;
  transition: all 0.2s; flex-shrink: 0 !important;
}
.avatar-btn:hover .avatar-img {
  border-color: var(--primary-2);
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.35);
  transform: scale(1.05);
}
.avatar-fallback {
  width: 38px; height: 38px; min-width: 38px; min-height: 38px;
  aspect-ratio: 1 / 1; border-radius: 50% !important;
  background: rgba(99, 102, 241, 0.1); border: 1px solid rgba(99, 102, 241, 0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--primary-2); transition: all 0.2s; flex-shrink: 0 !important;
}
.avatar-btn:hover .avatar-fallback {
  background: rgba(99, 102, 241, 0.2);
  transform: scale(1.05);
}

/* User Dropdown Menu */
.user-dropdown-menu {
  position: absolute; top: calc(100% + 12px); right: 0;
  width: 270px; max-width: calc(100vw - 32px); background: #ffffff;
  border: 1px solid #e2e8f0; border-radius: var(--radius);
  padding: 16px; box-shadow: 0 20px 40px rgba(0,0,0,0.12);
  z-index: 2005; display: none; opacity: 0; transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.user-dropdown-menu.show {
  display: block; opacity: 1; transform: translateY(0);
}
.user-dropdown-header {
  display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
}
.dropdown-avatar-img {
  width: 44px; height: 44px; min-width: 44px; min-height: 44px;
  aspect-ratio: 1 / 1; border-radius: 50% !important;
  border: 2px solid var(--primary-2); object-fit: cover !important;
  flex-shrink: 0 !important;
}
.dropdown-avatar-fallback {
  width: 44px; height: 44px; min-width: 44px; min-height: 44px;
  aspect-ratio: 1 / 1; border-radius: 50% !important;
  background: rgba(99, 102, 241, 0.15); border: 1px solid var(--primary);
  display: flex; align-items: center; justify-content: center; font-size: 22px;
  flex-shrink: 0 !important;
}
.user-dropdown-name {
  font-size: 14px; font-weight: 700; color: #0f172a;
  display: flex; align-items: center; gap: 4px;
}
.user-dropdown-email {
  font-size: 12px; color: var(--text-muted); word-break: break-all; margin-top: 2px;
}
.user-dropdown-balance {
  font-size: 13px; font-weight: 800; color: var(--gold); margin-top: 4px;
}
.user-dropdown-divider {
  height: 1px; background: #e2e8f0; margin: 10px 0;
}
.user-dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  color: #334155; font-size: 13px; font-weight: 600;
  text-decoration: none; transition: all 0.2s;
}
.user-dropdown-item:hover {
  background: #f1f5f9; color: #0f172a;
}
.user-dropdown-logout {
  width: 100%; text-align: left; padding: 10px 12px;
  background: rgba(220, 38, 38, 0.08); border: 1px solid rgba(220, 38, 38, 0.2);
  border-radius: var(--radius-sm); color: var(--error);
  font-size: 13px; font-weight: 600; cursor: pointer;
  font-family: var(--font); transition: all 0.2s;
}
.user-dropdown-logout:hover {
  background: rgba(220, 38, 38, 0.15); color: #dc2626;
}

/* SIDEBAR MENU DRAWER (LIGHT MODE - SHINMOD STYLE) */
.sidebar-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  z-index: 1999; display: none; opacity: 0; transition: opacity 0.3s;
}
.sidebar-overlay.active {
  display: block; opacity: 1;
}

.sidebar-drawer {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: 290px; background: #ffffff;
  border-right: 1px solid #e2e8f0;
  z-index: 2000; transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 15px 0 50px rgba(0,0,0,0.1);
  display: flex; flex-direction: column; overflow-y: auto;
}
.sidebar-drawer.active {
  transform: translateX(0);
}

.sidebar-header {
  padding: 20px 22px; border-bottom: 1px solid #e2e8f0;
  display: flex; align-items: center; justify-content: space-between;
  background: #f8fafc;
}
.sidebar-brand {
  font-size: 20px; font-weight: 800;
  background: linear-gradient(135deg, var(--primary-2), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.sidebar-close {
  background: #f1f5f9; border: 1px solid #e2e8f0;
  color: var(--text-muted); width: 32px; height: 32px; border-radius: 8px;
  cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.sidebar-close:hover { background: #e2e8f0; color: #0f172a; }

.sidebar-content {
  padding: 24px 18px; flex: 1;
}
.sidebar-section-title {
  font-size: 11px; font-weight: 700; color: var(--text-muted);
  letter-spacing: 1.2px; text-transform: uppercase;
  margin-bottom: 12px; padding-left: 10px;
}
.sidebar-nav {
  list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px;
}
.sidebar-link {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px; border-radius: 12px;
  color: #334155; font-size: 14px; font-weight: 600;
  text-decoration: none; transition: all 0.2s;
  background: #f8fafc; border: 1px solid #e2e8f0;
}
.sidebar-link:hover {
  background: #f1f5f9; color: #0f172a;
  border-color: #cbd5e1;
}
.sidebar-link.active {
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: var(--primary-2);
}
.sidebar-link .nav-icon { font-size: 18px; width: 22px; text-align: center; }

.badge-auto {
  margin-left: auto; background: #059669; color: #fff;
  font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 20px;
}
.badge-hot {
  margin-left: auto; background: linear-gradient(135deg, #ef4444, #f97316); color: #fff;
  font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 20px;
  box-shadow: 0 2px 5px rgba(239, 68, 68, 0.3);
}
.badge-free {
  margin-left: auto; background: #10b981; color: #fff;
  font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 20px;
}

/* RESPONSIVE */
@media (max-width: 480px) {
  .tab { font-size: 11px; padding: 14px 4px; }
  .tab-panel { padding: 22px 20px 24px; }
  .balance-card { padding: 30px 20px; }
  .dash-main { padding: 28px 16px 50px; }
  .dash-welcome h2 { font-size: 20px; }
}

/* SHIN-CARD FULL IMAGE DISPLAY STYLES */
.shin-card-banner {
  width: 100%;
  height: 220px;
  background: #f8fafc !important;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #e2e8f0;
}
.shin-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover !important;
}

/* PLAN OPTION CARDS (GÓI SẢN PHẨM) LIGHT MODE */
.plan-option-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.plan-option-card:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}
.plan-option-card.active {
  background: rgba(99, 102, 241, 0.06);
  border-color: var(--primary-2);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.15);
}
.plan-option-card.out-of-stock {
  opacity: 0.5;
}
.plan-option-name {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  text-transform: uppercase;
}
.plan-option-sub {
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
}
.plan-option-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary-2);
}

/* ============================================================
   HEADER ACCOUNT PILL BADGE (LIGHT THEME - PHONG CÁCH TRẮNG)
   ============================================================ */
.cursor-account-widget { display: none !important; }

.user-header-account-pill {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 50px;
  padding: 5px 14px 5px 6px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  user-select: none;
}

.user-header-account-pill:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.uh-avatar {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  aspect-ratio: 1 / 1;
  border-radius: 50% !important;
  overflow: hidden;
  background: rgba(99, 102, 241, 0.1);
  border: 1.5px solid var(--primary-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0 !important;
}

.uh-avatar-img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover !important;
  border-radius: 50% !important;
}

.uh-avatar-fallback {
  font-size: 14px;
  font-weight: 800;
  color: var(--primary-2);
  text-transform: uppercase;
}

.uh-details {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  text-align: left;
}

.uh-top {
  display: flex;
  align-items: center;
  gap: 6px;
}

.uh-username {
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  max-width: 110px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.uh-role-badge {
  font-size: 9px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.uh-role-badge.admin {
  background: rgba(217, 119, 6, 0.12);
  color: #d97706;
  border: 1px solid rgba(217, 119, 6, 0.3);
}
.uh-role-badge.member {
  background: rgba(99, 102, 241, 0.12);
  color: var(--primary-2);
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.uh-balance {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 1px;
}

.uh-bal-label {
  font-size: 10px;
  color: #64748b;
  font-weight: 500;
}

.uh-bal-val {
  font-size: 12px;
  font-weight: 800;
  color: #059669;
}

.uh-arrow {
  font-size: 9px;
  color: #64748b;
  margin-left: 2px;
}

/* ============================================================
   SIDEBAR USER ACCOUNT CARD (PHONG CÁCH MÀU TRẮNG - LIGHT THEME)
   ============================================================ */
.sidebar-user-card {
  display: block;
  text-decoration: none;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 20px;
  color: var(--text);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.25s ease;
  cursor: pointer;
}

.sidebar-user-card:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.suc-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.suc-avatar {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  aspect-ratio: 1 / 1;
  border-radius: 50% !important;
  overflow: hidden;
  background: rgba(99, 102, 241, 0.1);
  border: 2px solid var(--primary-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: var(--primary-2);
  flex-shrink: 0 !important;
}

.suc-avatar img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover !important;
  border-radius: 50% !important;
}

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

.suc-name {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.suc-badge {
  font-size: 9px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 20px;
  text-transform: uppercase;
}
.suc-badge.admin { background: rgba(217, 119, 6, 0.12); color: #d97706; border: 1px solid rgba(217, 119, 6, 0.3); }
.suc-badge.member { background: rgba(99, 102, 241, 0.12); color: var(--primary-2); border: 1px solid rgba(99, 102, 241, 0.3); }

.suc-email {
  font-size: 12px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.suc-balance-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}

.suc-bal-lbl {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}

.suc-bal-val {
  font-size: 15px;
  font-weight: 800;
  color: #059669;
}

.suc-login-btn {
  margin-top: 12px;
  padding: 10px 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.22);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.sidebar-user-card:hover .suc-login-btn {
  background: linear-gradient(135deg, #4f46e5, #4338ca);
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.35);
  transform: translateY(-1px);
}

/* ============================================================
   DESKTOP PC RESPONSIVE SIDEBAR (PINNED BY DEFAULT >= 992px)
   ============================================================ */
@media (min-width: 992px) {
  body {
    padding-left: 270px !important;
  }
  
  .sidebar-drawer {
    width: 270px !important;
    transform: translateX(0) !important;
    box-shadow: none !important;
    z-index: 1000 !important;
    border-right: 1px solid #e2e8f0 !important;
  }
  
  .sidebar-overlay,
  .btn-hamburger,
  .sidebar-close {
    display: none !important;
  }
  
  .dash-header {
    left: 270px !important;
    width: calc(100% - 270px) !important;
  }
}





