/* =============================================
   CLEARDD — APPLE LIQUID GLASS DESIGN SYSTEM
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  /* ── Apple Liquid Glass surfaces ─────────────── */
  --glass:            rgba(255,255,255,0.52);
  --glass-hover:      rgba(255,255,255,0.68);
  --glass-border:     rgba(255,255,255,0.78);
  --glass-border-top: rgba(255,255,255,0.96);
  --glass-gold:       rgba(245,158,11,0.16);
  --glass-blur:       blur(24px) saturate(220%);
  --glass-shadow:
    0 8px 32px rgba(120,60,220,0.12),
    0 2px 8px rgba(100,40,200,0.06),
    inset 0 1px 0 rgba(255,255,255,0.95),
    inset 0 -1px 0 rgba(200,180,255,0.10);
  --glass-shadow-hover:
    0 20px 60px rgba(120,60,220,0.20),
    0 6px 20px rgba(100,40,200,0.10),
    inset 0 1px 0 rgba(255,255,255,0.98);
  --glass-shadow-gold:
    0 12px 40px rgba(245,158,11,0.28),
    0 4px 16px rgba(245,158,11,0.14),
    inset 0 1px 0 rgba(255,255,255,0.95);

  /* ── Text (dark on light glass) ──────────────── */
  --text-primary:   #1a0e3d;
  --text-secondary: rgba(26,14,61,0.60);
  --text-muted:     rgba(26,14,61,0.38);

  /* ── Brand ───────────────────────────────────── */
  --navy:       rgba(26,14,61,0.07);
  --navy-mid:   rgba(26,14,61,0.12);
  --navy-light: rgba(26,14,61,0.05);
  --gold:       #F59E0B;
  --gold-light: #FCD34D;
  --gold-dim:   rgba(245,158,11,0.18);
  --blue:       #3B82F6;
  --blue-light: #93C5FD;
  --green:      #10B981;
  --red:        #EF4444;
  --purple:     #8B5CF6;
  --white:      #FFFFFF;

  /* ── Layout ──────────────────────────────────── */
  --font:        'Inter', system-ui, sans-serif;
  --radius-sm:   8px;
  --radius:      16px;
  --radius-lg:   22px;
  --radius-xl:   32px;
  --transition:  all 0.25s cubic-bezier(0.4, 0, 0.2, 1);

  /* ── Legacy compat ───────────────────────────── */
  --gray-50:   rgba(255,255,255,0.42);
  --gray-100:  rgba(255,255,255,0.52);
  --gray-200:  rgba(255,255,255,0.65);
  --gray-400:  rgba(26,14,61,0.38);
  --gray-600:  rgba(26,14,61,0.55);
  --gray-800:  rgba(26,14,61,0.75);
  --shadow-sm: var(--glass-shadow);
  --shadow:    var(--glass-shadow-hover);
  --shadow-lg: var(--glass-shadow-hover);
}

/* ── Reset ─────────────────────────────────────── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body {
  font-family: var(--font);
  background: linear-gradient(145deg, #f0e8ff 0%, #fde4f5 30%, #e8f0ff 65%, #e4fff5 100%);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Vivid color blobs that show through the glass panels */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 12% 18%, rgba(167,139,250,0.55) 0%, transparent 52%),
    radial-gradient(ellipse 45% 55% at 88% 75%, rgba(244,114,182,0.45) 0%, transparent 52%),
    radial-gradient(ellipse 50% 40% at 55% 38%, rgba(96,165,250,0.35) 0%, transparent 52%),
    radial-gradient(ellipse 38% 45% at 28% 80%, rgba(52,211,153,0.28) 0%, transparent 52%),
    radial-gradient(ellipse 35% 30% at 78% 18%, rgba(251,191,36,0.25) 0%, transparent 48%);
  pointer-events: none;
  z-index: 0;
}
body > * { position: relative; z-index: 1; }

/* ── Typography ─────────────────────────────────── */
h1 { font-size:3rem;    font-weight:800; line-height:1.1; color:var(--text-primary); }
h2 { font-size:2rem;    font-weight:700; line-height:1.2; color:var(--text-primary); }
h3 { font-size:1.25rem; font-weight:600; color:var(--text-primary); }
h4 { font-size:1rem;    font-weight:600; color:var(--text-primary); }
p  { color: var(--text-secondary); }

