/* VIP GOLD + ROYAL PURPLE DESIGN SYSTEM */
:root {
  --vip-gold: #f6c453;
  --vip-gold-soft: #ffe6a3;
  --vip-purple: #9a4dff;
  --vip-purple-deep: #1a0b32;
  --vip-ink: #08050f;
}

body {
  background:
    radial-gradient(ellipse 850px 500px at 8% -8%, rgba(153, 63, 255, .23), transparent 65%),
    radial-gradient(ellipse 700px 480px at 96% 78%, rgba(246, 196, 83, .12), transparent 63%),
    linear-gradient(145deg, #08050f 0%, #11071e 45%, #07040c 100%) !important;
}
body::after {
  background-image:
    radial-gradient(circle at 20% 15%, rgba(180, 89, 255, .16), transparent 26%),
    radial-gradient(circle at 78% 84%, rgba(246, 196, 83, .13), transparent 31%),
    linear-gradient(115deg, transparent 0 44%, rgba(255, 219, 130, .025) 50%, transparent 56%) !important;
  animation: ambient-drift 16s ease-in-out infinite alternate;
}

.top-nav {
  background: linear-gradient(90deg, rgba(13, 6, 27, .88), rgba(30, 12, 54, .7), rgba(13, 6, 27, .88)) !important;
  border-bottom-color: rgba(246,196,83,.24) !important;
  box-shadow: 0 10px 34px rgba(0,0,0,.3), 0 1px 0 rgba(255,226,154,.1) inset !important;
}
.nav-brand span, .welcome-title strong { background-image: linear-gradient(100deg, #fff0bd, #f6c453 42%, #b86cff 92%) !important; }
.nav-brand { letter-spacing: 1.5px; }
.brand-icon { filter: drop-shadow(0 0 12px rgba(246,196,83,.75)) !important; }

.panel-card, .kpi-card, .welcome-hero, .auth-card {
  background: linear-gradient(145deg, rgba(40, 20, 67, .7), rgba(14, 8, 26, .72)) !important;
  border-color: rgba(246,196,83,.22) !important;
  box-shadow: 0 20px 50px rgba(0,0,0,.27), inset 0 1px 0 rgba(255,234,177,.08) !important;
}
.panel-card, .kpi-card { backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.panel-card::before, .kpi-card::before { background: linear-gradient(90deg, #8d43ff, #f6c453 48%, #ffe6a3) !important; }
.kpi-card:hover, .panel-card:hover { transform: translateY(-4px); border-color: rgba(246,196,83,.55) !important; box-shadow: 0 22px 50px rgba(0,0,0,.34), 0 0 28px rgba(154,77,255,.12) !important; }
.kpi-icon { box-shadow: 0 0 20px rgba(var(--kpi-rgb, 246,196,83), .12); }

/* Continuous running border light for login/auth cards */
.auth-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 0 !important;
}
.auth-card::before {
  content: '';
  position: absolute;
  inset: -45%;
  z-index: -2;
  background: conic-gradient(from 0deg, transparent 0 28%, #8f3dff 36%, #f6c453 43%, #fff0bd 48%, transparent 56% 100%);
  animation: auth-border-run 3.2s linear infinite;
}
.auth-card::after {
  content: '';
  position: absolute;
  inset: 2px;
  z-index: -1;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(40, 20, 67, .98), rgba(14, 8, 26, .98));
}
.auth-card > * { position: relative; z-index: 1; }
.auth-top, .auth-body, .auth-foot { border-color: rgba(246,196,83,.12) !important; }

.welcome-hero {
  min-height: 186px !important;
  background: linear-gradient(115deg, rgba(31, 13, 57, .94), rgba(67, 24, 91, .55) 54%, rgba(12, 9, 25, .92)) !important;
  border-radius: 22px !important;
}
.welcome-hero::after { background: linear-gradient(90deg, #8f3dff, #f6c453, #fff0bd, #8f3dff) !important; background-size: 220% 100%; animation: aurora-line 5s linear infinite; }
.welcome-logo { border-color: rgba(246,196,83,.78) !important; box-shadow: 0 0 0 5px rgba(154,77,255,.17), 0 0 34px rgba(246,196,83,.25) !important; animation: royal-float 5s ease-in-out infinite; }
.welcome-kicker { color: var(--vip-gold-soft) !important; }
.welcome-kicker::before { background: var(--vip-gold) !important; box-shadow: 0 0 16px rgba(246,196,83,.85) !important; }

.btn-primary-full, .btn-primary, button[type="submit"] {
  background: linear-gradient(110deg, #fff0b6, #f6c453 42%, #a45aff 112%) !important;
  color: #160a22 !important;
  border: 1px solid rgba(255,240,182,.7) !important;
  box-shadow: 0 10px 25px rgba(154,77,255,.22), 0 0 22px rgba(246,196,83,.13) !important;
}
.btn-primary-full:hover, .btn-primary:hover, button[type="submit"]:hover { filter: brightness(1.08); transform: translateY(-2px) !important; box-shadow: 0 15px 32px rgba(154,77,255,.3), 0 0 28px rgba(246,196,83,.2) !important; }
.input-field:focus, .form-control:focus, select:focus { border-color: rgba(246,196,83,.7) !important; box-shadow: 0 0 0 3px rgba(154,77,255,.16), 0 0 20px rgba(246,196,83,.1) !important; }

.menu-links a:hover, .theme-btn:hover, .ham-btn:hover { color: var(--vip-gold-soft) !important; border-color: rgba(246,196,83,.6) !important; box-shadow: 0 0 22px rgba(246,196,83,.16) !important; }
footer { background: rgba(14, 7, 27, .78) !important; border-top-color: rgba(246,196,83,.22) !important; }
footer .accent-dot { color: var(--vip-gold) !important; }

@keyframes ambient-drift { from { transform: translate3d(-1%, -1%, 0) scale(1); } to { transform: translate3d(1%, 1%, 0) scale(1.04); } }
@keyframes aurora-line { from { background-position: 0% 50%; } to { background-position: 220% 50%; } }
@keyframes royal-float { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-5px) rotate(1deg); } }
@keyframes auth-border-run { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
@media (max-width: 600px) { .welcome-hero { min-height: 154px !important; } .top-nav { padding: 0 16px !important; } }
