/* ==========================================================================
   Falcon International - Luxury Gold & Dark Shine Theme (App & Dashboard)
   Matches Landing Page Design System, Fonts, Colors & Background Images
   ========================================================================== */

:root {
  /* Dark Shine Palette (Matches theme/css/style.css) */
  --bg-primary: #060913;
  --bg-secondary: #0a1122;
  --bg-tertiary: #0f1930;
  --bg-card: rgba(14, 23, 44, 0.82);
  --bg-card-hover: rgba(20, 32, 60, 0.92);
  --bg-glass: rgba(11, 19, 38, 0.72);
  
  /* Gold Luxury Palette */
  --gold-primary: #d4af37;
  --gold-light: #f7df8b;
  --gold-bright: #ffd700;
  --gold-dark: #aa8214;
  --gold-deep: #8c6708;
  --gold-gradient: linear-gradient(135deg, #fff2b2 0%, #f7df8b 25%, #d4af37 55%, #aa8214 85%, #8c6708 100%);
  --gold-gradient-soft: linear-gradient(135deg, rgba(247, 223, 139, 0.15) 0%, rgba(212, 175, 55, 0.05) 100%);
  --gold-gradient-border: linear-gradient(135deg, rgba(247, 223, 139, 0.8), rgba(212, 175, 55, 0.4), rgba(138, 103, 8, 0.2));
  --gold-glow: 0 0 25px rgba(212, 175, 55, 0.35);
  --gold-glow-lg: 0 0 45px rgba(212, 175, 55, 0.55);
  
  /* Text Colors */
  --text-white: #ffffff;
  --text-light: #e2e8f0;
  --text-muted: #94a3b8;
  --text-dark: #64748b;
  
  /* Accents */
  --accent-blue: #1e3a8a;
  --accent-cyan: #06b6d4;
  --accent-green: #10b981;
  --accent-red: #ef4444;
  --border-color: rgba(212, 175, 55, 0.22);
  --border-color-gold: rgba(212, 175, 55, 0.45);
  --border-subtle: rgba(255, 255, 255, 0.08);
  
  /* Shadows & Radius */
  --card-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(212, 175, 55, 0.15);
  --card-shadow-hover: 0 24px 48px -12px rgba(0, 0, 0, 0.85), 0 0 25px rgba(212, 175, 55, 0.3);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  /* Layout */
  --sidebar-width: 270px;
  --topbar-height: 76px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Base & Typography
   ========================================================================== */
body.falcon-theme {
  min-height: 100vh;
  color: var(--text-light) !important;
  font-family: 'Outfit', 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  background-color: #001e54 !important;
  background-image: 
    radial-gradient(circle at 50% 16%, rgba(189, 119, 0, 0.78) 0%, rgba(189, 119, 0, 0.38) 32%, rgba(0, 30, 84, 0.85) 62%, rgba(6, 9, 19, 0.96) 100%),
    linear-gradient(180deg, rgba(6, 9, 19, 0.32) 0%, rgba(6, 9, 19, 0.78) 100%),
    url('/theme/images/background/1.jpg') !important;
  background-attachment: fixed !important;
  background-size: cover !important;
  background-position: center top !important;
  background-repeat: no-repeat !important;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

body.falcon-theme::before {
  content: '';
  position: fixed;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 820px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.32) 0%, rgba(189, 119, 0, 0.22) 40%, transparent 72%);
  filter: blur(85px);
  pointer-events: none;
  z-index: 0;
}

body.falcon-theme::after {
  content: '';
  position: fixed;
  top: 60px;
  right: 6%;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(247, 223, 139, 0.22) 0%, rgba(189, 119, 0, 0.12) 45%, transparent 70%);
  filter: blur(95px);
  pointer-events: none;
  z-index: 0;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

/* Gold Gradient Utilities */
.text-gold { color: var(--gold-primary) !important; }
.text-gold-gradient {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  font-weight: 700;
}
.text-cyan { color: var(--accent-cyan) !important; }
.text-muted { color: var(--text-muted) !important; }

/* ==========================================================================
   Luxury Buttons
   ========================================================================== */
.user-primary-button, .btn-falcon-gold, .btn-luxury {
  background: var(--gold-gradient) !important;
  color: #060913 !important;
  font-weight: 700 !important;
  font-size: 12.5px !important;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 10px 24px !important;
  border-radius: var(--radius-full) !important;
  border: none !important;
  cursor: pointer;
  box-shadow: var(--gold-glow) !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-normal) !important;
  text-decoration: none;
}