/* ── Glass surface ──────────────────────────────── */
.glass {
  background: var(--glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-top-color: var(--glass-border-top);
  box-shadow: var(--glass-shadow);
  border-radius: var(--radius);
}

/* ── Buttons ────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.25) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.2s;
}
.btn:hover::before { opacity: 1; }

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, #d97706 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(245,158,11,0.45), inset 0 1px 0 rgba(255,255,255,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(245,158,11,0.55), inset 0 1px 0 rgba(255,255,255,0.40);
}
.btn-outline {
  background: var(--glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-top-color: var(--glass-border-top);
  color: var(--text-primary);
  box-shadow: var(--glass-shadow);
}
.btn-outline:hover {
  background: var(--glass-hover);
  box-shadow: var(--glass-shadow-hover);
  transform: translateY(-2px);
}
.btn-ghost {
  background: rgba(255,255,255,0.45);
  backdrop-filter: blur(12px);
  color: var(--text-primary);
  border: 1px solid rgba(255,255,255,0.70);
}
.btn-ghost:hover { background: rgba(255,255,255,0.62); }
.btn-lg { padding:16px 36px; font-size:1.05rem; border-radius:var(--radius-lg); }

/* ── Navbar ─────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 0 48px;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.48);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid rgba(255,255,255,0.80);
  box-shadow: 0 1px 0 rgba(255,255,255,0.90), 0 4px 24px rgba(120,60,220,0.08);
}
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.navbar-logo span {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}
.navbar-logo span em { color: var(--gold); font-style: normal; }
.navbar-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.navbar-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}
.navbar-links a:hover { color: var(--text-primary); }

/* ── Sidebar ────────────────────────────────────── */
.layout { min-height: 100vh; }

.sidebar {
  background: rgba(255,255,255,0.42);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-right: 1px solid rgba(255,255,255,0.80);
  padding: 24px 0;
  position: fixed;
  top: 0; left: 0;
  width: 260px;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 32px rgba(120,60,220,0.08), inset -1px 0 0 rgba(255,255,255,0.90);
}
.sidebar-logo {
  padding: 16px 24px 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.72);
  margin-bottom: 16px;
}
.sidebar-logo span { font-size:1.1rem; font-weight:800; color:var(--text-primary); }
.sidebar-logo span em { color:var(--gold); font-style:normal; }
.sidebar-section { padding: 0 16px; margin-bottom: 8px; }
.sidebar-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  padding: 0 12px;
  margin-bottom: 6px;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: var(--transition);
  margin-bottom: 2px;
  border: 1px solid transparent;
}
.sidebar-link:hover {
  background: rgba(255,255,255,0.60);
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.80);
  box-shadow: 0 2px 8px rgba(120,60,220,0.08);
}
.sidebar-link.active {
  background: rgba(245,158,11,0.14);
  color: #b45309;
  border-color: rgba(245,158,11,0.35);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.70), 0 2px 8px rgba(245,158,11,0.15);
}
.sidebar-link svg { width:18px; height:18px; flex-shrink:0; }
.sidebar-bottom {
  margin-top: auto;
  padding: 16px;
  border-top: 1px solid rgba(255,255,255,0.70);
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}
.sidebar-user:hover {
  background: rgba(255,255,255,0.60);
  border-color: rgba(255,255,255,0.80);
}
.avatar {
  width:36px; height:36px;
  border-radius:50%;
  background: linear-gradient(135deg, var(--gold), var(--purple));
  display:flex; align-items:center; justify-content:center;
  font-weight:700; font-size:0.85rem; color:#fff;
  flex-shrink:0;
  box-shadow: 0 2px 8px rgba(245,158,11,0.40), inset 0 1px 0 rgba(255,255,255,0.35);
}
.sidebar-user-info { flex:1; overflow:hidden; }
.sidebar-user-name {
  font-size:0.85rem; font-weight:600; color:var(--text-primary);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.sidebar-user-role { font-size:0.75rem; color:var(--text-muted); }

/* ── Main Content ────────────────────────────────── */
.main { margin-left:260px; padding:40px; min-height:100vh; }
.page-header { margin-bottom:32px; }
.page-title { font-size:1.75rem; font-weight:700; color:var(--text-primary); margin-bottom:4px; }
.page-subtitle { color:var(--text-secondary); font-size:0.95rem; }

/* ── Cards ──────────────────────────────────────── */
.card {
  background: var(--glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-top-color: var(--glass-border-top);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
  padding: 24px;
  transition: var(--transition);
}
.card:hover {
  background: var(--glass-hover);
  box-shadow: var(--glass-shadow-hover);
  transform: translateY(-2px);
}

/* Stat Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 20px;
  margin-bottom: 32px;
}
.stat-card {
  background: var(--glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-top-color: var(--glass-border-top);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--glass-shadow);
}
.stat-card:hover {
  transform: translateY(-4px);
  background: var(--glass-hover);
  box-shadow: var(--glass-shadow-hover);
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  border-radius: var(--radius) var(--radius) 0 0;
}
.stat-card.gold::before  { background: linear-gradient(90deg, var(--gold), var(--gold-light)); box-shadow: 0 0 12px rgba(245,158,11,0.5); }
.stat-card.blue::before  { background: linear-gradient(90deg, var(--blue), var(--blue-light)); box-shadow: 0 0 12px rgba(59,130,246,0.5); }
.stat-card.green::before { background: linear-gradient(90deg, var(--green), #34D399); box-shadow: 0 0 12px rgba(16,185,129,0.5); }
.stat-card.navy::before  { background: linear-gradient(90deg, var(--purple), #c4b5fd); box-shadow: 0 0 12px rgba(139,92,246,0.4); }
.stat-icon {
  width:44px; height:44px;
  border-radius:var(--radius-sm);
  display:flex; align-items:center; justify-content:center;
  margin-bottom:16px;
}
.stat-icon.gold  { background:rgba(245,158,11,0.16); color:#d97706;  box-shadow:inset 0 1px 0 rgba(255,255,255,0.6); }
.stat-icon.blue  { background:rgba(59,130,246,0.16); color:var(--blue);  box-shadow:inset 0 1px 0 rgba(255,255,255,0.6); }
.stat-icon.green { background:rgba(16,185,129,0.16); color:#059669; box-shadow:inset 0 1px 0 rgba(255,255,255,0.6); }
.stat-icon.navy  { background:rgba(139,92,246,0.16); color:var(--purple); }
.stat-value { font-size:2rem; font-weight:800; color:var(--text-primary); line-height:1; margin-bottom:6px; }
.stat-label { font-size:0.85rem; color:var(--text-secondary); font-weight:500; }
.stat-change {
  display:inline-flex; align-items:center; gap:4px;
  font-size:0.78rem; font-weight:600;
  margin-top:8px; padding:3px 10px;
  border-radius:20px;
}
.stat-change.up   { background:rgba(16,185,129,0.14);  color:#059669; }
.stat-change.down { background:rgba(239,68,68,0.14);   color:var(--red); }

/* Deal Cards */
.deals-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.deal-card {
  background: var(--glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-top-color: var(--glass-border-top);
  border-radius: var(--radius);
  padding: 24px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: var(--glass-shadow);
}
.deal-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255,255,255,0.25) 0%, transparent 50%);
  pointer-events: none;
}
.deal-card:hover {
  transform: translateY(-5px);
  background: var(--glass-hover);
  border-color: rgba(245,158,11,0.45);
  box-shadow: var(--glass-shadow-gold);
}
.deal-card:hover .deal-arrow { opacity:1; transform:translateX(0); }
.deal-status {
  display:inline-flex; align-items:center; gap:6px;
  padding:4px 12px; border-radius:20px;
  font-size:0.75rem; font-weight:600;
  margin-bottom:16px;
  border: 1px solid transparent;
}
.deal-status.complete   { background:rgba(16,185,129,0.14); color:#059669; border-color:rgba(16,185,129,0.30); }
.deal-status.processing { background:rgba(59,130,246,0.14); color:var(--blue); border-color:rgba(59,130,246,0.30); }
.deal-status.review     { background:var(--glass-gold);     color:#d97706; border-color:rgba(245,158,11,0.35); }
.deal-status-dot { width:6px; height:6px; border-radius:50%; background:currentColor; }
.deal-status.processing .deal-status-dot { animation:pulse 1.5s infinite; }
.deal-name { font-size:1.05rem; font-weight:700; color:var(--text-primary); margin-bottom:6px; }
.deal-meta { font-size:0.82rem; color:var(--text-muted); margin-bottom:20px; }
.deal-progress-label {
  display:flex; justify-content:space-between;
  font-size:0.8rem; font-weight:600; margin-bottom:6px;
}
.deal-progress-label span:first-child { color:var(--text-secondary); }
.deal-progress-label span:last-child  { color:var(--text-primary); }
.progress-bar { height:5px; background:rgba(26,14,61,0.08); border-radius:10px; overflow:hidden; }
.progress-fill {
  height:100%; border-radius:10px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  box-shadow: 0 0 8px rgba(245,158,11,0.5);
  transition: width 1s ease;
}
.progress-fill.blue  { background:linear-gradient(90deg,var(--blue),var(--blue-light)); box-shadow:0 0 8px rgba(59,130,246,0.5); }
.progress-fill.green { background:linear-gradient(90deg,var(--green),#34D399); box-shadow:0 0 8px rgba(16,185,129,0.5); }
.deal-arrow {
  position:absolute; top:24px; right:24px;
  opacity:0; transform:translateX(-8px);
  transition:var(--transition); color:var(--gold);
}

/* ── Upload Page ──────────────────────────────────── */
.upload-zone {
  border: 2px dashed rgba(139,92,246,0.30);
  border-radius: var(--radius-lg);
  padding: 64px 40px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  position: relative;
  overflow: hidden;
  box-shadow: var(--glass-shadow);
}
.upload-zone::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(245,158,11,0.08), transparent 60%);
  opacity: 0;
  transition: var(--transition);
}
.upload-zone:hover {
  border-color: rgba(245,158,11,0.55);
  background: var(--glass-hover);
  box-shadow: var(--glass-shadow-gold);
}
.upload-zone:hover::before { opacity: 1; }
.upload-zone.dragging {
  border-color: var(--blue);
  background: rgba(59,130,246,0.10);
  transform: scale(1.01);
}
.upload-icon-wrap {
  width:88px; height:88px;
  border-radius:50%;
  background: rgba(255,255,255,0.70);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.90);
  display:flex; align-items:center; justify-content:center;
  margin:0 auto 24px;
  animation: float 3s ease-in-out infinite;
  box-shadow: 0 8px 24px rgba(120,60,220,0.15), inset 0 1px 0 rgba(255,255,255,0.95);
}
.upload-title { font-size:1.4rem; font-weight:700; color:var(--text-primary); margin-bottom:8px; }
.upload-subtitle { font-size:0.9rem; color:var(--text-secondary); margin-bottom:24px; }
.upload-formats { display:flex; justify-content:center; gap:12px; flex-wrap:wrap; }
.format-badge {
  display:flex; align-items:center; gap:6px;
  padding:6px 14px; border-radius:20px;
  font-size:0.78rem; font-weight:600;
  background: rgba(255,255,255,0.62);
  border: 1px solid rgba(255,255,255,0.82);
  color: var(--text-secondary);
}

/* Connect Cards */
.connect-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-top:32px; }
.connect-card {
  background: var(--glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-top-color: var(--glass-border-top);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--glass-shadow);
}
.connect-card:hover {
  border-color: rgba(59,130,246,0.45);
  box-shadow: 0 8px 32px rgba(59,130,246,0.15), var(--glass-shadow-hover);
  transform: translateY(-3px);
  background: var(--glass-hover);
}
.connect-logo {
  width:48px; height:48px;
  border-radius:var(--radius-sm);
  margin:0 auto 12px;
  display:flex; align-items:center; justify-content:center;
  font-weight:800; font-size:1rem;
}
.connect-name { font-size:0.9rem; font-weight:600; color:var(--text-primary); }
.connect-desc { font-size:0.78rem; color:var(--text-muted); margin-top:2px; }

