@import url('/fonts/fonts-combined.css');

/* ─────────────────────────────────────────────────────
   CSS CUSTOM PROPERTIES — DARK MODE (default)
   "Keldivo Vault" — bold premium palette (v2)
───────────────────────────────────────────────────── */
:root {
  --background: hsl(240, 30%, 5%);
  --foreground: hsl(220, 25%, 96%);
  --border: hsl(240, 18%, 22%);
  --input: hsl(240, 18%, 20%);
  --ring: hsl(255, 85%, 65%);

  --card: hsl(240, 24%, 11%);
  --card-foreground: hsl(220, 25%, 96%);
  --card-glass: hsla(240, 30%, 16%, 0.55);

  --popover: hsl(240, 24%, 11%);
  --popover-foreground: hsl(220, 25%, 96%);

  --primary: hsl(255, 85%, 65%);
  --primary-2: hsl(272, 78%, 60%);
  --primary-foreground: hsl(0, 0%, 100%);

  --secondary: hsl(190, 95%, 55%);
  --secondary-foreground: hsl(0, 0%, 100%);

  --gold: hsl(38, 90%, 58%);
  --gold-2: hsl(32, 90%, 55%);
  --gold-foreground: hsl(30, 60%, 12%);

  --muted: hsl(240, 18%, 16%);
  --muted-foreground: hsl(220, 15%, 62%);

  --accent: hsl(190, 95%, 55%);
  --accent-foreground: hsl(0, 0%, 100%);

  --destructive: hsl(0, 78%, 62%);
  --destructive-foreground: hsl(0, 0%, 100%);

  --sidebar: hsl(240, 28%, 7%);
  --sidebar-foreground: hsl(220, 25%, 96%);
  --sidebar-border: hsl(240, 18%, 16%);
  --sidebar-primary: hsl(255, 85%, 65%);
  --sidebar-primary-foreground: hsl(0, 0%, 100%);
  --sidebar-accent: hsl(240, 18%, 14%);
  --sidebar-accent-foreground: hsl(220, 25%, 96%);

  --chart-1: hsl(255, 85%, 65%);
  --chart-2: hsl(190, 95%, 55%);
  --chart-3: hsl(272, 78%, 62%);
  --chart-4: hsl(152, 70%, 45%);
  --chart-5: hsl(38, 90%, 58%);

  --radius: 0.625rem;
  --radius-sm: 0.5rem;
  --radius-lg: 1.25rem;
  --radius-full: 9999px;

  --elevate-1: rgba(255, 255, 255, 0.03);
  --elevate-2: rgba(255, 255, 255, 0.06);
  --button-outline: rgba(255, 255, 255, 0.14);

  --shadow-sm: 0 2px 8px -2px rgba(0,0,0,0.35);
  --shadow-md: 0 12px 32px -8px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04);
  --shadow-lg: 0 24px 60px -12px rgba(0,0,0,0.6);
  --glow-primary: 0 0 0 1px hsla(255,85%,65%,0.4), 0 8px 26px -6px hsla(255,85%,60%,0.5);
  --glow-gold: 0 0 0 1px hsla(38,90%,58%,0.4), 0 8px 22px -6px hsla(38,90%,55%,0.4);
}

/* ─────────────────────────────────────────────────────
   LIGHT MODE
───────────────────────────────────────────────────── */
html.light {
  --background: hsl(220, 20%, 97%);
  --foreground: hsl(220, 25%, 10%);
  --border: hsl(220, 15%, 90%);
  --input: hsl(220, 15%, 90%);
  --ring: hsl(255, 85%, 60%);

  --card: hsl(0, 0%, 100%);
  --card-foreground: hsl(220, 25%, 10%);
  --card-glass: hsla(0, 0%, 100%, 0.6);

  --popover: hsl(0, 0%, 100%);
  --popover-foreground: hsl(220, 25%, 10%);

  --primary: hsl(255, 85%, 60%);
  --primary-2: hsl(272, 78%, 55%);
  --primary-foreground: hsl(0, 0%, 100%);

  --secondary: hsl(190, 95%, 48%);
  --secondary-foreground: hsl(0, 0%, 100%);

  --gold: hsl(38, 85%, 50%);
  --gold-2: hsl(32, 88%, 46%);
  --gold-foreground: hsl(30, 60%, 14%);

  --muted: hsl(220, 15%, 94%);
  --muted-foreground: hsl(220, 15%, 45%);

  --accent: hsl(190, 95%, 48%);
  --accent-foreground: hsl(0, 0%, 100%);

  --destructive: hsl(0, 78%, 55%);
  --destructive-foreground: hsl(0, 0%, 100%);

  --sidebar: hsl(0, 0%, 100%);
  --sidebar-foreground: hsl(220, 25%, 10%);
  --sidebar-border: hsl(220, 15%, 90%);
  --sidebar-primary: hsl(255, 85%, 60%);
  --sidebar-primary-foreground: hsl(0, 0%, 100%);
  --sidebar-accent: hsl(220, 15%, 96%);
  --sidebar-accent-foreground: hsl(220, 25%, 10%);

  --shadow-sm: 0 2px 8px -2px rgba(0,0,0,0.08);
  --shadow-md: 0 12px 32px -8px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.03);
  --shadow-lg: 0 24px 60px -12px rgba(0,0,0,0.18);
  --glow-primary: 0 0 0 1px hsla(255,85%,60%,0.3), 0 8px 26px -6px hsla(255,85%,60%,0.35);
  --glow-gold: 0 0 0 1px hsla(38,85%,50%,0.3), 0 8px 22px -6px hsla(38,85%,50%,0.3);

  --elevate-1: rgba(0, 0, 0, 0.02);
  --elevate-2: rgba(0, 0, 0, 0.04);
  --button-outline: rgba(0, 0, 0, 0.08);
}

