/* Luxury operations UI — enterprise fintech, soft neon, no cartoon pink */
@import url("https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap");

:root {
  --font-ui: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --font-display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --lux-glass: rgba(12, 18, 36, 0.55);
  --lux-glass-strong: rgba(10, 14, 28, 0.78);
  --lux-border: rgba(255, 255, 255, 0.08);
  --lux-glow-violet: rgba(139, 92, 246, 0.22);
  --lux-glow-cyan: rgba(34, 211, 238, 0.14);
  --lux-glow-mauve: rgba(196, 181, 253, 0.08);
}

html {
  font-family: var(--font-ui);
}

/* Ambient layer when staff / command deck is active */
body.staff-suite {
  background:
    radial-gradient(1000px 520px at 12% -8%, rgba(139, 92, 246, 0.09), transparent 55%),
    radial-gradient(800px 480px at 92% 4%, rgba(34, 211, 238, 0.07), transparent 50%),
    radial-gradient(600px 400px at 50% 100%, rgba(167, 139, 250, 0.05), transparent 45%),
    #030712;
}

body.staff-suite .lux-main-scroll {
  position: relative;
}

body.staff-suite .lux-main-scroll::before {
  content: "";
  position: fixed;
  inset: 0;
  left: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 70% 40% at 50% -10%, rgba(255, 255, 255, 0.03), transparent);
  z-index: 0;
}

body.staff-suite .lux-main-scroll > * {
  position: relative;
  z-index: 1;
}

/* --- Sidebar --- */
.lux-sidebar .lux-nav-link {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0.55rem 0.85rem;
  border-radius: 0.65rem;
  color: rgba(226, 232, 240, 0.82);
  text-decoration: none;
  border: 1px solid transparent;
  transition:
    color 0.22s ease,
    background 0.22s ease,
    border-color 0.22s ease,
    transform 0.2s ease,
    box-shadow 0.28s ease;
}

.lux-sidebar .lux-nav-glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  background: linear-gradient(120deg, rgba(139, 92, 246, 0.18), rgba(34, 211, 238, 0.12));
  transition: opacity 0.28s ease;
  pointer-events: none;
}

.lux-sidebar .lux-nav-link:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.07);
  transform: translateX(2px);
  box-shadow:
    0 0 0 1px rgba(167, 139, 250, 0.12),
    0 12px 40px -18px rgba(0, 0, 0, 0.55);
}

.lux-sidebar .lux-nav-link:hover .lux-nav-glow {
  opacity: 1;
}

/* --- Top bar --- */
.lux-topbar {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
}

.lux-btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  transition:
    border-color 0.22s ease,
    box-shadow 0.28s ease,
    color 0.2s ease;
}

.lux-btn-ghost:hover {
  border-color: rgba(167, 139, 250, 0.45);
  color: #e0e7ff;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}

/* --- Pulse (live indicator) --- */
@keyframes lux-pulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

.lux-pulse {
  animation: lux-pulse 2.2s ease-in-out infinite;
}

/* --- Welcome hero --- */
@keyframes lux-welcome-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.lux-welcome-wrap {
  animation: lux-welcome-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.lux-welcome-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  border: 1px solid var(--lux-border);
  background: linear-gradient(145deg, rgba(22, 28, 48, 0.92), rgba(10, 14, 28, 0.75));
  backdrop-filter: blur(20px);
  box-shadow:
    0 24px 80px -32px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 0 60px -20px var(--lux-glow-violet);
}

.lux-welcome-card::after {
  content: "";
  position: absolute;
  inset: -40% -20%;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255, 255, 255, 0.04) 45%,
    rgba(196, 181, 253, 0.07) 50%,
    transparent 65%
  );
  background-size: 200% 100%;
  animation: lux-shimmer 10s linear infinite;
  pointer-events: none;
}

.lux-display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.lux-brand-text {
  font-family: var(--font-display);
}

