/* ==========================================================================
   NyayaRent Bangalore - Humane & Friendly Rental Mediation Design System
   Warm Organic Palette: Terracotta Clay, Roasted Chai Amber, Bangalore Garden Sage
   Friendly Typography, Tactile Cards, and Casual Negotiation Atmosphere
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Warm Organic Canvas & Surfaces */
  --bg-primary: #fcfaf7;
  --bg-secondary: #f6f2ea;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-surface-subtle: #fcf9f4;
  --bg-glass: rgba(255, 255, 255, 0.88);
  
  /* Borders */
  --border-subtle: #e9e3d8;
  --border-card: #e3dbce;
  --border-focus: #c2410c;
  --border-glass: rgba(227, 219, 206, 0.6);

  /* Primary Brand: Roasted Terracotta & Warm Clay */
  --primary: #c2410c;
  --primary-hover: #9a3412;
  --primary-subtle: #fff7ed;
  --primary-border: #fed7aa;
  --primary-glow: rgba(194, 65, 12, 0.15);

  /* Warm Chai Amber & Spice Accents */
  --accent-amber: #d97706;
  --accent-amber-dark: #b45309;
  --accent-amber-subtle: #fffbeb;
  --accent-amber-border: #fde68a;

  /* Bangalore Garden Sage Green (Agreements & Protection) */
  --accent-sage: #15803d;
  --accent-sage-dark: #166534;
  --accent-sage-subtle: #f0fdf4;
  --accent-sage-border: #bbf7d0;

  /* Contested / Alert Coral Rose */
  --accent-rose: #dc2626;
  --accent-rose-subtle: #fef2f2;
  --accent-rose-border: #fecaca;

  /* Informational Slate Blue */
  --accent-blue: #0284c7;
  --accent-blue-subtle: #f0f9ff;
  --accent-blue-border: #bae6fd;

  /* Text Colors */
  --text-primary: #1c1917;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --text-inverse: #ffffff;

  /* Typography */
  --font-serif: 'Fraunces', Georgia, serif;
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Natural Tactile Shadows */
  --shadow-sm: 0 1px 3px rgba(45, 30, 15, 0.05);
  --shadow-md: 0 4px 16px -2px rgba(45, 30, 15, 0.07);
  --shadow-lg: 0 12px 32px -4px rgba(45, 30, 15, 0.09);
  --shadow-warm: 0 8px 24px -2px rgba(194, 65, 12, 0.12);

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-full: 9999px;

  --transition-smooth: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Warm Dark / Chai Night Theme Mode */
body.chai-night-theme {
  --bg-primary: #141210;
  --bg-secondary: #1e1a17;
  --bg-surface: #24201c;
  --bg-surface-elevated: #2b2622;
  --bg-surface-subtle: #1c1815;
  --bg-glass: rgba(36, 32, 28, 0.92);

  --border-subtle: #3a332d;
  --border-card: #453c35;
  --border-glass: rgba(69, 60, 53, 0.5);

  --text-primary: #f5f3ef;
  --text-secondary: #d1c9be;
  --text-muted: #9e9384;

  --primary-subtle: rgba(194, 65, 12, 0.18);
  --accent-amber-subtle: rgba(217, 119, 6, 0.18);
  --accent-sage-subtle: rgba(21, 128, 61, 0.18);
  --accent-rose-subtle: rgba(220, 38, 38, 0.18);

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.6);
}

/* Base Resets */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  background-image: 
    radial-gradient(circle at 15% 10%, rgba(217, 119, 6, 0.04) 0%, transparent 45%),
    radial-gradient(circle at 85% 20%, rgba(194, 65, 12, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 50% 90%, rgba(21, 128, 61, 0.03) 0%, transparent 50%);
  transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
  background: #d4ccbf;
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: #baa996;
}

.container {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   Navigation Bar (Warm & Approachable)
   ========================================================================== */
.top-navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: var(--bg-glass);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.85rem 0;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand-icon-shield {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #ea580c, #c2410c);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-warm);
  color: #ffffff;
  font-size: 1.25rem;
  transition: transform 0.2s ease;
}

.brand-logo:hover .brand-icon-shield {
  transform: rotate(-5deg) scale(1.05);
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.brand-title .odr-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: var(--primary-subtle);
  border: 1px solid var(--primary-border);
  color: var(--primary);
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
}

.brand-sub {
  font-family: var(--font-main);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-amber-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
}

/* Community Resolution Pill */
.pilot-pill {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.42rem 1.1rem;
  background: var(--accent-sage-subtle);
  border: 1px solid var(--accent-sage-border);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  color: var(--accent-sage-dark);
  font-weight: 600;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-sage);
  box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.2);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 0 5px rgba(21, 128, 61, 0.3); }
  100% { transform: scale(0.95); opacity: 0.7; }
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.btn-theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.btn-theme-toggle:hover {
  background: var(--bg-secondary);
  color: var(--primary);
  border-color: var(--primary-border);
}