/* ─────────────────────────────────────────────────────
   RESET & BASE
───────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* ─────────────────────────────────────────────────────
   ANIMATIONS
───────────────────────────────────────────────────── */
@keyframes fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slide-in-left {
  from { transform: translateX(-100%); }
  to   { transform: translateX(0); }
}
@keyframes slide-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}
@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 20px hsl(255 85% 60% / 0.3); }
  50%       { box-shadow: 0 0 40px hsl(255 85% 60% / 0.6); }
}
@keyframes orbit {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}
@keyframes lock-pulse {
  0%, 100% { box-shadow: 0 0 0 0 hsl(255 85% 60% / 0.4), 0 0 12px hsl(255 85% 60% / 0.3); }
  50%       { box-shadow: 0 0 0 8px hsl(255 85% 60% / 0), 0 0 28px hsl(190 95% 50% / 0.6); }
}
@keyframes bubble-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

/* ─────────────────────────────────────────────────────
   TYPOGRAPHY HELPERS
───────────────────────────────────────────────────── */
.text-xs   { font-size: 0.75rem; }
.text-sm   { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg   { font-size: 1.125rem; }
.text-xl   { font-size: 1.25rem; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ─────────────────────────────────────────────────────
   BUTTONS
───────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4375rem;
  padding: 0 1.125rem;
  height: 2.375rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(.34,1.56,.4,1), box-shadow 0.25s ease,
              background-position 0.5s ease, background-color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.btn svg, .btn i {
  transition: transform 0.25s cubic-bezier(.34,1.56,.4,1);
}
.btn:hover svg, .btn:hover i {
  transform: translateX(1px) scale(1.08);
}
.btn:active {
  transform: scale(0.96);
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* Shine sweep — reused on every solid/gradient button, not just landing CTAs */
.btn-default::after, .btn-primary::after, .btn-gradient::after, .btn-gold::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 45%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.45), transparent);
  transform: translateX(-150%) skewX(-20deg);
  pointer-events: none;
}
.btn-default:hover::after, .btn-primary:hover::after,
.btn-gradient:hover::after, .btn-gold:hover::after {
  animation: kv-shine-sweep 0.85s ease;
}

.btn-default, .btn-primary, .btn-gradient {
  background: linear-gradient(120deg, var(--primary), var(--primary-2), var(--secondary), var(--primary));
  background-size: 300% auto;
  background-position: 0% center;
  color: white;
  box-shadow: 0 4px 18px -4px hsla(255,85%,60%,0.4);
}
.btn-default:hover, .btn-primary:hover, .btn-gradient:hover {
  background-position: 100% center;
  transform: translateY(-2px);
  box-shadow: var(--glow-primary), 0 14px 32px -8px hsla(255,85%,60%,0.55);
}

.btn-gold {
  background: linear-gradient(120deg, var(--gold), var(--gold-2), var(--gold));
  background-size: 300% auto;
  background-position: 0% center;
  color: var(--gold-foreground);
  box-shadow: 0 4px 18px -4px hsla(38,90%,55%,0.4);
}
.btn-gold:hover {
  background-position: 100% center;
  transform: translateY(-2px);
  box-shadow: var(--glow-gold), 0 14px 28px -8px hsla(38,90%,55%,0.45);
}

.btn-outline {
  background: hsla(240, 25%, 20%, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--button-outline);
  color: var(--foreground);
}
html.light .btn-outline {
  border-color: var(--border);
  background: hsla(0, 0%, 100%, 0.6);
}
.btn-outline:hover {
  background: var(--muted);
  border-color: hsla(255, 85%, 65%, 0.45);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-ghost {
  background: transparent;
  border: none;
  color: var(--foreground);
}
.btn-ghost:hover {
  background: var(--muted);
  transform: translateY(-1px);
}
.btn-sm {
  height: 2rem;
  padding: 0 0.75rem;
  font-size: 0.8125rem;
}
.btn-destructive {
  background: var(--destructive);
  color: var(--destructive-foreground);
}
.btn-destructive:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -6px hsla(0, 78%, 55%, 0.45);
}