.user-primary-button:hover, .btn-falcon-gold:hover, .btn-luxury:hover {
  box-shadow: var(--gold-glow-lg) !important;
  transform: translateY(-2px);
  filter: brightness(1.06);
  color: #000000 !important;
}

.user-secondary-button, .btn-outline-gold {
  background: rgba(14, 23, 44, 0.65) !important;
  color: var(--gold-light) !important;
  font-weight: 600 !important;
  font-size: 12.5px !important;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 9px 22px !important;
  border-radius: var(--radius-full) !important;
  border: 1.5px solid rgba(212, 175, 55, 0.45) !important;
  cursor: pointer;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-normal) !important;
  text-decoration: none;
}

.user-secondary-button:hover, .btn-outline-gold:hover {
  background: rgba(212, 175, 55, 0.15) !important;
  border-color: var(--gold-primary) !important;
  color: #ffffff !important;
  box-shadow: var(--gold-glow) !important;
  transform: translateY(-1px);
}

.user-danger-button {
  background: rgba(239, 68, 68, 0.12) !important;
  border: 1px solid rgba(239, 68, 68, 0.4) !important;
  color: #fca5a5 !important;
  border-radius: var(--radius-full) !important;
  padding: 9px 20px !important;
  font-size: 12px !important;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.user-danger-button:hover {
  background: rgba(239, 68, 68, 0.25) !important;
  color: #ffffff !important;
}

/* ==========================================================================
   Brand & Logo Lockup
   ========================================================================== */
.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-mark__logo {
  height: 46px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 10px rgba(212, 175, 55, 0.35));
}
.brand-mark--compact .brand-mark__logo {
  height: 38px;
}

/* ==========================================================================
   Auth Layout & Screens
   ========================================================================== */
.auth-page {
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  background-color: #001e54 !important;
  background-image: 
    radial-gradient(circle at 50% 15%, rgba(189, 119, 0, 0.82) 0%, rgba(189, 119, 0, 0.42) 32%, rgba(0, 30, 84, 0.85) 62%, rgba(6, 9, 19, 0.96) 100%),
    linear-gradient(180deg, rgba(6, 9, 19, 0.30) 0%, rgba(6, 9, 19, 0.78) 100%),
    url('/theme/images/background/1.jpg') !important;
  background-attachment: fixed !important;
  background-size: cover !important;
  background-position: center top !important;
  background-repeat: no-repeat !important;
}

.auth-page::before {
  content: '';
  position: fixed;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 760px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.35) 0%, rgba(189, 119, 0, 0.24) 40%, transparent 70%);
  filter: blur(85px);
  pointer-events: none;
  z-index: 0;
}

.auth-shell {
  width: min(100% - 40px, 1180px);
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.auth-shell__top {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.auth-home {
  color: var(--gold-light);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(14, 23, 44, 0.6);
  border: 1px solid var(--border-color);
}
.auth-home:hover {
  color: #fff;
  border-color: var(--gold-primary);
  box-shadow: var(--gold-glow);
}

.auth-content {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 24px 0 40px;
}

.auth-card {
  width: 100%;
  max-width: 480px;
  padding: 42px 45px 36px;
  border-radius: var(--radius-lg);
  background: rgba(14, 23, 44, 0.85) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color) !important;
  box-shadow: 0 30px 85px rgba(0, 0, 0, 0.75), 0 0 30px rgba(212, 175, 55, 0.12) !important;
  position: relative;
  overflow: hidden;
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
  opacity: 0.9;
}

.auth-card--register {
  max-width: 580px;
}

.auth-card__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-light);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
}