/* --- Stat / productivity tiles --- */
.lux-stat {
  position: relative;
  border-radius: 1rem;
  border: 1px solid var(--lux-border);
  background: var(--lux-glass);
  backdrop-filter: blur(16px);
  transition:
    transform 0.25s ease,
    box-shadow 0.3s ease,
    border-color 0.25s ease;
}

.lux-stat:hover {
  transform: translateY(-3px);
  border-color: rgba(167, 139, 250, 0.25);
  box-shadow:
    0 20px 50px -28px rgba(0, 0, 0, 0.5),
    0 0 40px -12px var(--lux-glow-cyan);
}

.lux-stat-edge {
  position: absolute;
  left: 0;
  top: 0.65rem;
  bottom: 0.65rem;
  width: 3px;
  border-radius: 999px;
  opacity: 0.85;
}

/* --- Premium link cards --- */
.lux-tile {
  position: relative;
  border-radius: 1rem;
  border: 1px solid var(--lux-border);
  background: rgba(8, 12, 24, 0.45);
  backdrop-filter: blur(14px);
  transition:
    transform 0.26s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.26s ease,
    box-shadow 0.32s ease,
    background 0.26s ease;
}

.lux-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(34, 211, 238, 0.08));
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.lux-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(167, 139, 250, 0.28);
  box-shadow:
    0 24px 56px -24px rgba(0, 0, 0, 0.55),
    0 0 48px -16px var(--lux-glow-violet);
}

.lux-tile:hover::before {
  opacity: 1;
}

.lux-tile-edge {
  position: absolute;
  left: 0;
  top: 0.75rem;
  bottom: 0.75rem;
  width: 3px;
  border-radius: 999px;
}

/* --- Panels (activity, forms) --- */
.lux-panel {
  border-radius: 1.1rem;
  border: 1px solid var(--lux-border);
  background: var(--lux-glass-strong);
  backdrop-filter: blur(22px);
  box-shadow: 0 20px 60px -30px rgba(0, 0, 0, 0.55);
}

.lux-panel-soft {
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(6, 10, 22, 0.5);
  backdrop-filter: blur(12px);
}

/* --- Quick action pills --- */
.lux-quick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
  transition:
    transform 0.2s ease,
    box-shadow 0.28s ease,
    border-color 0.22s ease,
    color 0.2s ease;
}

.lux-quick:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 211, 238, 0.35);
  color: #f0fdfa;
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.15);
}

.lux-quick--violet:hover {
  border-color: rgba(167, 139, 250, 0.45);
  box-shadow: 0 0 28px rgba(139, 92, 246, 0.2);
}

.lux-quick--gold:hover {
  border-color: rgba(253, 230, 138, 0.35);
  box-shadow: 0 0 24px rgba(251, 191, 36, 0.12);
}

/* --- Form controls --- */
.lux-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.95);
}

.lux-input,
.lux-panel input[type="text"],
.lux-panel input[type="number"],
.lux-panel input[type="password"],
.lux-panel input[type="email"],
.lux-panel input[type="date"],
.lux-panel input[type="time"],
.lux-panel select,
.lux-panel textarea {
  width: 100%;
  border-radius: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(3, 7, 18, 0.65);
  color: #f1f5f9;
  padding: 0.55rem 0.85rem;
  font-size: 0.875rem;
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.lux-panel textarea {
  min-height: 5rem;
}

.lux-panel input:focus,
.lux-panel select:focus,
.lux-panel textarea:focus {
  outline: none;
  border-color: rgba(167, 139, 250, 0.45);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.12);
}

.lux-btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.35rem;
  border-radius: 0.7rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  color: #0f172a;
  background: linear-gradient(120deg, #5eead4, #a78bfa, #22d3ee);
  background-size: 180% 100%;
  box-shadow: 0 12px 36px -12px rgba(34, 211, 238, 0.35);
  transition:
    transform 0.2s ease,
    box-shadow 0.28s ease,
    filter 0.2s ease;
}

.lux-btn-submit:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 16px 44px -12px rgba(167, 139, 250, 0.35);
}