/* ─────────────────────────────────────────────────────
   FORM ELEMENTS
───────────────────────────────────────────────────── */
.input {
  display: block;
  width: 100%;
  height: 2.375rem;
  padding: 0 0.875rem;
  background: var(--input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--foreground);
  font-size: 0.9375rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input::placeholder {
  color: var(--muted-foreground);
}
.input:focus {
  border-color: var(--ring);
  box-shadow: 0 0 0 2px hsl(255 85% 60% / 0.15);
}
textarea.input {
  height: auto;
  padding: 0.625rem 0.875rem;
}
select.input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
  padding-right: 2.25rem;
}
.label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.375rem;
  color: var(--foreground);
}
.form-group {
  display: flex;
  flex-direction: column;
}
.form-error {
  font-size: 0.8125rem;
  color: var(--destructive);
  margin-top: 0.375rem;
}

/* Toggle switch */
.toggle-switch {
  position: relative;
  display: inline-flex;
  cursor: pointer;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.toggle-track {
  display: inline-block;
  width: 2.75rem;
  height: 1.5rem;
  background: var(--border);
  border-radius: 9999px;
  transition: background 0.2s;
  position: relative;
}
.toggle-track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 50%;
  background: white;
  transition: transform 0.2s;
}
.toggle-switch input:checked + .toggle-track {
  background: var(--primary);
}
.toggle-switch input:checked + .toggle-track::after {
  transform: translateX(1.25rem);
}

/* ─────────────────────────────────────────────────────
   ACCOUNT TYPE SELECTOR BUTTONS
───────────────────────────────────────────────────── */
.account-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.account-type-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.25rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted-foreground);
  cursor: pointer;
  transition: all 0.15s;
  font-size: 0.9375rem;
  font-weight: 600;
}
.account-type-btn:hover {
  border-color: var(--primary);
  color: var(--foreground);
}
.account-type-btn.selected {
  border-color: var(--primary);
  background: hsl(255 85% 60% / 0.08);
  color: var(--primary);
}

/* ─────────────────────────────────────────────────────
   CARDS
───────────────────────────────────────────────────── */
.glass-card {
  background: var(--card-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 1.125rem;
  padding: 1.375rem;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s cubic-bezier(.22,1,.36,1), box-shadow 0.3s ease, border-color 0.3s ease;
}
.glass-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: hsla(255, 85%, 65%, 0.3);
}
.glass-card-border-primary {
  border-color: hsl(255 85% 60% / 0.25);
}

.card-header {
  padding-bottom: 0.875rem;
}
.card-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.card-content {
  padding-top: 0;
}
.card-footer {
  display: flex;
  align-items: center;
  padding-top: 1.25rem;
  margin-top: 1.25rem;
  border-top: 1px solid var(--border);
  gap: 0.75rem;
}

/* Stat cards (gradient) */
.stat-card-gradient {
  border-radius: 1.125rem;
  padding: 1.375rem;
  color: white;
  position: relative;
  overflow: hidden;
  min-height: 120px;
  transition: transform 0.3s cubic-bezier(.22,1,.36,1), box-shadow 0.3s ease;
}
.stat-card-gradient:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.stat-glow-ring {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
}
.stat-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.625rem;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.stat-value {
  font-size: 1.875rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.375rem;
}
.stat-label {
  font-size: 0.8125rem;
  opacity: 0.85;
  font-weight: 500;
}
.stat-trend {
  font-size: 0.75rem;
  opacity: 0.7;
  margin-top: 0.375rem;
}

/* ─────────────────────────────────────────────────────
   AVATAR
───────────────────────────────────────────────────── */
.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.avatar-sm  { width: 2rem;  height: 2rem; }
.avatar-md  { width: 2.5rem; height: 2.5rem; }
.avatar-lg  { width: 3rem;  height: 3rem; }
.avatar-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, hsl(255, 85%,55%), hsl(280,70%,55%));
  color: white;
  font-weight: 700;
  font-size: 0.75rem;
}

/* ─────────────────────────────────────────────────────
   BADGES
───────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.badge-gold {
  background: hsl(38 90% 58% / 0.14);
  color: var(--gold);
  border: 1px solid hsl(38 90% 58% / 0.35);
}
.badge-pending {
  background: hsl(38 90% 56% / 0.1);
  color: hsl(38, 90%,56%);
  border: 1px solid hsl(38 90% 56% / 0.3);
}
.badge-accepted {
  background: hsl(190 95% 55% / 0.1);
  color: hsl(190, 95%,60%);
  border: 1px solid hsl(190 95% 55% / 0.3);
}
.badge-paymentpending {
  background: hsl(280 65% 65% / 0.1);
  color: hsl(280, 65%,70%);
  border: 1px solid hsl(280 65% 65% / 0.3);
}
.badge-in_escrow {
  background: hsl(213 94% 68% / 0.1);
  color: hsl(213,94%,68%);
  border: 1px solid hsl(213 94% 68% / 0.3);
}
.badge-delivered {
  background: hsl(263 70% 70% / 0.1);
  color: hsl(263,70%,70%);
  border: 1px solid hsl(263 70% 70% / 0.3);
}
.badge-completed {
  background: hsl(152 70% 48% / 0.1);
  color: hsl(152, 70%,48%);
  border: 1px solid hsl(152 70% 48% / 0.3);
}
.badge-disputed {
  background: hsl(0 78% 68% / 0.1);
  color: hsl(0, 78%,68%);
  border: 1px solid hsl(0 78% 68% / 0.3);
}
.badge-cancelled {
  background: var(--muted);
  color: var(--muted-foreground);
  border: 1px solid var(--border);
}

/* Animated pulse dot inside badge */
.pulse-dot {
  display: inline-block;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
  animation: pulse 2s infinite;
}