/* ── Form inputs ──────────────────────────────────── */
input, textarea, select {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.58);
  border: 1px solid rgba(255,255,255,0.82);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.92rem;
  transition: var(--transition);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
input::placeholder, textarea::placeholder { color: var(--text-muted); }
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: rgba(245,158,11,0.60);
  background: rgba(255,255,255,0.75);
  box-shadow: 0 0 0 3px rgba(245,158,11,0.14), inset 0 1px 0 rgba(255,255,255,0.90);
}
label { font-size:0.85rem; font-weight:600; color:var(--text-secondary); margin-bottom:6px; display:block; }

/* ── Processing Page ──────────────────────────────── */
.processing-wrap {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
  padding: 60px 20px;
}
.processing-orb {
  width: 128px; height: 128px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(139,92,246,0.40), rgba(244,114,182,0.30), rgba(96,165,250,0.35));
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 2px solid rgba(255,255,255,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 40px;
  position: relative;
  animation: orb-breathe 4s ease-in-out infinite;
  box-shadow:
    0 0 40px rgba(139,92,246,0.30),
    0 0 80px rgba(244,114,182,0.15),
    inset 0 2px 0 rgba(255,255,255,0.90),
    inset 0 -2px 0 rgba(200,180,255,0.20);
}
.processing-orb::before, .processing-orb::after {
  content:''; position:absolute; border-radius:50%; border:1px solid;
  animation: ripple 2.4s ease-out infinite;
}
.processing-orb::before {
  width:170px; height:170px;
  border-color: rgba(139,92,246,0.30);
}
.processing-orb::after {
  width:210px; height:210px;
  border-color: rgba(244,114,182,0.20);
  animation-delay: 0.6s;
}
.processing-steps { text-align:left; margin-top:48px; }
.processing-step {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: var(--radius);
  margin-bottom: 8px;
  transition: var(--transition);
  background: var(--glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}
.processing-step.done   { border-color:rgba(16,185,129,0.40); background:rgba(16,185,129,0.10); }
.processing-step.active { border-color:rgba(59,130,246,0.40); background:rgba(59,130,246,0.10); }
.processing-step.waiting { opacity:0.45; }
.step-icon {
  width:36px; height:36px; border-radius:50%;
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.step-icon.done   { background:rgba(16,185,129,0.18); color:#059669; border:1px solid rgba(16,185,129,0.40); }
.step-icon.active { background:rgba(59,130,246,0.18); color:var(--blue); border:1px solid rgba(59,130,246,0.40); animation:pulse 1.5s infinite; }
.step-icon.waiting { background:rgba(26,14,61,0.06); color:var(--text-muted); border:1px solid rgba(26,14,61,0.12); }
.step-text  { flex:1; }
.step-name  { font-size:0.9rem; font-weight:600; color:var(--text-primary); }
.step-desc  { font-size:0.8rem; color:var(--text-secondary); }
.step-time  { font-size:0.78rem; font-weight:600; color:#059669; }

/* ── Results / KPI Strip ──────────────────────────── */
.results-header {
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom:32px;
}
.anomaly-banner {
  background: rgba(239,68,68,0.10);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(239,68,68,0.28);
  border-top-color: rgba(239,68,68,0.45);
  border-radius: var(--radius);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  box-shadow: 0 4px 24px rgba(239,68,68,0.12), inset 0 1px 0 rgba(255,255,255,0.70);
}
.anomaly-icon {
  width:40px; height:40px; border-radius:50%;
  background:rgba(239,68,68,0.14); display:flex; align-items:center; justify-content:center;
  color:var(--red); flex-shrink:0;
}
.anomaly-count { font-size:1.1rem; font-weight:700; color:var(--text-primary); }
.anomaly-sub   { font-size:0.85rem; color:var(--text-secondary); }

/* Financial Table */
.table-wrap {
  background: var(--glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-top-color: var(--glass-border-top);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--glass-shadow);
}
.table-scroll { overflow-x:auto; }
.fin-table { width:100%; border-collapse:collapse; font-size:0.85rem; }
.fin-table th {
  background: rgba(255,255,255,0.60);
  color: var(--text-secondary);
  font-weight:600; font-size:0.72rem;
  text-transform:uppercase; letter-spacing:0.8px;
  padding:14px 16px; text-align:right; white-space:nowrap;
  border-bottom: 1px solid rgba(255,255,255,0.78);
}
.fin-table th:first-child { text-align:left; }
.fin-table td {
  padding:11px 16px; text-align:right;
  border-bottom:1px solid rgba(26,14,61,0.05);
  color:var(--text-primary); font-weight:500; white-space:nowrap;
}
.fin-table td:first-child { text-align:left; font-weight:600; }
.fin-table tr:hover td { background:rgba(255,255,255,0.45); }
.fin-table tr.section-header td {
  background:rgba(255,255,255,0.45);
  font-weight:700; font-size:0.72rem;
  text-transform:uppercase; letter-spacing:0.8px;
  color:var(--text-muted); padding:9px 16px;
}
.fin-table tr.total td {
  background: rgba(245,158,11,0.12);
  color: #b45309;
  font-weight:700;
  border-top: 1px solid rgba(245,158,11,0.30);
  border-bottom:none;
}
.fin-table tr.subtotal td {
  background:rgba(255,255,255,0.45);
  font-weight:700; color:var(--text-primary);
  border-top:1px solid rgba(245,158,11,0.22);
}
.cell-anomaly { color:var(--red) !important; position:relative; }
.cell-anomaly::after { content:'⚠'; font-size:0.68rem; margin-left:4px; animation:pulse 1.5s infinite; }
.positive { color:#059669 !important; }
.negative { color:var(--red) !important; }

/* Summary / KPI Cards */
.summary-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-bottom:24px; }
.summary-card {
  background: var(--glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-top-color: var(--glass-border-top);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  box-shadow: var(--glass-shadow);
  transition: var(--transition);
}
.summary-card:hover { background:var(--glass-hover); transform:translateY(-2px); }
.summary-label {
  font-size:0.72rem; font-weight:700;
  text-transform:uppercase; letter-spacing:0.8px;
  color:var(--text-muted); margin-bottom:8px;
}
.summary-value { font-size:1.6rem; font-weight:800; color:var(--text-primary); }
.summary-value.gold  { color:#d97706; }
.summary-value.green { color:#059669; }
.summary-value.red   { color:var(--red); }

/* Anomaly Cards */
.anomaly-list  { display:flex; flex-direction:column; gap:10px; margin-top:16px; }
.anomaly-item {
  background: var(--glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--radius);
  padding: 16px 20px;
  border: 1px solid var(--glass-border);
  border-left: 3px solid var(--red);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: var(--transition);
  box-shadow: var(--glass-shadow);
}
.anomaly-item:hover { background:var(--glass-hover); box-shadow:var(--glass-shadow-hover); }
.anomaly-item.warning { border-left-color:var(--gold); }
.anomaly-item-icon {
  width:32px; height:32px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0; font-size:0.85rem;
}
.anomaly-item-icon.critical { background:rgba(239,68,68,0.14); color:var(--red); }
.anomaly-item-icon.warning  { background:rgba(245,158,11,0.14); color:#d97706; }
.anomaly-title  { font-size:0.9rem; font-weight:600; color:var(--text-primary); margin-bottom:4px; }
.anomaly-desc   { font-size:0.82rem; color:var(--text-secondary); }
.anomaly-actions { display:flex; gap:8px; margin-top:8px; }
.anomaly-action {
  font-size:0.75rem; font-weight:600;
  padding:4px 12px; border-radius:20px;
  cursor:pointer; border:1px solid transparent; transition:var(--transition);
  background: rgba(255,255,255,0.60);
}
.anomaly-action.confirm { background:rgba(239,68,68,0.10); color:var(--red); border-color:rgba(239,68,68,0.28); }
.anomaly-action.explain { background:rgba(245,158,11,0.10); color:#d97706; border-color:rgba(245,158,11,0.28); }
.anomaly-action.dismiss { background:rgba(26,14,61,0.06); color:var(--text-secondary); border-color:rgba(26,14,61,0.14); }
.anomaly-action:hover   { transform:translateY(-1px); filter:brightness(1.08); }

/* ── Report Page ──────────────────────────────────── */
.report-preview {
  background: var(--glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-top-color: var(--glass-border-top);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--glass-shadow-hover);
}
.report-header-bar {
  background: rgba(255,255,255,0.62);
  padding: 32px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.80);
}
.report-title   { color:var(--text-primary); font-size:1.4rem; font-weight:700; }
.report-subtitle { color:var(--text-secondary); font-size:0.85rem; margin-top:4px; }
.report-badge {
  background:linear-gradient(135deg,var(--gold),#d97706);
  color:#fff; font-weight:700; font-size:0.78rem;
  padding:6px 14px; border-radius:20px;
  box-shadow:0 4px 12px rgba(245,158,11,0.40);
}
.report-body { padding:40px; }
.download-btn-wrap { display:flex; gap:16px; justify-content:center; margin-top:40px; }

/* ── Landing Page ─────────────────────────────────── */
.hero {
  min-height: 100vh;
  background: transparent;
  display: flex;
  align-items: center;
  padding: 100px 80px 80px;
  position: relative;
  overflow: hidden;
}
.hero-bg-circle {
  position:absolute; border-radius:50%;
  filter:blur(90px); pointer-events:none;
}
.hero-bg-circle.c1 { width:600px; height:600px; background:rgba(139,92,246,0.18); top:-150px; right:-100px; }
.hero-bg-circle.c2 { width:400px; height:400px; background:rgba(245,158,11,0.12); bottom:-50px; left:30%; }
.hero-grid {
  display:grid; grid-template-columns:1fr 1fr; gap:80px;
  align-items:center; max-width:1200px; margin:0 auto; width:100%;
}
.hero-eyebrow {
  display:inline-flex; align-items:center; gap:8px;
  background:rgba(245,158,11,0.14);
  border:1px solid rgba(245,158,11,0.35);
  color:#d97706; padding:6px 16px; border-radius:20px;
  font-size:0.82rem; font-weight:600; margin-bottom:24px; letter-spacing:0.5px;
  backdrop-filter:blur(8px);
}
.hero h1 { color:var(--text-primary); font-size:3.5rem; margin-bottom:24px; line-height:1.1; }
.hero h1 em { color:var(--gold); font-style:normal; }
.hero p { color:var(--text-secondary); font-size:1.1rem; line-height:1.7; margin-bottom:40px; }
.hero-actions { display:flex; gap:16px; align-items:center; }
.hero-stats {
  display:flex; gap:40px; margin-top:56px;
  padding-top:40px; border-top:1px solid rgba(26,14,61,0.08);
}
.hero-stat-value { font-size:2rem; font-weight:800; color:var(--text-primary); }
.hero-stat-label { font-size:0.82rem; color:var(--text-muted); margin-top:2px; }

/* Features Section */
.features { padding:100px 80px; background:rgba(255,255,255,0.25); backdrop-filter:blur(20px); }
.section-eyebrow {
  display:inline-flex; align-items:center; gap:8px;
  color:#d97706; font-size:0.82rem; font-weight:700;
  text-transform:uppercase; letter-spacing:1.2px; margin-bottom:16px;
}
.section-title   { font-size:2.5rem; font-weight:800; color:var(--text-primary); margin-bottom:16px; line-height:1.2; }
.section-subtitle { font-size:1.05rem; color:var(--text-secondary); max-width:500px; margin-bottom:64px; }
.features-grid   { display:grid; grid-template-columns:repeat(3,1fr); gap:28px; }
.feature-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-top-color: var(--glass-border-top);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: var(--glass-shadow);
}
.feature-card::before {
  content:''; position:absolute;
  top:0; left:0; right:0; bottom:0;
  background:linear-gradient(135deg,rgba(255,255,255,0.25) 0%,transparent 55%);
  pointer-events:none;
}
.feature-card:hover {
  border-color:rgba(245,158,11,0.45);
  transform:translateY(-6px);
  box-shadow:var(--glass-shadow-gold);
  background:var(--glass-hover);
}
.feature-card:hover .feature-icon-wrap { transform:scale(1.08); }
.feature-icon-wrap {
  width:56px; height:56px; border-radius:var(--radius);
  display:flex; align-items:center; justify-content:center;
  margin-bottom:24px; transition:var(--transition);
  background:rgba(255,255,255,0.70);
  border:1px solid rgba(255,255,255,0.90);
}
.feature-title { font-size:1.1rem; font-weight:700; color:var(--text-primary); margin-bottom:12px; }
.feature-desc  { font-size:0.9rem; color:var(--text-secondary); line-height:1.6; }

/* ── Login Page ───────────────────────────────────── */
.login-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}
.login-left {
  background: rgba(255,255,255,0.35);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-right: 1px solid rgba(255,255,255,0.78);
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.login-left::before {
  content:''; position:absolute;
  width:400px; height:400px; border-radius:50%;
  background:rgba(245,158,11,0.12); filter:blur(80px);
  bottom:-100px; left:-50px; pointer-events:none;
}
.login-right {
  background: rgba(255,255,255,0.52);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-left: 1px solid rgba(255,255,255,0.80);
  padding: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-form-wrap {
  width: 100%;
  max-width: 380px;
}
.login-form-card {
  background: var(--glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-top-color: var(--glass-border-top);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--glass-shadow);
}

/* ── Utility ──────────────────────────────────────── */
.divider { height:1px; background:rgba(26,14,61,0.08); margin:24px 0; }
.section { margin-bottom:40px; }
.section-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:20px; }
.section-head h3 { color:var(--text-primary); }

/* Tabs */
.tabs { display:inline-flex; gap:4px; margin-bottom:24px; padding:4px; background:rgba(255,255,255,0.52); backdrop-filter:var(--glass-blur); -webkit-backdrop-filter:var(--glass-blur); border-radius:var(--radius); border:1px solid rgba(255,255,255,0.80); }
.tab {
  padding:8px 20px; border-radius:10px;
  font-size:0.85rem; font-weight:600; cursor:pointer;
  color:var(--text-secondary); transition:var(--transition);
  border:1px solid transparent;
}
.tab:hover { color:var(--text-primary); background:rgba(255,255,255,0.60); }
.tab.active {
  background: rgba(255,255,255,0.80);
  color:var(--text-primary);
  border-color:rgba(255,255,255,0.90);
  box-shadow:0 2px 8px rgba(120,60,220,0.10), inset 0 1px 0 rgba(255,255,255,0.95);
}

/* Badges / Pills */
.badge {
  display:inline-flex; align-items:center; gap:5px;
  padding:3px 10px; border-radius:20px;
  font-size:0.72rem; font-weight:700;
}
.badge-gold  { background:rgba(245,158,11,0.14); color:#d97706;  border:1px solid rgba(245,158,11,0.32); }
.badge-green { background:rgba(16,185,129,0.14); color:#059669;  border:1px solid rgba(16,185,129,0.28); }
.badge-red   { background:rgba(239,68,68,0.12);  color:var(--red);   border:1px solid rgba(239,68,68,0.28); }
.badge-blue  { background:rgba(59,130,246,0.12); color:var(--blue);  border:1px solid rgba(59,130,246,0.28); }

/* ── Animations ───────────────────────────────────── */
@keyframes float {
  0%,100% { transform:translateY(0); }
  50%     { transform:translateY(-10px); }
}
@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%     { opacity:0.65; transform:scale(0.94); }
}
@keyframes ripple {
  0%   { transform:scale(0.75); opacity:1; }
  100% { transform:scale(1.6); opacity:0; }
}
@keyframes orb-breathe {
  0%,100% { box-shadow:0 0 40px rgba(139,92,246,0.30),0 0 80px rgba(244,114,182,0.15),inset 0 2px 0 rgba(255,255,255,0.90); transform:scale(1); }
  50%     { box-shadow:0 0 60px rgba(139,92,246,0.45),0 0 120px rgba(244,114,182,0.25),inset 0 2px 0 rgba(255,255,255,0.95); transform:scale(1.04); }
}
@keyframes fadeInUp {
  from { opacity:0; transform:translateY(28px); }
  to   { opacity:1; transform:translateY(0); }
}
@keyframes shimmer {
  0%   { background-position:-200% center; }
  100% { background-position:200% center; }
}

.fade-in-up { animation:fadeInUp 0.55s cubic-bezier(0.4,0,0.2,1) forwards; }
.fade-in-up.delay-1 { animation-delay:0.08s; opacity:0; }
.fade-in-up.delay-2 { animation-delay:0.16s; opacity:0; }
.fade-in-up.delay-3 { animation-delay:0.24s; opacity:0; }
.fade-in-up.delay-4 { animation-delay:0.32s; opacity:0; }

.shimmer {
  background:linear-gradient(90deg,rgba(255,255,255,0.50) 25%,rgba(255,255,255,0.75) 50%,rgba(255,255,255,0.50) 75%);
  background-size:200% 100%;
  animation:shimmer 1.6s infinite;
}

/* Scrollbar */
::-webkit-scrollbar { width:5px; height:5px; }
::-webkit-scrollbar-track { background:rgba(255,255,255,0.30); }
::-webkit-scrollbar-thumb { background:rgba(139,92,246,0.30); border-radius:10px; }
::-webkit-scrollbar-thumb:hover { background:rgba(139,92,246,0.50); }

/* Run button */
.run-btn {
  display:inline-flex; align-items:center; gap:10px;
  background:linear-gradient(135deg,var(--gold),#d97706);
  color:#fff; font-weight:700; font-size:1rem;
  padding:14px 32px; border-radius:var(--radius-lg);
  border:none; cursor:pointer;
  box-shadow:0 4px 20px rgba(245,158,11,0.40),inset 0 1px 0 rgba(255,255,255,0.35);
  transition:var(--transition);
  text-decoration:none;
}
.run-btn:hover {
  transform:translateY(-3px);
  box-shadow:0 8px 32px rgba(245,158,11,0.55),inset 0 1px 0 rgba(255,255,255,0.40);
}

/* ── Template glass overrides ─────────────────────── */

/* Dashboard */
.metrics-bar,
.deals-panel,
.activity-card {
  backdrop-filter: blur(24px) saturate(220%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(220%) !important;
  background: rgba(255,255,255,0.52) !important;
  border: 1px solid rgba(255,255,255,0.78) !important;
  box-shadow: 0 8px 32px rgba(120,60,220,0.10), inset 0 1px 0 rgba(255,255,255,0.95) !important;
}
.dash-new-btn {
  background: var(--gold) !important;
  color: #fff !important;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(245,158,11,0.35) !important;
}
.dash-new-btn:hover {
  background: var(--gold-light) !important;
  color: #1a0e3d !important;
  transform: translateY(-2px);
}
.deals-table tbody tr:hover td { background: rgba(255,255,255,0.45) !important; }
.deals-table thead th {
  background: rgba(255,255,255,0.55) !important;
  color: rgba(26,14,61,0.50) !important;
  border-bottom: 1px solid rgba(255,255,255,0.75) !important;
}
.metric-value { color: #1a0e3d !important; }
.metric-label { color: rgba(26,14,61,0.55) !important; }
.metric:not(:last-child) { border-right-color: rgba(255,255,255,0.65) !important; }
.metric-accent { background: var(--gold) !important; }
.filter-btn {
  background: rgba(255,255,255,0.55) !important;
  border-color: rgba(255,255,255,0.78) !important;
  color: rgba(26,14,61,0.60) !important;
}
.filter-btn:hover { background: rgba(255,255,255,0.72) !important; color: #1a0e3d !important; }
.search-input {
  background: rgba(255,255,255,0.55) !important;
  border-color: rgba(255,255,255,0.78) !important;
  color: #1a0e3d !important;
}
.search-input:focus { border-color: rgba(245,158,11,0.55) !important; background: rgba(255,255,255,0.78) !important; }
.panel-head { border-bottom-color: rgba(255,255,255,0.65) !important; }
.panel-head h3 { color: #1a0e3d !important; }
.deal-name-cell { color: #1a0e3d !important; }
.deal-sub-cell { color: rgba(26,14,61,0.45) !important; }
.deals-table td { color: #1a0e3d !important; border-bottom-color: rgba(26,14,61,0.05) !important; }
.row-action { color: rgba(26,14,61,0.45) !important; border-color: transparent !important; }
.row-action:hover { background: rgba(255,255,255,0.65) !important; border-color: rgba(255,255,255,0.82) !important; color: #1a0e3d !important; }
.ebitda-cell { color: #1a0e3d !important; }
.ebitda-cell span { color: rgba(26,14,61,0.45) !important; }
.progress-mini { background: rgba(26,14,61,0.07) !important; }
.progress-mini-pct { color: rgba(26,14,61,0.45) !important; }
.activity-card .panel-head { border-bottom-color: rgba(255,255,255,0.65) !important; }
.activity-text { color: rgba(26,14,61,0.70) !important; }
.activity-text strong { color: #1a0e3d !important; }
.activity-time { color: rgba(26,14,61,0.40) !important; }
.quick-stat-row { border-bottom-color: rgba(26,14,61,0.05) !important; }
.quick-stat-label { color: rgba(26,14,61,0.55) !important; }
.quick-stat-value { color: #1a0e3d !important; }
.dash-header-left h1 { color: #1a0e3d !important; }
.dash-header-left p { color: rgba(26,14,61,0.48) !important; }

/* Status pills */
.status-pill.processing { background: rgba(59,130,246,0.12) !important; color: #2563eb !important; }
.status-pill.review { background: rgba(245,158,11,0.12) !important; color: #d97706 !important; }
.status-pill.complete { background: rgba(16,185,129,0.12) !important; color: #059669 !important; }
.status-pill.queued { background: rgba(26,14,61,0.06) !important; color: rgba(26,14,61,0.45) !important; }

/* Anomaly count in table */
.anomaly-count.none { color: rgba(26,14,61,0.35) !important; }
.anomaly-count.warn { color: #d97706 !important; }

/* Upload page */
.form-card {
  backdrop-filter: blur(24px) saturate(220%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(220%) !important;
  background: rgba(255,255,255,0.52) !important;
  border: 1px solid rgba(255,255,255,0.80) !important;
}

/* Processing page */
.proc-card {
  backdrop-filter: blur(24px) saturate(220%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(220%) !important;
  background: rgba(255,255,255,0.52) !important;
  border: 1px solid rgba(255,255,255,0.80) !important;
}
.proc-log {
  background: rgba(255,255,255,0.45) !important;
  border: 1px solid rgba(255,255,255,0.70) !important;
  color: #1a0e3d !important;
}
.proc-footer { border-top: 1px solid rgba(255,255,255,0.65) !important; }
.proc-skip { color: rgba(26,14,61,0.50) !important; }
.proc-skip:hover { color: var(--gold) !important; }
.proc-cancel { color: rgba(26,14,61,0.30) !important; }
.proc-cancel:hover { color: var(--red) !important; }
.proc-step.done .proc-step-indicator { background: rgba(16,185,129,0.16) !important; color: #059669 !important; }
.proc-step.active .proc-step-indicator { background: var(--gold) !important; color: #fff !important; }
.proc-step.wait .proc-step-indicator { background: rgba(26,14,61,0.08) !important; color: rgba(26,14,61,0.35) !important; }
.proc-step.done .proc-step-badge { background: rgba(16,185,129,0.12) !important; color: #059669 !important; }
.proc-step.active .proc-step-badge { background: rgba(245,158,11,0.14) !important; color: #d97706 !important; }
.proc-step.wait .proc-step-badge { background: rgba(26,14,61,0.06) !important; color: rgba(26,14,61,0.38) !important; }
.log-line .log-ts { color: rgba(26,14,61,0.30) !important; }
.log-line .log-ok { color: #059669 !important; }
.log-line .log-run { color: #2563eb !important; }
.log-cursor { background: rgba(26,14,61,0.5) !important; }

/* Results page */
.kpi-strip, .table-panel, .r-card {
  backdrop-filter: blur(24px) saturate(220%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(220%) !important;
  background: rgba(255,255,255,0.52) !important;
  border: 1px solid rgba(255,255,255,0.80) !important;
}
.pl-table thead th { background: rgba(255,255,255,0.60) !important; color: rgba(26,14,61,0.50) !important; }
.pl-table tr:hover td { background: rgba(255,255,255,0.50) !important; }
.pl-table td:first-child { color: rgba(26,14,61,0.75) !important; }
.anomaly-row:hover { background: rgba(255,255,255,0.45) !important; }
.a-btn.confirm { background: rgba(239,68,68,0.10) !important; border-color: rgba(239,68,68,0.28) !important; color: #dc2626 !important; }
.a-btn.ask { background: rgba(59,130,246,0.10) !important; border-color: rgba(59,130,246,0.28) !important; color: #2563eb !important; }
.a-btn.dismiss { background: rgba(26,14,61,0.06) !important; border-color: rgba(26,14,61,0.12) !important; color: rgba(26,14,61,0.50) !important; }
.period-sel { background: rgba(255,255,255,0.58) !important; border: 1px solid rgba(255,255,255,0.80) !important; color: #1a0e3d !important; }
.tab-btn { color: rgba(26,14,61,0.45) !important; }
.tab-btn:hover { color: #1a0e3d !important; }
.tab-btn.active { color: #d97706 !important; border-bottom-color: #d97706 !important; }
.tab-row { border-bottom: 1px solid rgba(26,14,61,0.07) !important; }

/* Report page */
.action-bar {
  background: rgba(255,255,255,0.60) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border-bottom: 1px solid rgba(255,255,255,0.80) !important;
}
.dl-btn.primary { background: var(--gold) !important; color: #fff !important; border-color: var(--gold) !important; }
.dl-btn.primary:hover { background: var(--gold-light) !important; color: #1a0e3d !important; }
.dl-btn.secondary {
  background: rgba(255,255,255,0.60) !important;
  color: #1a0e3d !important;
  border-color: rgba(255,255,255,0.82) !important;
}
.dl-btn.secondary:hover { background: rgba(255,255,255,0.78) !important; }

/* Login page */
.login-right {
  backdrop-filter: blur(24px) saturate(220%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(220%) !important;
}
.sign-in-btn { background: var(--gold) !important; color: #fff !important; }
.sign-in-btn:hover { background: var(--gold-light) !important; color: #1a0e3d !important; }
.google-btn {
  background: rgba(255,255,255,0.60) !important;
  border-color: rgba(255,255,255,0.82) !important;
  color: #1a0e3d !important;
}
.google-btn:hover { background: rgba(255,255,255,0.78) !important; }
.form-input {
  background: rgba(255,255,255,0.58) !important;
  border-color: rgba(255,255,255,0.80) !important;
  color: #1a0e3d !important;
}
.form-input::placeholder { color: rgba(26,14,61,0.38) !important; }
.form-input:focus { background: rgba(255,255,255,0.78) !important; border-color: rgba(245,158,11,0.60) !important; }
.form-input:-webkit-autofill,
.form-input:-webkit-autofill:hover,
.form-input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px rgba(255,255,255,0.85) inset !important;
  -webkit-text-fill-color: #1a0e3d !important;
  caret-color: #1a0e3d !important;
}