.lux-btn-submit--violet {
  background: linear-gradient(120deg, #c4b5fd, #8b5cf6, #22d3ee);
  color: #f8fafc;
}

/* --- Activity list rows --- */
.lux-feed-item {
  border-radius: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
  padding: 0.65rem 0.75rem;
  transition:
    background 0.22s ease,
    border-color 0.22s ease,
    transform 0.2s ease;
}

.lux-feed-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(167, 139, 250, 0.15);
  transform: translateX(2px);
}

/* --- Section titles --- */
.lux-section-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #f8fafc;
  letter-spacing: -0.02em;
}

.lux-section-sub {
  font-size: 0.8rem;
  color: rgba(148, 163, 184, 0.9);
  margin-top: 0.25rem;
}

/* --- Rewards / earnings --- */
.lux-earnings-hero {
  position: relative;
  overflow: hidden;
  border-radius: 1.15rem;
  border: 1px solid rgba(167, 211, 180, 0.15);
  background: linear-gradient(155deg, rgba(16, 40, 32, 0.85), rgba(8, 14, 28, 0.9));
  backdrop-filter: blur(18px);
}

.lux-earnings-hero::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 60%;
  height: 120%;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.12), transparent 65%);
  pointer-events: none;
}

.lux-figure {
  font-family: var(--font-display);
  font-size: 2.35rem;
  line-height: 1.1;
  color: #a7f3d0;
  letter-spacing: -0.03em;
}

/* --- Table --- */
.lux-table-wrap {
  overflow-x: auto;
}

.lux-table {
  width: 100%;
  font-size: 0.8rem;
  border-collapse: collapse;
}

.lux-table th {
  text-align: left;
  padding: 0.5rem 0.35rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.lux-table td {
  padding: 0.65rem 0.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: rgba(226, 232, 240, 0.92);
}

.lux-table tbody tr {
  transition: background 0.18s ease;
}

.lux-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

/* --- Tip / callout --- */
.lux-tip {
  border-radius: 1rem;
  border: 1px dashed rgba(167, 139, 250, 0.22);
  background: rgba(88, 28, 135, 0.06);
}

/* Admin command deck — commander wash */
body.admin-deck {
  background:
    radial-gradient(900px 480px at 8% -6%, rgba(6, 182, 212, 0.14), transparent 52%),
    radial-gradient(700px 440px at 96% 8%, rgba(245, 158, 11, 0.1), transparent 48%),
    radial-gradient(600px 380px at 50% 100%, rgba(99, 102, 241, 0.08), transparent 45%),
    #030712;
}

body.admin-deck .lux-main-scroll {
  position: relative;
}

body.admin-deck .lux-main-scroll > * {
  position: relative;
  z-index: 1;
}

.admin-cc-hero-glow {
  background: radial-gradient(ellipse 80% 70% at 20% 0%, rgba(34, 211, 238, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 50% at 100% 20%, rgba(245, 158, 11, 0.08), transparent 50%);
}

.admin-cc-stat {
  transition:
    transform 0.2s ease,
    box-shadow 0.25s ease;
}

.admin-cc-stat:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -24px rgba(34, 211, 238, 0.12);
}

.admin-cc-module {
  transition:
    border-color 0.22s ease,
    box-shadow 0.25s ease;
}

.admin-cc-module:hover {
  box-shadow: 0 12px 36px -20px rgba(6, 182, 212, 0.08);
}

/* --- Top menu bar (all breakpoints) --- */
.lux-top-menu-link {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.55rem;
  border-radius: 0.45rem;
  color: rgba(148, 163, 184, 0.95);
  text-decoration: none;
  white-space: nowrap;
  transition:
    color 0.15s ease,
    background 0.15s ease;
}

.lux-top-menu-link:hover {
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.06);
}

.lux-top-menu-link--active {
  color: #22d3ee;
  background: rgba(34, 211, 238, 0.12);
}