/* ─────────────────────────────────────────────────────
   TABLE
───────────────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
table {
  width: 100%;
  border-collapse: collapse;
}
thead th {
  padding: 0.75rem 1.25rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted-foreground);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
tbody td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  vertical-align: middle;
}
tbody tr:last-child td {
  border-bottom: none;
}
tbody tr:hover {
  background: var(--muted);
}

/* ─────────────────────────────────────────────────────
   FILTER PILLS
───────────────────────────────────────────────────── */
.filter-pill {
  display: inline-flex;
  align-items: center;
  height: 2rem;
  padding: 0 0.875rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 500;
  background: var(--muted);
  border: 1px solid var(--border);
  color: var(--muted-foreground);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.filter-pill:hover {
  color: var(--foreground);
  border-color: var(--primary);
}
.filter-pill.active {
  background: hsl(255 85% 60% / 0.12);
  border-color: hsl(255 85% 60% / 0.4);
  color: var(--primary);
}

/* ─────────────────────────────────────────────────────
   TIMELINE
───────────────────────────────────────────────────── */
.timeline {
  position: relative;
  padding-left: 1.5rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0.5rem;
  top: 0.25rem;
  bottom: 0;
  width: 1px;
  background: var(--border);
}
.timeline-item {
  position: relative;
  padding-bottom: 1.25rem;
}
.timeline-dot {
  position: absolute;
  left: -1.5rem;
  top: 0.125rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--background);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.timeline-dot.current {
  border-color: var(--primary);
  background: var(--primary);
  box-shadow: 0 0 12px hsl(255 85% 60% / 0.5);
}
.timeline-dot.past {
  border-color: hsl(152, 70%,48%);
  color: hsl(152, 70%,48%);
}

/* ─────────────────────────────────────────────────────
   MODAL
───────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
  animation: fade-in 0.2s ease;
}
.modal-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: slide-up 0.2s ease;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.modal-title {
  font-size: 1.125rem;
  font-weight: 700;
}
.modal-close {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--muted);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-foreground);
}
.modal-close:hover {
  background: var(--border);
  color: var(--foreground);
}

/* ─────────────────────────────────────────────────────
   TOAST
───────────────────────────────────────────────────── */
#toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}
.toast {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.875rem 1.125rem;
  min-width: 260px;
  max-width: 360px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  animation: slide-up 0.25s ease;
}
.toast-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--foreground);
}
.toast-desc {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  margin-top: 0.25rem;
}

/* ─────────────────────────────────────────────────────
   DROPDOWN
───────────────────────────────────────────────────── */
.dropdown {
  position: relative;
}
.dropdown-content {
  position: absolute;
  top: calc(100% + 0.5rem);
  background: var(--popover);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 200px;
  padding: 0.375rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  z-index: 999;
  display: none;
  animation: slide-up 0.15s ease;
}
.dropdown-content.active {
  display: block;
}
.dropdown-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.75rem;
  border-radius: calc(var(--radius) - 2px);
  font-size: 0.875rem;
  font-weight: 500;
  background: none;
  border: none;
  color: var(--foreground);
  cursor: pointer;
  text-align: left;
  transition: background 0.1s;
}
.dropdown-item:hover {
  background: var(--muted);
}
.dropdown-item.destructive {
  color: var(--destructive);
}
.dropdown-label {
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted-foreground);
  letter-spacing: 0.04em;
}
.dropdown-separator {
  height: 1px;
  background: var(--border);
  margin: 0.25rem 0;
}