.auth-card__eyebrow span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-primary);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.8);
}

.auth-card h1 {
  margin: 16px 0 6px;
  color: #ffffff;
  font: 800 clamp(28px, 4vw, 36px)/1.15 'Outfit', sans-serif;
  letter-spacing: -0.5px;
}

.auth-card h1 em {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: normal;
}

.auth-card__intro {
  margin: 0 0 24px;
  color: var(--text-muted);
  font-size: 13.5px;
}

.auth-form {
  display: grid;
  gap: 18px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Autofill dark luxury styling override */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active,
select:-webkit-autofill,
textarea:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #080f20 inset !important;
  box-shadow: 0 0 0 1000px #080f20 inset !important;
  -webkit-text-fill-color: #ffffff !important;
  caret-color: #ffffff !important;
  color: #ffffff !important;
  transition: background-color 999999s ease-in-out 0s !important;
}

.form-field {
  min-width: 0;
  margin-bottom: 2px;
}

.form-field label {
  display: block;
  margin-bottom: 7px;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.form-control-wrap {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid rgba(212, 175, 55, 0.30) !important;
  border-radius: 12px !important;
  background: #080f20 !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control-wrap:focus-within {
  border-color: #d4af37 !important;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.18), 0 0 20px rgba(212, 175, 55, 0.15) !important;
}

.form-control-wrap > i {
  color: #d4af37 !important;
  font-size: 17px;
  width: 28px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.form-control-wrap input {
  flex: 1;
  width: 100%;
  height: 48px;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  color: #ffffff !important;
  font: 500 14px 'Outfit', sans-serif !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
}

.form-control-wrap input::placeholder {
  color: #64748b !important;
}

.password-toggle {
  background: transparent !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  color: #94a3b8 !important;
  padding: 0 6px !important;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.password-toggle:hover {
  color: #d4af37 !important;
}

.remember-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 6px 0 8px;
}

.remember-option {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: #94a3b8;
  font-size: 13.5px;
  font-weight: 500;
  user-select: none;
  margin: 0;
}

.remember-option input[type="checkbox"] {
  accent-color: #d4af37;
  width: 17px;
  height: 17px;
  cursor: pointer;
  margin: 0;
  border-radius: 4px;
}

.remember-option span {
  color: #cbd5e1;
  font-size: 13.5px;
  transition: color 0.2s ease;
}

.remember-option:hover span {
  color: #ffffff;
}

.field-error {
  display: block;
  color: #ef4444;
  font-size: 12px;
  margin-top: 4px;
  min-height: 16px;
}

.auth-submit {
  width: 100%;
  min-height: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  border: 0;
  border-radius: var(--radius-full);
  background: var(--gold-gradient);
  color: #060913;
  font: 700 13px 'Outfit', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  box-shadow: var(--gold-glow);
  cursor: pointer;
  transition: var(--transition-normal);
}

.auth-submit:hover:not(:disabled) {
  box-shadow: var(--gold-glow-lg);
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.auth-submit:disabled, .auth-submit[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  filter: grayscale(0.25);
  box-shadow: none;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0 16px;
  color: var(--text-muted);
  font-size: 11px;
}

.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.auth-switch {
  min-height: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--gold-light);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  background: rgba(14, 23, 44, 0.6);
  transition: var(--transition-fast);
}

.auth-switch:hover {
  border-color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.12);
  color: #ffffff;
  box-shadow: var(--gold-glow);
}

.auth-footer {
  min-height: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 12px;
}

/* ==========================================================================
   Dashboard Shell & Navigation
   ========================================================================== */
.dashboard-page {
  min-height: 100vh;
}

/* Sticky Impersonation Banner */
.impersonation-banner {
  background: linear-gradient(135deg, #fff2b2 0%, #f7df8b 35%, #d4af37 70%, #aa8214 100%) !important;
  color: #060913 !important;
  font-weight: 700 !important;
  border-bottom: 2px solid #ffffff !important;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.5) !important;
  letter-spacing: 0.3px;
}

/* Sidebar */
.dashboard-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 1040;
  width: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  padding: 0 16px 20px;
  background: linear-gradient(180deg, rgba(10, 17, 34, 0.97) 0%, rgba(6, 9, 19, 0.99) 100%) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid var(--border-color) !important;
  box-shadow: 10px 0 35px rgba(0, 0, 0, 0.5) !important;
  transition: transform var(--transition-normal);
}

.dashboard-sidebar__brand {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.16);
}