.user-session-chip {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.user-locality-tag {
  font-size: 0.68rem;
  color: var(--text-muted);
  display: block;
  font-weight: 500;
  margin-top: -2px;
}

.user-session-chip .role-tag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
}

.role-tag.tenant {
  background: var(--accent-sage-subtle);
  color: var(--accent-sage);
  border: 1px solid var(--accent-sage-border);
}

.role-tag.landlord {
  background: var(--accent-amber-subtle);
  color: var(--accent-amber-dark);
  border: 1px solid var(--accent-amber-border);
}

.role-tag.arbitrator {
  background: var(--primary-subtle);
  color: var(--primary);
  border: 1px solid var(--primary-border);
}

.btn-logout {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-main);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.42rem 0.9rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition-smooth);
}

.btn-logout:hover {
  background: var(--accent-rose-subtle);
  color: var(--accent-rose);
  border-color: var(--accent-rose-border);
}

/* ==========================================================================
   Hero Header & Case Banner
   ========================================================================== */
.hero-header {
  padding: 1.75rem 0 1rem;
}

.hero-banner {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 1.85rem 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--primary);
}

.hero-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.hero-info {
  flex: 1;
  min-width: 320px;
}

.jurisdiction-sub {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.hero-info h1 {
  font-size: 1.9rem;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.badge-case-id {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.28rem 0.75rem;
  border-radius: var(--radius-full);
  background: var(--primary-subtle);
  color: var(--primary);
  border: 1px solid var(--primary-border);
  letter-spacing: 0.02em;
}

.hero-info p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 780px;
}

/* Quick Scenario Picker */
.scenario-picker {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  background: var(--bg-secondary);
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  min-width: 250px;
}

.scenario-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.scenario-pill-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: left;
  transition: var(--transition-smooth);
}

.scenario-pill-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-subtle);
}

.scenario-pill-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

/* Property Metadata Strip */
.property-strip {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr 1fr 1.5fr;
  gap: 1rem;
  background: var(--bg-surface-subtle);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
}

.prop-meta-item {
  display: flex;
  flex-direction: column;
}

.meta-lbl {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.meta-val {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ==========================================================================
   5-Stage Stepper Navigation Bar
   ========================================================================== */
.stepper-nav-bar {
  padding: 0.75rem 0 1.5rem;
}

.stepper-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 0.65rem 1rem;
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}

.step-node {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-main);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-smooth);
}

.step-node:hover {
  color: var(--primary);
  background: var(--primary-subtle);
}

.step-node.active {
  background: var(--primary-subtle);
  color: var(--primary);
  font-weight: 700;
}

.step-node.completed {
  color: var(--accent-sage);
}