/* ─────────────────────────────────────────────────────
   NOTIFICATIONS PANEL
───────────────────────────────────────────────────── */
.notif-btn {
  position: relative;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.625rem;
  background: var(--muted);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--foreground);
}
.notif-btn:hover {
  background: var(--card);
}
.notif-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--destructive);
  color: white;
  font-size: 0.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--background);
}
.notif-panel {
  position: absolute;
  top: calc(100% + 0.5rem);
  background: var(--popover);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 360px;
  max-width: calc(100vw - 2rem);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
  z-index: 999;
  display: none;
  animation: slide-up 0.15s ease;
  overflow: hidden;
}
.notif-panel.active {
  display: block;
}
.notif-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--border);
}
.notif-list {
  max-height: 360px;
  overflow-y: auto;
}
.notif-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--border);
  position: relative;
  cursor: pointer;
  transition: background 0.1s;
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: var(--muted); }
.notif-item.unread { background: hsl(255 85% 60% / 0.04); }
.notif-icon-wrap {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.unread-dot {
  position: absolute;
  top: 1rem;
  right: 0.75rem;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: var(--primary);
}
.notif-footer {
  padding: 0.625rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.8125rem;
  color: var(--primary);
  cursor: pointer;
}
.notif-footer button {
  background: none;
  border: none;
  color: inherit;
  font-size: inherit;
  cursor: pointer;
  font-weight: 500;
}

/* ─────────────────────────────────────────────────────
   DASHBOARD LAYOUT
───────────────────────────────────────────────────── */
.dashboard-root {
  display: flex;
  height: 100vh;
  overflow: hidden;
  background: var(--background);
}

.sidebar {
  width: 260px;
  flex-shrink: 0;
  background: var(--sidebar);
  border-right: 1px solid var(--sidebar-border);
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 100;
  overflow: hidden;
  transition: transform 0.25s ease;
}
.sidebar-logo {
  padding: 1.25rem 1.125rem;
  border-bottom: 1px solid var(--sidebar-border);
}
.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 0.875rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}
.sidebar-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 0.875rem;
  border-radius: 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--sidebar-foreground);
  opacity: 0.7;
  transition: all 0.15s;
  text-decoration: none;
}
.sidebar-nav a .nav-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.sidebar-nav a:hover {
  background: var(--sidebar-accent);
  opacity: 1;
}
.sidebar-nav a.active {
  background: hsl(255 85% 60% / 0.12);
  color: var(--primary);
  opacity: 1;
  border-left: 2px solid var(--primary);
  font-weight: 600;
}
.nav-badge {
  background: var(--primary);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: 9999px;
  min-width: 1.25rem;
  text-align: center;
}
.sidebar-footer {
  padding: 0.875rem 0.75rem;
  border-top: 1px solid var(--sidebar-border);
  position: relative;
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.875rem;
  border-radius: 0.75rem;
  border: none;
  background: none;
  cursor: pointer;
  transition: background 0.15s;
  color: var(--sidebar-foreground);
}
.sidebar-user:hover {
  background: var(--sidebar-accent);
}
.user-info {
  flex: 1;
  min-width: 0;
  text-align: left;
}
.user-name {
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-role {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  text-transform: capitalize;
}
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 99;
}
.sidebar-overlay.active {
  display: block;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin-left: 260px;
}

/* Topbar */
.topbar {
  height: 4rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 1.5rem;
  background: var(--background);
  flex-shrink: 0;
  position: relative;
  z-index: 40;
}
.topbar-search {
  flex: 1;
  max-width: 400px;
  position: relative;
  display: flex;
  align-items: center;
}
.topbar-search svg {
  position: absolute;
  left: 0.75rem;
  width: 1rem;
  height: 1rem;
  color: var(--muted-foreground);
  pointer-events: none;
}
.topbar-search .input {
  padding-left: 2.25rem;
  height: 2.25rem;
  font-size: 0.875rem;
  background: var(--muted);
  border-color: transparent;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}
.hamburger {
  display: none;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  background: none;
  border: 1px solid var(--border);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--foreground);
  flex-shrink: 0;
}

/* Theme toggle */
.theme-toggle {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.625rem;
  background: var(--muted);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--foreground);
  transition: background 0.15s;
}
.theme-toggle:hover { background: var(--card); }
html:not(.light) .theme-toggle .sun  { display: none; }
html.light        .theme-toggle .moon { display: none; }

/* Page content area */
.page-content {
  flex: 1;
  overflow-y: auto;
  padding: 2rem 2rem;
}