.sidebar-close {
  display: none;
  border: 0;
  background: none;
  color: var(--gold-light);
  font-size: 20px;
  cursor: pointer;
}

.sidebar-label {
  margin: 20px 10px 10px;
  color: var(--gold-primary);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.sidebar-nav {
  display: grid;
  gap: 5px;
  overflow-y: auto;
  max-height: calc(100vh - 200px);
  padding-right: 4px;
}

.sidebar-link {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #cbd5e1;
  font-size: 13.5px;
  font-weight: 500;
  transition: var(--transition-fast);
}

.sidebar-link > i:first-child {
  width: 20px;
  color: var(--gold-light);
  font-size: 16px;
  transition: transform var(--transition-fast);
}

.sidebar-link:hover {
  color: #ffffff;
  background: rgba(212, 175, 55, 0.08);
  transform: translateX(3px);
}

.sidebar-link:hover > i:first-child {
  transform: scale(1.15);
  color: var(--gold-primary);
}

.sidebar-link.is-active {
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.22) 0%, rgba(212, 175, 55, 0.04) 100%) !important;
  border-left: 3px solid var(--gold-primary) !important;
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.12) !important;
}

.sidebar-link.is-active > i:first-child {
  color: var(--gold-primary) !important;
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.6));
}

.sidebar-link__arrow {
  margin-left: auto;
  opacity: 0;
  font-size: 10px;
  color: var(--gold-primary);
}

.sidebar-link.is-active .sidebar-link__arrow {
  opacity: 1;
}

.sidebar-bottom {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding: 14px 12px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: rgba(14, 23, 44, 0.6);
}

.sidebar-bottom__shield {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #060913;
  background: var(--gold-gradient);
  font-size: 16px;
}

.sidebar-bottom strong {
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 700;
}

.sidebar-bottom small {
  color: var(--gold-light);
  font-size: 11px;
}

/* ==========================================================================
   Dashboard Topbar
   ========================================================================== */
.dashboard-main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin-left: var(--sidebar-width);
  background: transparent;
}

.dashboard-topbar {
  position: sticky;
  top: 0;
  z-index: 1020;
  min-height: var(--topbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px clamp(20px, 3vw, 40px);
  background: rgba(8, 14, 28, 0.88) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-color) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45) !important;
}

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

.topbar-kicker {
  color: var(--gold-primary);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.topbar-main h1 {
  margin: 2px 0 0;
  color: #ffffff;
  font: 800 20px 'Outfit', sans-serif;
  letter-spacing: -0.3px;
}

.topbar-menu {
  display: none;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: rgba(14, 23, 44, 0.6);
  color: var(--gold-primary);
  font-size: 20px;
  cursor: pointer;
}

.topbar-date {
  color: var(--text-muted);
  font-size: 12.5px;
  white-space: nowrap;
}

.topbar-date i {
  color: var(--gold-primary);
  margin-right: 5px;
}

.topbar-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  background: rgba(14, 23, 44, 0.6);
  cursor: pointer;
  color: #ffffff;
}

.topbar-avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #060913;
  background: var(--gold-gradient);
  font: 800 14px 'Outfit', sans-serif;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
}