.step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.step-node.active .step-num {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.step-node.completed .step-num {
  background: var(--accent-sage);
  color: #ffffff;
  border-color: var(--accent-sage);
}

.step-divider {
  flex: 1;
  height: 2px;
  background: var(--border-subtle);
  margin: 0 0.5rem;
  min-width: 15px;
}

/* ==========================================================================
   Main Glass Panels & Layout
   ========================================================================== */
.step-view {
  display: none;
}

.step-view.active {
  display: block;
  animation: fadeIn 0.28s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.glass-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 2.5rem;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1.25rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.panel-header h2 {
  font-size: 1.45rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.panel-sub {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

/* Form Controls */
.form-group {
  margin-bottom: 1.15rem;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.65rem 0.95rem;
  font-family: var(--font-main);
  font-size: 0.9rem;
  color: var(--text-primary);
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  outline: none;
  transition: var(--transition-smooth);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-subtle);
}

.form-control:disabled {
  background: var(--bg-secondary);
  color: var(--text-muted);
  cursor: not-allowed;
}

textarea.form-control {
  resize: vertical;
  line-height: 1.55;
}

.input-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon-wrap i {
  position: absolute;
  left: 0.95rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.input-icon-wrap .form-control {
  padding-left: 2.5rem;
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, #ea580c, #c2410c);
  border: 1px solid var(--primary);
  color: #ffffff;
  font-family: var(--font-main);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.7rem 1.45rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-warm);
  transition: var(--transition-smooth);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #c2410c, #9a3412);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px -2px rgba(194, 65, 12, 0.25);
}

.btn-secondary {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.7rem 1.35rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
}

.btn-secondary:hover {
  background: var(--bg-secondary);
  border-color: var(--border-subtle);
  color: var(--primary);
}

.step-footer-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================================================
   STAGE 1: Party Intake Cards & Dual Perspective
   ========================================================================== */
.intake-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
}

.party-card {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: relative;
  transition: var(--transition-smooth);
}

.party-card.highlight {
  border-top: 3px solid var(--primary);
}

.party-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

.party-badge.tenant {
  background: var(--accent-sage-subtle);
  color: var(--accent-sage-dark);
  border: 1px solid var(--accent-sage-border);
}

.party-badge.landlord {
  background: var(--accent-amber-subtle);
  color: var(--accent-amber-dark);
  border: 1px solid var(--accent-amber-border);
}

.party-active-indicator {
  font-size: 0.74rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--accent-sage-dark);
}

.perspective-lock-banner {
  display: none;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.76rem;
  font-weight: 600;
  margin-bottom: 1rem;
  align-items: center;
  gap: 0.5rem;
}

.party-card.perspective-locked {
  opacity: 0.65;
}

.party-card.perspective-locked .perspective-lock-banner {
  display: flex;
}

/* ==========================================================================
   STAGE 2: Evidence Cards & Uploads
   ========================================================================== */
.category-accordion {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.evidence-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.evidence-card:hover {
  border-color: var(--border-focus);
}

.evidence-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background: var(--bg-surface-subtle);
  cursor: pointer;
  user-select: none;
}

.evidence-title-group {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.cat-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--primary-subtle);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  border: 1px solid var(--primary-border);
}

.evidence-title-group h3 {
  font-size: 1.05rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.exhibit-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  background: var(--bg-secondary);
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
}

.evidence-title-group p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.claim-tag {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 700;
  background: var(--accent-amber-subtle);
  color: var(--accent-amber-dark);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--accent-amber-border);
}

.judicial-finding-badge {
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.25rem;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
}

.finding-tenant {
  background: var(--accent-sage-subtle);
  color: var(--accent-sage);
  border: 1px solid var(--accent-sage-border);
}

.finding-landlord {
  background: var(--accent-amber-subtle);
  color: var(--accent-amber-dark);
  border: 1px solid var(--accent-amber-border);
}

.evidence-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  padding: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

.evidence-col {
  position: relative;
  background: var(--bg-surface-subtle);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.evidence-side-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.85rem;
}

.evidence-side-label.landlord {
  color: var(--accent-amber-dark);
}

.evidence-side-label.tenant {
  color: var(--accent-sage-dark);
}

/* Upload zone */
.evidence-upload-section {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--border-card);
}

.upload-zone-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.45rem;
}

.custom-file-upload {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem;
  background: var(--bg-surface);
  border: 1px dashed var(--border-card);
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.custom-file-upload:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-subtle);
}

.file-uploader-input {
  display: none;
}

.evidence-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.65rem;
}

.evidence-thumb {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border-card);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.evidence-thumb:hover {
  transform: scale(1.08);
  border-color: var(--primary);
}

/* Add custom claim box */
.add-custom-claim-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-secondary);
  border: 1px dashed var(--border-card);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-lg);
  margin-top: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn-add-claim-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  color: var(--primary);
  font-family: var(--font-main);
  font-size: 0.84rem;
  font-weight: 700;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.btn-add-claim-item:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* ==========================================================================
   STAGE 3: Legal Fair-Play Dossier & KPIs
   ========================================================================== */