/* ─────────────────────────────────────────────────────
   LOGO
───────────────────────────────────────────────────── */
.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
}
.logo-icon {
  flex-shrink: 0;
}
.logo-text {
  display: flex;
  flex-direction: column;
}
.logo-name {
  font-size: 0.9375rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  background: linear-gradient(135deg, hsl(255, 85%,70%), hsl(190, 95%,60%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}
.logo-tagline {
  font-size: 0.6875rem;
  color: var(--muted-foreground);
  letter-spacing: 0.02em;
}

/* ─────────────────────────────────────────────────────
   LANDING PAGE
───────────────────────────────────────────────────── */
.landing-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1rem 2rem;
  background: rgba(10, 12, 22, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.landing-nav-links {
  display: flex;
  gap: 1.75rem;
  margin-left: 1.5rem;
}
.landing-nav-links a {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
  transition: color 0.15s;
}
.landing-nav-links a:hover {
  color: rgba(255,255,255,0.9);
}
.landing-nav-actions {
  display: flex;
  gap: 0.75rem;
  margin-left: auto;
}

/* Hero */
.hero-section {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7rem 2rem;
  position: relative;
  overflow: hidden;
}
.hero-bg-glow {
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(ellipse, hsl(255, 85%,60%,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero-grid-texture {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.hero-content {
  max-width: 1320px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5.5rem;
  text-align: left;
}
.hero-text-col {
  flex: 1;
  min-width: 320px;
}
.hero-visual-col {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  background: hsl(255 85% 60% / 0.1);
  border: 1px solid hsl(255 85% 60% / 0.25);
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: hsl(255, 85%,72%);
  margin-bottom: 2.5rem;
}
.hero-eyebrow-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: hsl(255, 85%,65%);
  animation: pulse 2s infinite;
}
.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: white;
  line-height: 1.08;
  margin-bottom: 1.75rem;
}
.hero-title-gradient {
  background: linear-gradient(135deg, hsl(255, 85%,70%), hsl(272, 78%,70%), hsl(190, 95%,65%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.5);
  max-width: 520px;
  margin: 0 0 2.75rem;
  line-height: 1.75;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

/* Hero Shield Visual */
.hero-shield-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 460px;
  width: 460px;
}
.hero-radial-glow {
  position: absolute;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(ellipse, hsl(255, 85%,60%,0.2), transparent 70%);
}
.hero-orbit-ring {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  border: 1px dashed hsl(255 85% 60% / 0.2);
  animation: orbit 20s linear infinite;
}
.hero-inner-ring {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 1px dashed hsl(190 95% 50% / 0.15);
  animation: orbit 15s linear infinite reverse;
}
.hero-platform-glow {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  height: 40px;
  background: hsl(255, 85%,60%,0.2);
  filter: blur(20px);
  border-radius: 50%;
}
.hero-shield {
  position: relative;
  z-index: 2;
  animation: float 4s ease-in-out infinite;
  filter: drop-shadow(0 20px 40px hsl(255 85% 60% / 0.4));
}
.hero-bubble {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.5rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--foreground);
  white-space: nowrap;
  animation: bubble-float 3s ease-in-out infinite;
  backdrop-filter: blur(8px);
  z-index: 3;
}
.bubble-icon {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: hsl(255 85% 60% / 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}
.bubble-check {
  background: hsl(152 70% 48% / 0.15);
  color: hsl(152, 70%,48%);
  border-radius: 50%;
  width: 1.25rem;
  height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
}

/* Feature grid */
.features-grid {
  grid-template-columns: repeat(3, 1fr);
}
.feature-card {
  background: hsl(220,30%,10%);
  border: 1px solid hsl(220,20%,18%);
  border-radius: 1.125rem;
  padding: 1.75rem;
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover {
  border-color: hsl(255 85% 60% / 0.3);
  transform: translateY(-2px);
}
.feature-icon-wrap {
  width: 3rem;
  height: 3rem;
  border-radius: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

/* Steps */
.steps-grid {
  grid-template-columns: repeat(3, 1fr);
}
.step-card {
  background: hsl(220,30%,9%);
  border: 1px solid hsl(220,20%,15%);
  border-radius: 1.125rem;
  padding: 2rem;
  position: relative;
}
.step-number {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-size: 2.5rem;
  font-weight: 900;
  color: rgba(255,255,255,0.04);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* Stats */
.stats-grid {
  grid-template-columns: repeat(4, 1fr);
}
.stat-display-card {
  background: hsl(220,30%,9%);
  border: 1px solid hsl(220,20%,15%);
  border-radius: 1.125rem;
  padding: 2rem 1.5rem;
}

/* FAQ Accordion */
.accordion-item {
  border: 1px solid hsl(220,20%,16%);
  border-radius: 0.875rem;
  overflow: hidden;
}
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.125rem 1.375rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  text-align: left;
  transition: color 0.15s;
}
.accordion-trigger:hover { color: white; }
.accordion-trigger.open { color: white; }
.accordion-trigger .chevron {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
  color: rgba(255,255,255,0.4);
  transition: transform 0.25s;
}
.accordion-trigger.open .chevron { transform: rotate(180deg); }
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.accordion-content.open {
  max-height: 200px;
}
.accordion-content-inner {
  padding: 0 1.375rem 1.25rem;
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.75;
}

/* ─────────────────────────────────────────────────────
   AUTH LAYOUT
───────────────────────────────────────────────────── */
.auth-root {
  display: flex;
  min-height: 100vh;
}
.auth-brand {
  flex: 1;
  display: none;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}
@media (min-width: 1024px) {
  .auth-brand { display: flex; }
}
.auth-brand-bg {
  position: absolute;
  inset: 0;
}
.auth-brand-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, hsl(255, 85%,60%,0.08), hsl(190, 95%,50%,0.05));
}

/* ── Auth scene: illustrated background (globe, shields, cards, watermark) ── */
.auth-scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.auth-globe {
  position: absolute;
  top: -100px;
  left: -140px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background-image: radial-gradient(circle, hsl(190 95% 65% / 0.55) 1px, transparent 1.6px);
  background-size: 16px 16px;
  -webkit-mask-image: radial-gradient(circle, black 55%, transparent 78%);
  mask-image: radial-gradient(circle, black 55%, transparent 78%);
  opacity: 0.5;
}
.auth-globe::after {
  content: "";
  position: absolute;
  inset: 40px;
  border-radius: 50%;
  border: 1px solid hsl(190 95% 65% / 0.2);
}
.auth-scene-shield {
  position: absolute;
  color: hsl(255 85% 65% / 0.22);
}
.auth-scene-shield.checked {
  color: hsl(190 95% 65% / 0.35);
}
.auth-scene-watermark {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  white-space: nowrap;
}
.auth-scene-watermark-text {
  font-size: 3.25rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: hsla(220, 25%, 96%, 0.06);
}
.auth-scene-watermark-tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: hsla(220, 25%, 96%, 0.08);
  margin-top: 0.5rem;
}
.auth-scene-card {
  position: absolute;
  width: 170px;
  background: hsla(240, 24%, 14%, 0.55);
  backdrop-filter: blur(10px);
  border: 1px solid hsl(255 85% 65% / 0.15);
  border-radius: 0.875rem;
  padding: 0.875rem 1rem;
  opacity: 0.8;
}
.auth-scene-card-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.625rem;
}
.auth-scene-card-avatar {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: hsl(255 85% 65% / 0.15);
  color: hsl(255, 85%, 75%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.auth-scene-card-role {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: hsla(220, 25%, 96%, 0.55);
}
.auth-scene-card-label {
  font-size: 0.6875rem;
  color: hsla(220, 25%, 96%, 0.35);
  margin-bottom: 0.125rem;
}
.auth-scene-card-value {
  font-size: 1.0625rem;
  font-weight: 800;
  color: hsla(152, 70%, 60%, 0.85);
  margin-bottom: 0.625rem;
}
.auth-scene-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.625rem;
  font-weight: 600;
  color: hsla(220, 25%, 96%, 0.4);
}
.auth-scene-dock {
  position: absolute;
  bottom: 8%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}
.auth-scene-dock-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid hsl(255 85% 65% / 0.15);
  background: hsla(240, 24%, 14%, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsla(220, 25%, 96%, 0.3);
}
.auth-brand-content {
  position: relative;
  z-index: 1;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 480px;
}
.auth-form-side {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
}
.auth-form-inner {
  width: 100%;
  max-width: 420px;
}
.auth-logo-mobile {
  display: flex;
  justify-content: center;
  margin-bottom: 2.5rem;
}
@media (min-width: 1024px) {
  .auth-logo-mobile { display: none; }
  .auth-form-side {
    margin-left: 0;
    max-width: none;
    flex: 1;
  }
}

/* ─────────────────────────────────────────────────────
   WIZARD (CREATE DEAL)
───────────────────────────────────────────────────── */
.wizard-steps {
  display: flex;
  align-items: center;
}
.wizard-step {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
}
.step-circle {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--background);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--muted-foreground);
  transition: all 0.2s;
}
.step-circle.active {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
  box-shadow: 0 0 16px hsl(255 85% 60% / 0.4);
}
.step-circle.completed {
  border-color: hsl(152, 70%,48%);
  background: hsl(152 70% 48% / 0.15);
  color: hsl(152, 70%,48%);
}
.step-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted-foreground);
}
.wizard-step.active .step-label { color: var(--foreground); }
.wizard-step.completed .step-label { color: hsl(152, 70%,48%); }
.wizard-connector {
  flex: 1;
  height: 1px;
  background: var(--border);
  margin: 0 0.75rem;
}
.wizard-connector.completed {
  background: hsl(152, 70%,48%);
}

/* ─────────────────────────────────────────────────────
   ESCROW HERO CARD
───────────────────────────────────────────────────── */
.escrow-hero-card {
  background: linear-gradient(135deg, hsl(250,50%,12%), hsl(220,40%,10%));
  border: 1px solid hsl(255 85% 60% / 0.2);
  border-radius: 1.25rem;
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  position: relative;
  overflow: hidden;
  flex-wrap: wrap;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s cubic-bezier(.22,1,.36,1), box-shadow 0.3s ease, border-color 0.3s ease;
}
.escrow-hero-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg), var(--glow-primary);
  border-color: hsl(255 85% 65% / 0.35);
}
.escrow-hero-glow {
  position: absolute;
  top: -50px;
  left: 100px;
  width: 300px;
  height: 200px;
  background: radial-gradient(ellipse, hsl(255, 85%,60%,0.15), transparent 70%);
  pointer-events: none;
}
.escrow-hero-text {
  flex: 1;
  min-width: 200px;
}
.escrow-hero-stats {
  display: flex;
  gap: 2rem;
  flex-shrink: 0;
}
.escrow-stat {
  text-align: center;
}
.escrow-stat-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: white;
}
.escrow-stat-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  margin-top: 0.25rem;
}