.topbar-avatar--member {
  color: #060913;
  background: linear-gradient(135deg, #a5f3fc 0%, #06b6d4 100%);
}

.topbar-profile__copy {
  display: grid;
  line-height: 1.2;
}

.topbar-profile__copy strong {
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 700;
}

.topbar-profile__copy small {
  color: var(--gold-light);
  font-size: 11px;
}

.profile-menu {
  min-width: 220px;
  margin-top: 10px !important;
  padding: 8px;
  border-radius: 14px;
  background: rgba(10, 17, 34, 0.95) !important;
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
}

.profile-menu .dropdown-item {
  border-radius: 8px;
  font-size: 12.5px;
  color: var(--text-light);
  padding: 8px 12px;
}

.profile-menu .dropdown-item:hover {
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold-light);
}

/* ==========================================================================
   Dashboard Content & Panels
   ========================================================================== */
.dashboard-content {
  width: 100%;
  max-width: 100%;
  flex: 1;
  margin: 0;
  padding: 22px clamp(16px, 2.5vw, 36px) 36px;
}

/* Welcome Hero Panel with Background Image & Landing Page Golden Light */
.welcome-panel {
  min-height: 200px;
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  padding: 34px 40px;
  border-radius: var(--radius-lg);
  background-color: #001e54 !important;
  background-image: 
    radial-gradient(circle at 75% 25%, rgba(189, 119, 0, 0.85) 0%, rgba(189, 119, 0, 0.45) 35%, rgba(0, 30, 84, 0.85) 65%, rgba(6, 9, 19, 0.95) 100%),
    linear-gradient(180deg, rgba(6, 9, 19, 0.28) 0%, rgba(6, 9, 19, 0.75) 100%),
    url('/theme/images/background/1.jpg') !important;
  background-size: cover !important;
  background-position: center !important;
  border: 1px solid rgba(212, 175, 55, 0.40) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 35px rgba(212, 175, 55, 0.25) !important;
}

.welcome-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

.welcome-panel__copy {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.welcome-panel__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-light);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.welcome-panel h2 {
  margin: 12px 0 8px;
  color: #ffffff;
  font: 800 clamp(24px, 3vw, 32px)/1.2 'Outfit', sans-serif;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.welcome-panel p {
  margin: 0;
  color: #cbd5e1;
  font-size: 14.5px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.welcome-panel__art {
  width: auto;
  max-width: 280px;
  height: 100%;
  position: absolute;
  right: 25px;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  pointer-events: none;
}

.welcome-panel__art img {
  max-height: 165px;
  width: auto;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.75)) drop-shadow(0 0 30px rgba(212, 175, 55, 0.35));
  transition: transform 0.4s ease;
}

.welcome-panel:hover .welcome-panel__art img {
  transform: scale(1.06) translateY(-2px);
}

/* Section Headings */
.dashboard-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: 32px 0 18px;
}

.dashboard-section-heading h3, .panel-heading h3 {
  margin: 4px 0 0;
  color: #ffffff;
  font: 800 22px 'Outfit', sans-serif;
  letter-spacing: -0.3px;
}

.section-eyebrow {
  display: block;
  color: var(--gold-primary);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ==========================================================================
   Stat Cards & Grid
   ========================================================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.stat-card {
  min-height: 124px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px;
  border-radius: var(--radius-md) !important;
  background: rgba(8, 16, 36, 0.48) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border-color) !important;
  box-shadow: var(--card-shadow) !important;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
  opacity: 0.7;
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(212, 175, 55, 0.5) !important;
  box-shadow: var(--card-shadow-hover) !important;
}

.stat-card.gold-border {
  border-color: var(--border-color-gold) !important;
}

/* ==========================================================================
   Falcon Glassmorphic Cards & Custom Widgets (Transparent + Blur)
   ========================================================================== */