.fairness-dossier-panel {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.fairness-dossier-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.fairness-dossier-header h3 {
  font-size: 1.15rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.fairness-dossier-header p {
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin-top: 3px;
}

.dossier-metrics {
  display: flex;
  gap: 0.65rem;
}

.dossier-pill-tenant {
  background: var(--accent-sage-subtle);
  color: var(--accent-sage);
  border: 1px solid var(--accent-sage-border);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

.dossier-pill-landlord {
  background: var(--accent-amber-subtle);
  color: var(--accent-amber-dark);
  border: 1px solid var(--accent-amber-border);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

.fairness-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.fairness-party-card {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  border: 1px solid var(--border-subtle);
}

.fairness-party-card.protected {
  border-left: 4px solid var(--accent-sage);
}

.fairness-party-card.upheld {
  border-left: 4px solid var(--accent-amber);
}

.fairness-card-title {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-primary);
}

.fairness-card-list {
  list-style: none;
  font-size: 0.82rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.fairness-card-list li {
  position: relative;
  padding-left: 1rem;
}

.fairness-card-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 900;
}

/* Scales of justice bar */
.justice-scale-bar-wrap {
  margin-top: 1.25rem;
}

.justice-scale-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.tenant-weight {
  color: var(--accent-sage);
}

.landlord-weight {
  color: var(--accent-amber-dark);
}

.overall-verdict-tag {
  background: var(--bg-secondary);
  padding: 0.15rem 0.65rem;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
}

.justice-scale-track {
  display: flex;
  height: 10px;
  border-radius: var(--radius-full);
  overflow: hidden;
  background: var(--bg-secondary);
}

.justice-scale-fill-tenant {
  background: var(--accent-sage);
  transition: width 0.4s ease;
}

.justice-scale-fill-landlord {
  background: var(--accent-amber);
  transition: width 0.4s ease;
}

/* 4 KPI Cards */
.audit-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.stat-kpi-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease;
}

.stat-kpi-card:hover {
  transform: translateY(-2px);
}

.kpi-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.kpi-value {
  font-family: var(--font-mono);
  font-size: 1.55rem;
  font-weight: 700;
  margin: 0.4rem 0 0.2rem;
}

.kpi-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Legal breakdown table */
.audit-table-wrap {
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.audit-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.audit-table thead {
  background: var(--bg-surface-subtle);
  border-bottom: 2px solid var(--border-subtle);
}

.audit-table th {
  padding: 0.85rem 1rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

.audit-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

.audit-table tbody tr:hover {
  background: var(--bg-surface-subtle);
}

/* ==========================================================================
   STAGE 4: Casual Negotiation Room & Friendly Chai Table
   ========================================================================== */
.round-chips {
  display: flex;
  gap: 0.45rem;
}

.round-chip {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.round-chip.active {
  background: var(--primary-subtle);
  color: var(--primary);
  border-color: var(--primary-border);
}

/* Mediator's Chai Corner / Lounge */
.mediator-chai-lounge {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #fff7ed, #fef3c7);
  border: 1px solid #fde68a;
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.6rem;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
  gap: 1.25rem;
}

body.chai-night-theme .mediator-chai-lounge {
  background: linear-gradient(135deg, rgba(194, 65, 12, 0.15), rgba(217, 119, 6, 0.15));
  border-color: rgba(217, 119, 6, 0.35);
}

.mediator-avatar-box {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex: 1;
  min-width: 300px;
}

.mediator-avatar-img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent-amber);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.mediator-title-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.3rem;
}

.mediator-title-row strong {
  font-size: 0.95rem;
  color: var(--text-primary);
}

.badge-mediator {
  font-size: 0.7rem;
  font-weight: 700;
  background: #ffffff;
  color: var(--accent-amber-dark);
  border: 1px solid #fde68a;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
}

body.chai-night-theme .badge-mediator {
  background: var(--bg-surface);
}

.mediator-advice-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  font-style: italic;
}

.btn-meet-middle {
  background: linear-gradient(135deg, #d97706, #b45309);
  color: #ffffff;
  border: none;
  font-family: var(--font-main);
  font-size: 0.86rem;
  font-weight: 700;
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.25);
  white-space: nowrap;
  transition: var(--transition-smooth);
}

.btn-meet-middle:hover {
  background: linear-gradient(135deg, #b45309, #92400e);
  transform: translateY(-1px);
}

/* Interactive Gap Visualizer */
.gap-visualizer-card {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.75rem;
}

.gap-metrics-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  margin-bottom: 1.15rem;
}

.gap-stat {
  display: flex;
  flex-direction: column;
}

.gap-stat-label {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}

.gap-stat-val {
  font-family: var(--font-mono);
  font-size: 1.45rem;
  font-weight: 700;
}

.gap-stat-val.landlord {
  color: var(--accent-amber-dark);
}

.gap-stat-val.tenant {
  color: var(--accent-sage);
}

.gap-stat-val.gap-pct {
  color: var(--primary);
}

.visual-bar-container {
  display: flex;
  height: 18px;
  border-radius: var(--radius-full);
  overflow: hidden;
  background: var(--bg-secondary);
  border: 1px solid var(--border-card);
  margin-bottom: 0.65rem;
}

.visual-bar-fill {
  transition: width 0.35s ease;
}

.bar-landlord-retention {
  background: var(--accent-amber);
}

.bar-gap-dispute {
  background: var(--accent-rose);
}

.bar-tenant-refund {
  background: var(--accent-sage);
}

/* Negotiation Duel */
.negotiation-duel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  margin-bottom: 1.75rem;
}

.offer-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.offer-box.landlord-box {
  border-top: 3px solid var(--accent-amber);
}

.offer-box.tenant-box {
  border-top: 3px solid var(--accent-sage);
}

.locality-chip {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}

.range-slider {
  width: 100%;
  accent-color: var(--primary);
  margin: 0.75rem 0 1rem;
  cursor: pointer;
}

.offer-note-input {
  font-size: 0.84rem;
  background: var(--bg-surface-subtle);
}

.concession-tags {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.35rem;
}

.concession-btn {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: left;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition-smooth);
}