/* NeonLockOrb */
.neon-lock-orb {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, hsl(255, 85%,60%,0.3), hsl(190, 95%,50%,0.15));
  border: 1px solid hsl(255, 85%,60%,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: lock-pulse 2.5s ease-in-out infinite;
  color: hsl(255, 85%,60%);
  flex-shrink: 0;
  position: relative;
}
.orb-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid hsl(255, 85%,60%,0.2);
  animation: orbit 6s linear infinite;
}
.orb-ring-1 { width: 120%; height: 120%; animation-duration: 6s; }
.orb-ring-2 { width: 150%; height: 150%; animation-duration: 9s; animation-direction: reverse; }
.orb-core {
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
@keyframes lock-pulse {
  0%, 100% { box-shadow: 0 0 0 0 hsl(255 85% 60% / 0.4), 0 0 12px hsl(255 85% 60% / 0.3); }
  50%       { box-shadow: 0 0 0 8px hsl(255 85% 60% / 0), 0 0 28px hsl(190 95% 50% / 0.6); }
}

/* ─────────────────────────────────────────────────────
   WALLET HERO
───────────────────────────────────────────────────── */
.wallet-hero {
  background: linear-gradient(135deg, hsl(263,70%,40%), hsl(255, 85%,35%), hsl(220,60%,30%));
  border-radius: 1.25rem;
  padding: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
  overflow: hidden;
  flex-wrap: wrap;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s cubic-bezier(.22,1,.36,1), box-shadow 0.3s ease;
}
.wallet-hero:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg), var(--glow-primary);
}
.wallet-hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 50%, hsl(190, 95%,50%,0.15), transparent 60%);
}