.falcon-card {
  display: block;
  width: 100%;
  padding: 24px;
  border-radius: 18px !important;
  background: rgba(8, 16, 36, 0.48) !important;
  backdrop-filter: blur(22px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(22px) saturate(180%) !important;
  border: 1px solid rgba(212, 175, 55, 0.22) !important;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}

.falcon-card.h-100 {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
}

.falcon-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.6), transparent);
  opacity: 0.8;
  pointer-events: none;
}

.falcon-card:hover {
  transform: translateY(-2px);
  border-color: rgba(212, 175, 55, 0.52) !important;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.55), 0 0 28px rgba(212, 175, 55, 0.16) !important;
}

.falcon-card.gold-border {
  border-color: rgba(212, 175, 55, 0.45) !important;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 25px rgba(212, 175, 55, 0.12) !important;
}

.falcon-card.cyan-border {
  border-color: rgba(6, 182, 212, 0.45) !important;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 25px rgba(6, 182, 212, 0.12) !important;
}

.falcon-card.cyan-border::before {
  background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.6), transparent);
}

/* Glassmorphism Inner Elements */
.falcon-card .bg-dark,
.falcon-glass-box {
  background: rgba(4, 10, 24, 0.52) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.falcon-card .table-dark {
  --bs-table-bg: transparent !important;
  background: transparent !important;
}

.falcon-card .table-dark th {
  background: rgba(4, 10, 24, 0.65) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

.falcon-card .table-dark td {
  background: transparent !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
}

.stat-card__icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 12px;
  color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.3);
  font-size: 20px;
}

.stat-card__copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.stat-card__copy > span {
  overflow: hidden;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stat-card__copy strong {
  overflow: hidden;
  color: #ffffff;
  font: 800 clamp(20px, 2.2vw, 26px) 'Outfit', sans-serif;
  letter-spacing: -0.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stat-card__copy small {
  color: var(--gold-light);
  font-size: 11px;
}

/* ==========================================================================
   Content Panels & Tables
   ========================================================================== */
.content-panel {
  border-radius: var(--radius-md);
  background: var(--bg-card) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color) !important;
  box-shadow: var(--card-shadow) !important;
  overflow: hidden;
}

.recent-panel {
  margin-top: 30px;
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.18);
}

.panel-heading p {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 12.5px;
}

.panel-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold-light);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.panel-action:hover {
  color: #ffffff;
}

.dashboard-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--text-light);
  font-size: 13.5px;
}

.dashboard-table th {
  padding: 14px 22px;
  border-bottom: 1px solid var(--border-color);
  color: var(--gold-light);
  background: rgba(10, 17, 34, 0.95);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: left;
  white-space: nowrap;
}

.dashboard-table td {
  padding: 15px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  white-space: nowrap;
  vertical-align: middle;
}

.dashboard-table tbody tr:hover td {
  background: rgba(212, 175, 55, 0.06) !important;
}

.member-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.member-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 10px;
  color: #060913;
  background: var(--gold-gradient);
  font: 800 13px 'Outfit', sans-serif;
}

.member-cell strong {
  color: #ffffff;
  font-size: 13.5px;
}

.member-cell small {
  color: var(--text-muted);
  font-size: 11.5px;
}

.referral-chip {
  display: inline-block;
  padding: 5px 10px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--gold-light);
  background: rgba(14, 23, 44, 0.7);
  font: 700 11px ui-monospace, monospace;
}

.member-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.member-status--active {
  color: #86efac;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.member-status--active i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
}

.member-status--blocked {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.member-status--blocked i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
}

.member-status--pending {
  color: #fde047;
  background: rgba(234, 179, 8, 0.14);
  border: 1px solid rgba(234, 179, 8, 0.3);
}

.member-status--pending i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #eab308;
}

.account-action {
  padding: 7px 12px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: rgba(14, 23, 44, 0.7);
  color: var(--text-light);
  font-size: 12px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.account-action:hover {
  border-color: var(--gold-primary);
  color: #ffffff;
  background: rgba(212, 175, 55, 0.15);
}

.account-action--icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 8px;
}

/* ==========================================================================
   Forms & Controls
   ========================================================================== */