.concession-btn:hover {
  background: var(--primary-subtle);
  border-color: var(--primary-border);
  color: var(--primary);
}

/* Settlement alert cards */
.settlement-trigger-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--accent-sage-subtle);
  border: 1px solid var(--accent-sage-border);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.65rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.escalation-trigger-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--accent-rose-subtle);
  border: 1px solid var(--accent-rose-border);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.65rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================================================
   STAGE 5: Settlement Certificate & Signatures (Warm Paper Feel)
   ========================================================================== */
.settlement-view-grid {
  display: grid;
  grid-template-columns: 1.8fr 1.2fr;
  gap: 2rem;
}

.document-preview-sheet {
  background: #ffffff;
  border: 1px solid #ded5c7;
  border-radius: var(--radius-lg);
  padding: 2.25rem 2.5rem;
  box-shadow: 0 4px 20px -2px rgba(90, 60, 20, 0.08);
  position: relative;
  color: #1f2937;
}

body.chai-night-theme .document-preview-sheet {
  background: #1e1b18;
  border-color: #3d352e;
  color: #f3efe8;
}

.doc-watermark {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-25deg);
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 900;
  color: rgba(21, 128, 61, 0.06);
  pointer-events: none;
  white-space: nowrap;
}

.doc-header-block {
  text-align: center;
  border-bottom: 2px solid #e7dfd3;
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
}

body.chai-night-theme .doc-header-block {
  border-color: #3d352e;
}

.doc-header-block h2 {
  font-size: 1.35rem;
  color: #9a3412;
  letter-spacing: 0.02em;
}

.doc-header-block p {
  font-size: 0.82rem;
  color: #6b7280;
}

.doc-section {
  margin-bottom: 1.35rem;
  font-size: 0.85rem;
  line-height: 1.6;
}

.doc-section h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: #78350f;
  margin-bottom: 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

body.chai-night-theme .doc-section h4 {
  color: #ea580c;
}

.doc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  margin-top: 0.5rem;
}

.doc-table th, .doc-table td {
  padding: 0.55rem 0.75rem;
  border: 1px solid #e7dfd3;
  text-align: left;
}

body.chai-night-theme .doc-table th, body.chai-night-theme .doc-table td {
  border-color: #3d352e;
}

.doc-signatures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e7dfd3;
}

body.chai-night-theme .doc-signatures {
  border-color: #3d352e;
}

.sig-box {
  background: #fdfbf7;
  border: 1px solid #e7dfd3;
  border-radius: var(--radius-sm);
  padding: 0.85rem;
}

body.chai-night-theme .sig-box {
  background: #24201c;
  border-color: #3d352e;
}

.sig-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-sage);
  margin-top: 0.35rem;
}