/* Staff TXN flash modals (import gate / dup / reject) — hard to miss */
@keyframes staff-txn-flash-backdrop-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes staff-txn-flash-card-in {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(18px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes staff-txn-flash-gate-ring {
  0%,
  100% {
    box-shadow:
      0 0 60px rgba(244, 63, 94, 0.35),
      0 0 0 0 rgba(244, 63, 94, 0.35);
  }
  50% {
    box-shadow:
      0 0 100px rgba(244, 63, 94, 0.55),
      0 0 0 10px rgba(244, 63, 94, 0);
  }
}

.staff-txn-flash-backdrop {
  animation: staff-txn-flash-backdrop-in 0.28s ease-out both;
}

.staff-txn-flash-card {
  animation: staff-txn-flash-card-in 0.42s cubic-bezier(0.22, 1.12, 0.36, 1) both;
}

.staff-txn-flash-gate-attn {
  animation:
    staff-txn-flash-card-in 0.42s cubic-bezier(0.22, 1.12, 0.36, 1) both,
    staff-txn-flash-gate-ring 1.1s ease-in-out 3 both;
}

/* Respect motion preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- Per-user command shell (finance / ops / CRM — not warm-hybrid pages) --- */
body[data-shell-density="compact"]:not(.staff-warm-hybrid) main.lux-main-scroll {
  padding: 0.75rem 1rem;
}

@media (min-width: 640px) {
  body[data-shell-density="compact"]:not(.staff-warm-hybrid) main.lux-main-scroll {
    padding: 1rem 1.25rem;
  }
}

@media (min-width: 1024px) {
  body[data-shell-density="compact"]:not(.staff-warm-hybrid) main.lux-main-scroll {
    padding: 1.25rem 1.75rem;
  }
}

body:not(.staff-warm-hybrid)[data-shell-tone="midnight"] {
  background:
    radial-gradient(1000px 520px at 10% -10%, rgba(59, 130, 246, 0.16), transparent 55%),
    radial-gradient(820px 460px at 92% 4%, rgba(34, 211, 238, 0.09), transparent 50%),
    #030712;
}

body:not(.staff-warm-hybrid)[data-shell-tone="aurora"] {
  background:
    radial-gradient(920px 500px at 16% -12%, rgba(167, 139, 250, 0.18), transparent 52%),
    radial-gradient(760px 440px at 88% 6%, rgba(45, 212, 191, 0.12), transparent 48%),
    #020617;
}

body:not(.staff-warm-hybrid)[data-shell-accent="rose"] .lux-nav-link--warm-active {
  border-color: rgba(244, 114, 182, 0.55) !important;
  box-shadow:
    0 0 0 1px rgba(244, 114, 182, 0.35),
    0 12px 36px rgba(244, 114, 182, 0.22) !important;
}

body:not(.staff-warm-hybrid)[data-shell-accent="gold"] .lux-nav-link--warm-active {
  border-color: rgba(245, 158, 11, 0.55) !important;
  box-shadow:
    0 0 0 1px rgba(245, 158, 11, 0.35),
    0 12px 36px rgba(245, 158, 11, 0.2) !important;
}

body:not(.staff-warm-hybrid)[data-shell-accent="teal"] .lux-nav-link--warm-active {
  border-color: rgba(45, 212, 191, 0.55) !important;
  box-shadow:
    0 0 0 1px rgba(45, 212, 191, 0.35),
    0 12px 36px rgba(45, 212, 191, 0.2) !important;
}

body:not(.staff-warm-hybrid)[data-shell-accent="sapphire"] .lux-nav-link--warm-active {
  border-color: rgba(59, 130, 246, 0.55) !important;
  box-shadow:
    0 0 0 1px rgba(59, 130, 246, 0.35),
    0 12px 36px rgba(59, 130, 246, 0.22) !important;
}

body:not(.staff-warm-hybrid)[data-shell-accent="orchid"] .lux-nav-link--warm-active {
  border-color: rgba(167, 139, 250, 0.55) !important;
  box-shadow:
    0 0 0 1px rgba(139, 92, 246, 0.35),
    0 12px 36px rgba(139, 92, 246, 0.22) !important;
}