.user-form-field {
  display: grid;
  align-content: start;
  gap: 7px;
  color: var(--text-light);
  font-size: 13px;
  font-weight: 600;
}

.user-form-field input, .user-form-field select, .form-control {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--border-color) !important;
  border-radius: 10px !important;
  outline: none;
  color: #ffffff !important;
  background: rgba(6, 11, 24, 0.75) !important;
  font: 500 13.5px 'Outfit', sans-serif !important;
  transition: var(--transition-fast);
}

.user-form-field input:focus, .user-form-field select:focus, .form-control:focus {
  border-color: var(--gold-primary) !important;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15) !important;
}

.user-form-field input::placeholder, .form-control::placeholder {
  color: #64748b;
}

/* Search Bar */
.member-search {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.16);
}

.member-search__field {
  min-height: 44px;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: rgba(6, 11, 24, 0.75);
}

.member-search__field input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #ffffff;
  background: transparent;
  font: 13.5px 'Outfit', sans-serif;
}

.member-search > button {
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--radius-full);
  color: #060913;
  background: var(--gold-gradient);
  font: 700 12.5px 'Outfit', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  box-shadow: var(--gold-glow);
  cursor: pointer;
}

/* Pagination */
.pagination-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 70px;
  padding: 14px 22px;
  border-top: 1px solid rgba(212, 175, 55, 0.16);
}

.pagination .page-link {
  border: 1px solid var(--border-color);
  background: rgba(14, 23, 44, 0.7);
  color: var(--text-light);
  border-radius: 8px !important;
  margin: 0 2px;
  font-size: 13px;
}

.pagination .page-item.active .page-link {
  background: var(--gold-gradient);
  color: #060913;
  border-color: var(--gold-primary);
  font-weight: 700;
  box-shadow: var(--gold-glow);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.dashboard-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px clamp(20px, 3vw, 40px);
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  background: rgba(8, 14, 28, 0.85);
  font-size: 12px;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1100px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .dashboard-page {
    --sidebar-width: 270px;
  }
  .dashboard-sidebar {
    transform: translateX(-102%);
  }
  .dashboard-sidebar.is-open {
    transform: translateX(0);
  }
  .sidebar-close {
    display: block;
  }
  .sidebar-scrim.is-visible {
    position: fixed;
    inset: 0;
    z-index: 1030;
    display: block;
    background: rgba(6, 9, 19, 0.75);
    backdrop-filter: blur(4px);
  }
  .dashboard-main {
    margin-left: 0;
  }
  .dashboard-topbar {
    min-height: 68px;
    padding: 10px 18px;
  }
  .topbar-menu {
    display: grid;
  }
  .topbar-date {
    display: none;
  }
  .topbar-profile__copy {
    display: none;
  }
  .welcome-panel {
    min-height: 180px;
    padding: 24px;
  }
  .welcome-panel__art {
    display: none;
  }
  .dashboard-table {
    min-width: 680px;
  }
  .content-panel {
    overflow-x: auto;
  }
}

@media (max-width: 520px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .auth-shell {
    width: min(100% - 24px, 480px);
  }
  .auth-card {
    padding: 30px 22px 26px;
  }
  .form-grid-2 {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* ==========================================================================
   Admin & Feedback Loader Overlay
   ========================================================================== */
.admin-loader {
  display: none !important;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(6, 9, 19, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.admin-loader.is-visible {
  display: flex !important;
  opacity: 1;
  pointer-events: auto;
}

.admin-loader__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 28px 42px;
  background: rgba(10, 17, 34, 0.95);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), var(--gold-glow);
  color: #ffffff;
}

.admin-loader__spinner {
  width: 42px;
  height: 42px;
  border: 3px solid rgba(212, 175, 55, 0.2);
  border-top-color: var(--gold-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.admin-loader__card strong {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 0.5px;
}

.admin-toast-region {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 10000;
  display: grid;
  gap: 12px;
  pointer-events: none;
}