/* Consent Action Cards */
.consent-action-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.otp-consent-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.otp-box {
  display: flex;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.btn-sign {
  background: var(--accent-sage);
  color: #ffffff;
  border: none;
  font-family: var(--font-main);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.download-pdf-btn {
  background: linear-gradient(135deg, #15803d, #166534);
  color: #ffffff;
  border: none;
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.95rem 1.5rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  box-shadow: 0 4px 16px rgba(21, 128, 61, 0.25);
  transition: var(--transition-smooth);
}

.download-pdf-btn:hover {
  background: linear-gradient(135deg, #166534, #14532d);
  transform: translateY(-1px);
}

/* ==========================================================================
   AUTHENTICATION OVERLAY & MODAL (With Tabbed Register & Security)
   ========================================================================== */
.auth-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(20, 16, 12, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  transition: opacity 0.25s ease;
}

.auth-overlay.hidden {
  display: none;
}

.auth-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modalPop 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.auth-close-btn {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: transparent;
  border: none;
  font-size: 1.6rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: var(--transition-smooth);
}

.auth-close-btn:hover {
  color: var(--primary);
  background: var(--primary-subtle);
}

.btn-guest-bypass {
  background: transparent;
  border: 1px dashed var(--border-card);
  color: var(--text-secondary);
  font-family: var(--font-main);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition-smooth);
}

.btn-guest-bypass:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-subtle);
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}

.auth-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.auth-shield {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #ea580c, #c2410c);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 0.85rem;
  box-shadow: var(--shadow-warm);
}

.auth-header h2 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.auth-header p {
  font-size: 0.86rem;
  color: var(--text-secondary);
}

/* Auth Tabs */
.auth-tab-row {
  display: flex;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: 0.28rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-subtle);
}

.auth-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-main);
  font-size: 0.84rem;
  font-weight: 700;
  padding: 0.55rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  transition: var(--transition-smooth);
}

.auth-tab-btn.active {
  background: var(--bg-surface);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

/* Quick Prototype Credentials */
.auth-credentials-hint {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  margin-bottom: 1.25rem;
}

.hint-title {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.sample-creds-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.sample-cred-pill {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.sample-cred-pill:hover {
  border-color: var(--primary);
  background: var(--primary-subtle);
}

.sample-cred-pill strong {
  font-size: 0.74rem;
  color: var(--text-primary);
}

.sample-cred-pill span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Role select cards */
.role-select-cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.role-select-option input {
  display: none;
}

.role-option-card {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.45rem;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  transition: var(--transition-smooth);
}

.role-option-card i {
  font-size: 1.15rem;
  margin-bottom: 0.15rem;
}

.role-option-card strong {
  font-size: 0.78rem;
  color: var(--text-primary);
}

.role-option-card span {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.role-select-option input:checked + .role-option-card {
  border-color: var(--primary);
  background: var(--primary-subtle);
  box-shadow: 0 0 0 2px var(--primary-border);
}

/* Security badge */
.security-storage-badge {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  background: var(--accent-sage-subtle);
  border: 1px solid var(--accent-sage-border);
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.74rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.auth-error-msg {
  display: none;
  background: var(--accent-rose-subtle);
  border: 1px solid var(--accent-rose-border);
  color: var(--accent-rose);
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.15rem;
}

.btn-login-submit {
  width: 100%;
  background: linear-gradient(135deg, #ea580c, #c2410c);
  border: none;
  color: #ffffff;
  font-family: var(--font-main);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 0.85rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-warm);
  transition: var(--transition-smooth);
}

.btn-login-submit:hover {
  background: linear-gradient(135deg, #c2410c, #9a3412);
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox-modal.hidden {
  display: none;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 1rem;
}

.lightbox-close-btn {
  position: absolute;
  top: -40px;
  right: 0;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Toast System */
#toastContainer {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.nyaya-toast {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  color: var(--text-primary);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  animation: toastSlide 0.3s ease;
  min-width: 260px;
}

@keyframes toastSlide {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.nyaya-toast.success {
  border-left: 4px solid var(--accent-sage);
}

.nyaya-toast.error {
  border-left: 4px solid var(--accent-rose);
}

.nyaya-toast.info {
  border-left: 4px solid var(--primary);
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .intake-grid, .negotiation-duel, .settlement-view-grid, .fairness-summary-grid {
    grid-template-columns: 1fr;
  }
  .audit-overview-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .property-strip {
    grid-template-columns: 1fr 1fr;
  }
  .evidence-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .property-strip {
    grid-template-columns: 1fr;
  }
  .audit-overview-grid {
    grid-template-columns: 1fr;
  }
  .nav-content {
    flex-direction: column;
    align-items: flex-start;
  }
}