/* ─────────────────────────────────────────────────────
   MESSAGES PAGE
───────────────────────────────────────────────────── */
.msgs-sidebar {
  width: 320px;
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}
.msgs-conv-list {
  flex: 1;
  overflow-y: auto;
}
.conv-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background 0.1s;
}
.conv-item:hover { background: var(--muted); }
.conv-item.active { background: hsl(255 85% 60% / 0.08); border-left: 2px solid var(--primary); }
.msgs-chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}
.msgs-chat-header {
  height: 4rem;
  border-bottom: 1px solid var(--border);
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.875rem;
  flex-shrink: 0;
}
.msgs-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.msg-row {
  display: flex;
  gap: 0.625rem;
  align-items: flex-end;
}
.msg-row.mine { flex-direction: row-reverse; }
.msg-bubble {
  max-width: 60%;
  padding: 0.75rem 1rem;
  border-radius: 1.125rem;
  font-size: 0.875rem;
  line-height: 1.6;
}
.msg-bubble.theirs {
  background: var(--muted);
  color: var(--foreground);
  border-bottom-left-radius: 0.25rem;
}
.msg-bubble.mine {
  background: var(--primary);
  color: white;
  border-bottom-right-radius: 0.25rem;
}
.msgs-input-bar {
  padding: 0.875rem 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
}

/* ─────────────────────────────────────────────────────
   REVIEWS
───────────────────────────────────────────────────── */
.star-bar-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.star-bar-track {
  flex: 1;
  height: 0.5rem;
  background: var(--muted);
  border-radius: 9999px;
  overflow: hidden;
}
.star-bar-fill {
  height: 100%;
  border-radius: 9999px;
  transition: width 0.5s ease;
}

/* ─────────────────────────────────────────────────────
   SETTINGS
───────────────────────────────────────────────────── */
.settings-tab {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 0.875rem;
  border-radius: 0.625rem;
  border: none;
  background: none;
  color: var(--muted-foreground);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  width: 100%;
  text-align: left;
  transition: all 0.15s;
  white-space: nowrap;
}
.settings-tab:hover {
  background: var(--muted);
  color: var(--foreground);
}
.settings-tab.active {
  background: hsl(255 85% 60% / 0.1);
  color: var(--primary);
  font-weight: 600;
}

/* ─────────────────────────────────────────────────────
   CHARTS AREA
───────────────────────────────────────────────────── */
.chart-container {
  position: relative;
  height: 250px;
}

/* ─────────────────────────────────────────────────────
   SKELETON LOADER
───────────────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--muted) 25%, hsl(220 20% 20%) 50%, var(--muted) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius);
}

/* ─────────────────────────────────────────────────────
   UTILITY HELPERS
───────────────────────────────────────────────────── */
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.font-mono { font-family: 'SF Mono', 'Fira Code', monospace; }
.italic { font-style: italic; }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-left   { text-align: left; }
.pointer-events-none { pointer-events: none; }
.cursor-pointer { cursor: pointer; }
.select-none { user-select: none; }

/* ─────────────────────────────────────────────────────
   DROPZONE — attractive drag-and-drop file input,
   used by the Submit Payment modal (Requests page)
───────────────────────────────────────────────────── */
.dropzone {
  border: 2px dashed var(--border);
  border-radius: 1rem;
  padding: 1.75rem 1.25rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s;
  background: var(--muted);
  position: relative;
}
.dropzone:hover {
  border-color: hsl(255 85% 60% / 0.5);
  background: hsl(255 85% 60% / 0.04);
}
.dropzone.drag-over {
  border-color: var(--primary);
  background: hsl(255 85% 60% / 0.08);
  transform: scale(1.01);
}
.dropzone.has-file {
  border-style: solid;
  border-color: hsl(152 70% 48% / 0.4);
  background: hsl(152 70% 48% / 0.06);
}
.dropzone-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: hsl(255 85% 60% / 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
  color: var(--primary);
}
.dropzone.has-file .dropzone-icon {
  background: hsl(152 70% 48% / 0.12);
  color: hsl(152, 70%, 48%);
}
.dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
