/* ==========================================================================
   SULAHNAMA DESIGN SYSTEM & STYLESHEET
   Aesthetics: Warm Indian-Modern • Human-Centric • Calm & Respectful
   Typography: Plus Jakarta Sans + Noto Sans Devanagari
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Devanagari:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Rozha+One&display=swap');

:root {
  /* Color Palette */
  --bg-warm: #FAF7F2;
  --bg-surface: #FFFFFF;
  --bg-surface-elevated: #FFFFFF;
  --bg-subtle: #F3ECE2;
  --bg-card: #FFFFFF;
  
  --text-primary: #17202A;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --text-light: #94A3B8;

  --border-subtle: #E8DFD4;
  --border-medium: #D5C8B8;
  --border-focus: #C2410C;

  /* Accent Colors */
  --terracotta: #C2410C;
  --terracotta-hover: #9A3412;
  --terracotta-light: #FFEDD5;
  
  --saffron: #D97706;
  --saffron-light: #FEF3C7;

  --navy-deep: #143823;
  --navy-slate: #235438;
  --navy-muted: #3D6B50;

  --green-resolution: #15803D;
  --green-resolution-light: #E8F8EE;
  --green-border: #86EFAC;

  --light-green-bg: #EBF8F0;
  --light-green-surface: #F2FAF4;
  --light-green-border: #A7F3D0;

  --samyukta-ai: #15803D;
  --samyukta-ai-light: #EAF8F0;
  --samyukta-border: #86EFAC;

  /* Shadows & Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 4px rgba(23, 32, 42, 0.04);
  --shadow-md: 0 6px 16px rgba(23, 32, 42, 0.06), 0 2px 4px rgba(23, 32, 42, 0.04);
  --shadow-lg: 0 12px 32px rgba(23, 32, 42, 0.08), 0 4px 8px rgba(23, 32, 42, 0.04);
  --shadow-hover: 0 16px 40px rgba(194, 65, 12, 0.12), 0 6px 12px rgba(23, 32, 42, 0.04);

  --transition-fast: 0.18s ease;
  --transition-normal: 0.28s cubic-bezier(0.4, 0, 0.2, 1);

  --container-max: 1600px;
}

/* --------------------------------------------------------------------------
   Reset & Base Styles
   -------------------------------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

body {
  font-family: 'Plus Jakarta Sans', 'Noto Sans Devanagari', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-warm);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  position: relative;
}

body[data-lang="hi"] {
  font-family: 'Noto Sans Devanagari', 'Plus Jakarta Sans', sans-serif;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 40px;
}

/* --------------------------------------------------------------------------
   Header & Navigation (Resized to fit all top menu items seamlessly)
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(250, 247, 242, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition-normal);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 114px;
  gap: 16px;
}

.header-main-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
}

.header-right-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  flex-shrink: 0;
}

.header-lang-wrap {
  display: flex;
  align-items: center;
  margin: 0;
}

.header-auth-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  flex-shrink: 0;
}

.brand-logo-img {
  height: 104px;
  width: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.08));
  transition: var(--transition-fast);
}

.brand-logo-img:hover {
  transform: scale(1.03);
}

.brand-text-group {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--navy-deep);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.brand-tagline {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--terracotta);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0 12px 0 16px;
  flex-shrink: 0;
}

.nav-link {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--navy-deep);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: var(--terracotta);
  background: var(--terracotta-light);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.lang-toggle-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy-slate);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

.lang-toggle-btn:hover {
  background: var(--terracotta-light);
  border-color: var(--terracotta);
  color: var(--terracotta-hover);
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--terracotta);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.86rem;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(194, 65, 12, 0.22);
  white-space: nowrap;
}

.btn-primary:hover {
  background: var(--terracotta-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(194, 65, 12, 0.32);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--navy-slate);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-medium);
  cursor: pointer;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: var(--navy-muted);
  transform: translateY(-1px);
}

.btn-success {
  background: var(--green-resolution);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(21, 128, 61, 0.22);
}

.btn-success:hover {
  background: #166534;
  transform: translateY(-2px);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--navy-slate);
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   App View Container (Single Page Router)
   -------------------------------------------------------------------------- */
#app-view {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.page-view {
  display: none;
  animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.page-view.active {
  display: block;
}

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

/* --------------------------------------------------------------------------
   HOMEPAGE VIEW
   -------------------------------------------------------------------------- */
.hero-section {
  padding: 12px 0 50px;
  background: radial-gradient(circle at 80% 20%, rgba(254, 243, 199, 0.6) 0%, rgba(250, 247, 242, 0) 60%),
              radial-gradient(circle at 10% 80%, rgba(255, 237, 213, 0.5) 0%, rgba(250, 247, 242, 0) 50%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 40px;
  align-items: start;
}

.hero-badge-wrap {
  margin-bottom: 20px;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  border: 1px solid var(--border-medium);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--terracotta);
  box-shadow: var(--shadow-sm);
}

.hero-pill-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--terracotta);
  border-radius: 50%;
}

.hero-headline {
  font-size: 3.1rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--navy-deep);
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}

.hero-headline span.highlight {
  color: var(--terracotta);
  position: relative;
  display: inline-block;
}

.hero-headline span.highlight::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 8px;
  background: rgba(217, 119, 6, 0.2);
  z-index: -1;
  border-radius: 4px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 36px;
}

.hero-cta-group .btn-primary {
  padding: 14px 28px;
  font-size: 1.05rem;
}

.hero-cta-group .btn-secondary {
  padding: 14px 28px;
  font-size: 1.05rem;
}

.hero-principle-quote {
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.7);
  border-left: 4px solid var(--terracotta);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy-slate);
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
}

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

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

.stat-number {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy-deep);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Hero Right Interactive Card Preview */
.hero-visual-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 16px 18px 20px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  margin-top: 0;
}

.hero-visual-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--terracotta), var(--saffron), var(--green-resolution));
}

.card-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-resolution-light);
  color: var(--green-resolution);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.live-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--green-resolution);
  border-radius: 50%;
  animation: pulseGreen 1.8s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.samyukta-hero-spotlight {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--samyukta-ai-light);
  border: 1px solid var(--samyukta-border);
  padding: 20px;
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
}

.samyukta-img-large {
  width: 280px;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  border: 4px solid #FFFFFF;
  box-shadow: 0 16px 40px rgba(124, 58, 237, 0.25), 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: var(--transition-normal);
}

.samyukta-img-large:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 20px 48px rgba(124, 58, 237, 0.32);
}

.samyukta-img-medium {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 3px solid #FFFFFF;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.18);
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.samyukta-img-medium:hover {
  transform: scale(1.03);
}

.samyukta-avatar-wrap {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--samyukta-ai);
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.25);
  background: #FFFFFF;
}

.samyukta-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.samyukta-spotlight-text h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-deep);
  margin-bottom: 4px;
}

.samyukta-spotlight-text p {
  font-size: 0.88rem;
  color: var(--navy-muted);
  line-height: 1.5;
}

/* Chat snippet inside hero visual */
.hero-chat-snippet {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.chat-bubble-mini {
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  max-width: 88%;
}

.bubble-partyA {
  background: var(--bg-subtle);
  color: var(--navy-deep);
  align-self: flex-start;
}

.bubble-partyB {
  background: #EDFDF4;
  border: 1px solid #A7F3D0;
  color: #14532D;
  align-self: flex-end;
}

.bubble-milaan-mini {
  background: var(--green-resolution-light);
  border: 1px solid var(--green-border);
  color: var(--green-resolution);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* --------------------------------------------------------------------------
   7 Step Journey Section
   -------------------------------------------------------------------------- */
.section-wrapper {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 52px;
}

.section-tag {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--terracotta);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  display: block;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--navy-deep);
  line-height: 1.25;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.journey-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.journey-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  position: relative;
  display: flex;
  flex-direction: column;
}

.journey-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--terracotta);
}

.journey-card .step-number {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--terracotta);
  background: var(--terracotta-light);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-bottom: 14px;
  align-self: flex-start;
}

.journey-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy-deep);
  margin-bottom: 10px;
}

.journey-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
  flex: 1;
}

/* Highlighted 7th card (Sulahnama) */
.journey-card.highlight-card {
  background: linear-gradient(145deg, #FAF7F2, #F0FDF4);
  border: 1px solid var(--green-border);
}

/* --------------------------------------------------------------------------
   Meet Samyukta Banner Section
   -------------------------------------------------------------------------- */
.samyukta-banner-section {
  background: linear-gradient(135deg, #E8F8EE 0%, #D4F4E2 50%, #E2F7EB 100%);
  color: #14532D;
  border: 2px solid var(--green-border);
  border-radius: var(--radius-xl);
  padding: 64px 48px;
  margin: 30px 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(21, 128, 61, 0.08);
}

.samyukta-banner-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(134, 239, 172, 0.5), transparent 70%);
  border-radius: 50%;
}

.samyukta-banner-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.samyukta-banner-img-wrap {
  text-align: center;
}

.samyukta-full-showcase-box {
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  border: 3px solid var(--green-border);
  padding: 16px;
  box-shadow: 0 16px 44px rgba(21, 128, 61, 0.22);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 14px;
}

.samyukta-banner-img-full {
  width: auto;
  max-width: 100%;
  height: 420px;
  object-fit: contain;
  display: block;
}

.samyukta-banner-img {
  width: auto;
  max-width: 100%;
  height: 400px;
  object-fit: contain;
  border-radius: var(--radius-xl);
  border: 4px solid #FFFFFF;
  background: #FFFFFF;
  padding: 12px;
  margin: 0 auto 18px;
  box-shadow: 0 16px 44px rgba(21, 128, 61, 0.25);
}

.samyukta-banner-content h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: #14532D;
  margin-bottom: 14px;
}

.samyukta-quote-box {
  background: rgba(255, 255, 255, 0.9);
  border-left: 4px solid var(--green-resolution);
  padding: 18px 24px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 1.05rem;
  font-style: italic;
  margin-bottom: 28px;
  color: #14532D;
  box-shadow: var(--shadow-sm);
}

.samyukta-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.samyukta-pillar-item {
  background: rgba(255, 255, 255, 0.9);
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--green-border);
  box-shadow: var(--shadow-sm);
}

.samyukta-pillar-item h4 {
  font-size: 0.95rem;
  color: var(--green-resolution);
  margin-bottom: 6px;
  font-weight: 700;
}

.samyukta-pillar-item p {
  font-size: 0.85rem;
  color: #2D4A3E;
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   Philosophy Comparison Section
   -------------------------------------------------------------------------- */
.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.comparison-box {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  box-shadow: var(--shadow-md);
}

.comparison-box.traditional {
  border-top: 5px solid #EF4444;
}

.comparison-box.sulahnama {
  border-top: 5px solid var(--green-resolution);
  background: linear-gradient(to bottom, #FFFFFF, #F6FEF9);
}

.comparison-box h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--navy-deep);
}

.comparison-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.comparison-list li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}

/* Bottom CTA Banner */
.bottom-cta-card {
  background: linear-gradient(135deg, #C2410C, #9A3412);
  color: #FFFFFF;
  border-radius: var(--radius-xl);
  padding: 56px 40px;
  text-align: center;
  margin: 60px 0;
  box-shadow: var(--shadow-lg);
}

.bottom-cta-card h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.bottom-cta-card p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 640px;
  margin: 0 auto 28px;
}

.bottom-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.bottom-cta-card .btn-primary {
  background: #FFFFFF;
  color: var(--terracotta);
}

.bottom-cta-card .btn-primary:hover {
  background: #FFF7ED;
  color: var(--terracotta-hover);
}

.bottom-cta-card .btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.4);
}

.bottom-cta-card .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* --------------------------------------------------------------------------
   SHURUAAT (Start a Resolution Wizard)
   -------------------------------------------------------------------------- */
.wizard-container {
  max-width: 1060px;
  margin: 40px auto 70px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 48px 44px;
  box-shadow: var(--shadow-lg);
}

.wizard-progress-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
  position: relative;
}

.wizard-progress-bar::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--border-subtle);
  z-index: 0;
}

.wizard-step-node {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 2px solid var(--border-medium);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  z-index: 1;
  transition: var(--transition-fast);
}

.wizard-step-node.active {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: #FFFFFF;
}

.wizard-step-node.completed {
  background: var(--green-resolution);
  border-color: var(--green-resolution);
  color: #FFFFFF;
}

.wizard-step {
  display: none;
}

.wizard-step.active {
  display: block;
  animation: fadeIn 0.25s ease forwards;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy-deep);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  color: var(--navy-deep);
  background: #FFFFFF;
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(194, 65, 12, 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.template-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.template-chip {
  background: var(--bg-subtle);
  border: 1px solid var(--border-medium);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--navy-slate);
  cursor: pointer;
  transition: var(--transition-fast);
}

.template-chip:hover {
  background: var(--terracotta-light);
  border-color: var(--terracotta);
  color: var(--terracotta-hover);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.ai-summary-box {
  background: var(--samyukta-ai-light);
  border: 1px solid var(--samyukta-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 20px 0;
  display: flex;
  gap: 18px;
}

.ai-summary-box .samyukta-avatar-wrap {
  width: 56px;
  height: 56px;
}

.ai-summary-text h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy-deep);
  margin-bottom: 6px;
}

.ai-summary-text p {
  font-size: 0.92rem;
  color: var(--navy-slate);
  line-height: 1.6;
}

.checkbox-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
}

.checkbox-wrap input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--terracotta);
  cursor: pointer;
}

.checkbox-wrap label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy-slate);
  cursor: pointer;
}

.wizard-nav-btns {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

/* --------------------------------------------------------------------------
   BULAWA (Invite & Perspective Intake)
   -------------------------------------------------------------------------- */
.bulawa-container {
  max-width: 1080px;
  margin: 40px auto 70px;
}

.bulawa-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 36px;
}

.invite-share-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0;
}

.share-action-btn {
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-medium);
  background: var(--bg-surface);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-fast);
}

.share-action-btn.whatsapp {
  background: #25D366;
  color: #FFFFFF;
  border-color: #25D366;
}

.share-action-btn.whatsapp:hover {
  background: #1EBE5D;
}

.share-action-btn.copy-link {
  background: var(--light-green-bg);
  color: var(--green-resolution);
  border-color: var(--green-border);
}

.share-action-btn.copy-link:hover {
  background: #D5F5E3;
}

/* --------------------------------------------------------------------------
   BAITHAK (The Interactive Resolution Room) - Fits 100% within Page Width
   -------------------------------------------------------------------------- */
#view-baithak {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

.baithak-wrapper {
  padding: 18px 0 60px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

.baithak-header-strip {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 14px 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.baithak-parties-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  max-width: 100%;
}

.baithak-grid {
  display: grid;
  grid-template-columns: minmax(260px, 300px) minmax(0, 1fr) minmax(280px, 340px);
  gap: 20px;
  align-items: start;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Left: Samyukta Companion Panel */
.baithak-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 20px;
  box-shadow: var(--shadow-md);
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}

.samyukta-live-panel {
  text-align: center;
}

.samyukta-live-panel .samyukta-avatar-wrap {
  width: 90px;
  height: 90px;
  margin: 0 auto 12px;
}

.samyukta-live-panel h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy-deep);
}

.samyukta-live-panel .status-text {
  font-size: 0.8rem;
  color: var(--green-resolution);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 16px;
}

.samyukta-card-box {
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: left;
  margin-bottom: 14px;
}

.samyukta-card-box h5 {
  font-size: 0.82rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.samyukta-card-box p {
  font-size: 0.88rem;
  color: var(--navy-deep);
  line-height: 1.45;
}

/* Center: Guftagu Chat Workspace - Exactly ONE Unified Smooth Scrollbar */
.guftagu-chat-window {
  display: flex;
  flex-direction: column;
  height: 840px;
  min-height: 750px;
  overflow: hidden !important; /* Strictly prevents outer panel from generating a 2nd scrollbar */
  box-sizing: border-box;
}

.guftagu-chat-window > .card-top-bar,
.guftagu-chat-window > .samyukta-starting-summary-card,
.guftagu-chat-window > .tone-guard-container,
.guftagu-chat-window > .guftagu-input-bar,
.guftagu-chat-window > .quick-reply-tray {
  flex-shrink: 0;
}

.guftagu-messages-area {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto !important; /* The single active scrollbar in Live Conversation */
  overflow-x: hidden;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: #FCFAF8;
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  box-sizing: border-box;
}

.guftagu-messages-area::-webkit-scrollbar {
  width: 6px;
}

.guftagu-messages-area::-webkit-scrollbar-track {
  background: rgba(20, 83, 45, 0.04);
  border-radius: 4px;
}

.guftagu-messages-area::-webkit-scrollbar-thumb {
  background: rgba(20, 83, 45, 0.22);
  border-radius: 4px;
}

.guftagu-messages-area::-webkit-scrollbar-thumb:hover {
  background: rgba(20, 83, 45, 0.45);
}

.msg-row {
  display: flex;
  flex-direction: column;
  max-width: 80%;
}

.msg-row.msg-you {
  align-self: flex-end;
}

.msg-row.msg-other {
  align-self: flex-start;
}

.msg-sender-name {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.msg-bubble {
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  font-size: 0.92rem;
  line-height: 1.5;
}

.msg-you .msg-bubble {
  background: var(--terracotta);
  color: #FFFFFF;
  border-bottom-right-radius: 4px;
}

.msg-other .msg-bubble {
  background: #FFFFFF;
  border: 1px solid var(--border-medium);
  color: var(--navy-deep);
  border-bottom-left-radius: 4px;
  box-shadow: var(--shadow-sm);
}

.msg-row.msg-samyukta {
  align-self: center;
  max-width: 94%;
  margin: 12px 0;
}

.msg-samyukta .msg-bubble {
  background: linear-gradient(135deg, #F0FDF4 0%, #E6F7ED 100%);
  border: 1.5px solid var(--green-border);
  color: #14532D;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 14px rgba(20, 83, 45, 0.08);
  font-size: 0.88rem;
  line-height: 1.58;
}

.msg-samyukta .msg-sender-name {
  color: var(--green-resolution);
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  margin-bottom: 6px;
}

.msg-tone-guard-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--green-resolution);
  background: var(--light-green-bg);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  margin-top: 6px;
  border: 1px solid var(--green-border);
}

.msg-you .msg-tone-guard-badge {
  background: rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.45);
}

.msg-samyukta-tip {
  align-self: center;
  max-width: 90%;
  background: var(--samyukta-ai-light);
  border: 1px solid var(--samyukta-border);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  color: var(--navy-deep);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.guftagu-input-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  position: relative;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.guftagu-input-bar input {
  flex: 1;
  padding: 12px 18px;
  font-size: 0.92rem;
  min-height: 48px;
  border-radius: var(--radius-md);
}

/* Tone Guard & Real-Time De-Escalator Styles */
.tone-guard-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #FFFFFF;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  box-shadow: var(--shadow-sm);
  animation: fadeInDown 0.2s ease-out;
}

.tone-meter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.tone-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--light-green-bg);
  color: var(--green-resolution);
  border: 1px solid var(--green-border);
  transition: all 0.25s ease;
}

.tone-status-pill.heated {
  background: #FFFBEB;
  color: #B45309;
  border-color: #FCD34D;
}

.tone-status-pill.hostile {
  background: #FEF2F2;
  color: #B91C1C;
  border-color: #FCA5A5;
}

.tone-meter-track {
  flex: 1;
  min-width: 80px;
  height: 6px;
  background: #E2E8F0;
  border-radius: 4px;
  overflow: hidden;
}

.tone-meter-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s ease, background 0.3s ease;
  background: #10B981;
}

.tone-meter-fill.heated {
  background: #F59E0B;
}

.tone-meter-fill.hostile {
  background: #EF4444;
}

.btn-tone-deescalate {
  background: linear-gradient(135deg, #14532D 0%, #15803D 100%);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-full);
  padding: 5px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(20, 83, 45, 0.25);
  transition: var(--transition-fast);
}

.btn-tone-deescalate:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(20, 83, 45, 0.35);
}

.btn-tone-deescalate.shimmer {
  animation: pulse-green 1.5s infinite;
}

@keyframes pulse-green {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
  70% { transform: scale(1.03); box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.tone-reframe-card {
  background: linear-gradient(135deg, rgba(20, 83, 45, 0.05) 0%, rgba(240, 253, 244, 0.8) 100%);
  border: 1px solid var(--green-border);
  border-radius: var(--radius-md);
  padding: 12px;
  animation: fadeInUp 0.25s ease-out;
}

.tone-reframe-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--green-resolution);
  margin-bottom: 6px;
}

.tone-reframe-close {
  background: transparent;
  border: none;
  font-size: 0.95rem;
  color: var(--text-muted);
  cursor: pointer;
}

.tone-reframe-body {
  font-size: 0.88rem;
  color: var(--navy-deep);
  line-height: 1.5;
  background: #FFFFFF;
  border: 1px solid rgba(20, 83, 45, 0.15);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin-bottom: 10px;
  font-style: italic;
}

.tone-reframe-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.btn-use-reframe {
  background: var(--green-resolution);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-use-reframe:hover {
  background: #166534;
}

.btn-revert-original {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 0.8rem;
  cursor: pointer;
}

.btn-revert-original:hover {
  background: var(--bg-subtle);
}

.msg-tone-guard-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(20, 83, 45, 0.08);
  border: 1px solid var(--green-border);
  color: var(--green-resolution);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-top: 4px;
}

.chat-action-btn {
  background: var(--bg-subtle);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  cursor: pointer;
  font-size: 1.1rem;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.chat-action-btn:hover {
  background: #FFFFFF;
  border-color: var(--green-resolution);
  transform: translateY(-1px);
}

.chat-action-btn.recording {
  background: #FEE2E2;
  border-color: #EF4444;
  color: #DC2626;
  animation: pulse-red 1.2s infinite;
}

@keyframes pulse-red {
  0% { transform: scale(1); }
  50% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

/* Quick Reply Chips Tray & In-Session Box */
.session-suggestions-box {
  background: #FFFFFF;
  border: 1.5px solid rgba(20, 83, 45, 0.2);
  border-radius: var(--radius-lg);
  padding: 18px 24px;
  box-shadow: 0 4px 14px rgba(20, 83, 45, 0.08);
  transition: var(--transition-fast);
  margin-top: 8px;
  margin-bottom: 16px;
}

.session-suggestions-box:hover {
  border-color: var(--green-resolution);
  box-shadow: 0 5px 16px rgba(20, 83, 45, 0.12);
}

.quick-reply-tray {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  padding: 10px 4px 14px;
  margin-top: 16px;
  margin-bottom: 20px;
  scrollbar-width: none;
}

.quick-reply-tray::-webkit-scrollbar {
  display: none;
}

.quick-reply-pill {
  background: #FFFFFF;
  border: 1.5px solid rgba(20, 83, 45, 0.22);
  color: var(--navy-deep);
  font-size: 0.84rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 2px 5px rgba(20, 83, 45, 0.06);
}

.quick-reply-pill:hover {
  border-color: var(--green-resolution);
  color: var(--green-resolution);
  background: var(--light-green-bg);
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(20, 83, 45, 0.12);
}

/* Typing Indicator Animation */
.typing-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
  margin: 4px 0;
  align-self: flex-start;
  box-shadow: var(--shadow-sm);
}

.typing-dots {
  display: inline-flex;
  gap: 3px;
  margin-left: 4px;
}

.typing-dot {
  width: 5px;
  height: 5px;
  background: var(--green-resolution);
  border-radius: 50%;
  animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

@keyframes pulseGlow {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Attachment & Voice Note Bubbles */
.msg-attachment {
  margin-top: 8px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.msg-attachment img {
  max-width: 240px;
  max-height: 180px;
  border-radius: var(--radius-md);
  display: block;
  object-fit: cover;
}

.msg-attachment-doc {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.05);
  padding: 8px 12px;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  text-decoration: none;
  color: inherit;
  font-weight: 600;
}

.msg-voice-player {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.06);
  padding: 8px 12px;
  border-radius: var(--radius-full);
  margin-top: 6px;
}

.msg-voice-player button {
  background: var(--green-resolution);
  color: #FFFFFF;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.msg-voice-waveform {
  flex: 1;
  height: 6px;
  background: rgba(0, 0, 0, 0.12);
  border-radius: var(--radius-full);
  position: relative;
  overflow: hidden;
}

.msg-voice-progress {
  height: 100%;
  width: 40%;
  background: var(--green-resolution);
  border-radius: var(--radius-full);
}

.msg-meta-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  font-size: 0.70rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.msg-you .msg-meta-row {
  color: rgba(255, 255, 255, 0.8);
}

.msg-ticks {
  color: #60A5FA;
  font-weight: 800;
}

.msg-you .msg-ticks {
  color: #BBF7D0;
}

/* Resolution Timeline Bar */
.resolution-timeline-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 12px 20px;
  margin-bottom: 20px;
  gap: 8px;
  overflow-x: auto;
}

.timeline-step-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
}

.timeline-step-item.completed {
  color: var(--green-resolution);
}

.timeline-step-item.active {
  color: var(--terracotta);
}

.timeline-step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.timeline-step-item.completed .timeline-step-num {
  background: var(--green-resolution);
  color: #FFFFFF;
}

.timeline-step-item.active .timeline-step-num {
  background: var(--terracotta);
  color: #FFFFFF;
}

.timeline-divider {
  flex: 1;
  height: 2px;
  background: var(--border-subtle);
  min-width: 20px;
}

.timeline-divider.completed {
  background: var(--green-resolution);
}

/* Dual Consent Checkpoints */
.dual-consent-box {
  background: var(--light-green-bg);
  border: 1.5px dashed var(--green-resolution);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-top: 14px;
}

.dual-consent-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--green-resolution);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.consent-checkbox-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 0.84rem;
  color: var(--navy-deep);
}

.consent-status-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.consent-status-badge.agreed {
  background: #DCFCE7;
  color: #15803D;
  border: 1px solid #86EFAC;
}

.consent-status-badge.pending {
  background: #FEF3C7;
  color: #B45309;
  border: 1px solid #FCD34D;
}

/* Right: Milaan & Peshkash Workspace */
.milaan-box {
  background: var(--green-resolution-light);
  border: 1px solid var(--green-border);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 18px;
}

.milaan-box h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--green-resolution);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.milaan-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.84rem;
  color: #14532D;
  font-weight: 600;
}


.proposal-option-pills {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.proposal-option-pill {
  flex: 1 1 calc(33.333% - 6px);
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: var(--radius-sm);
  padding: 8px 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: center;
  box-sizing: border-box;
}

.proposal-option-pill:hover {
  background: rgba(20, 83, 45, 0.06);
  border-color: var(--green-resolution);
  color: var(--green-resolution);
}

.proposal-option-pill.active {
  background: var(--light-green-bg);
  border-color: var(--green-resolution);
  color: var(--green-resolution);
  box-shadow: 0 2px 6px rgba(20, 83, 45, 0.12);
}

.peshkash-card {
  background: #FFFFFF;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.peshkash-card h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--navy-deep);
  margin-bottom: 10px;
}

.offer-breakdown {
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 14px;
}

.offer-breakdown .offer-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy-deep);
  padding: 4px 0;
}

.peshkash-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* --------------------------------------------------------------------------
   SULAHNAMA (Final Agreement Document)
   -------------------------------------------------------------------------- */
.sulahnama-doc-container {
  max-width: 1040px;
  margin: 30px auto 60px;
  background: #FFFFFF;
  border: 2px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 56px 64px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.doc-header-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--border-subtle);
  padding-bottom: 20px;
  margin-bottom: 28px;
}

.doc-seal-stamp {
  border: 2px dashed var(--green-resolution);
  color: var(--green-resolution);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.doc-section {
  margin-bottom: 24px;
}

.doc-section-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy-deep);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 6px;
  margin-bottom: 12px;
}

.parties-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
}

.parties-table td {
  padding: 8px 12px;
  border: 1px solid var(--border-subtle);
  font-size: 0.9rem;
}

.parties-table td.label {
  font-weight: 700;
  background: var(--bg-subtle);
  width: 30%;
}

.doc-terms-list {
  padding-left: 20px;
  font-size: 0.92rem;
  color: var(--navy-slate);
  line-height: 1.7;
}

.signatures-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px dashed var(--border-medium);
}

.signature-box {
  background: var(--bg-subtle);
  padding: 16px;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--green-resolution);
}

.signature-box h5 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy-deep);
}

.signature-box span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   MERE SULAHNAME (User Dashboard)
   -------------------------------------------------------------------------- */
.dashboard-tabs-bar {
  display: flex;
  gap: 12px;
  margin: 30px 0 24px;
  border-bottom: 1px solid var(--border-medium);
  padding-bottom: 12px;
}

.dash-tab-btn {
  background: transparent;
  border: none;
  padding: 8px 18px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
}

.dash-tab-btn.active {
  background: var(--terracotta-light);
  color: var(--terracotta-hover);
}

.dash-cases-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-bottom: 40px;
}

.dash-case-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition-fast);
}

.dash-case-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-medium);
}

.case-info h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy-deep);
  margin-bottom: 4px;
}

.case-info p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   SAMYUKTA AI DEEP DIVE & SANDBOX
   -------------------------------------------------------------------------- */
.sandbox-card {
  background: var(--bg-surface);
  border: 2px solid var(--samyukta-border);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-lg);
  margin: 30px 0 60px;
}

.sandbox-result-box {
  background: var(--samyukta-ai-light);
  border: 1px solid var(--samyukta-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-top: 20px;
  display: none;
}

.sandbox-result-box.active {
  display: block;
  animation: fadeIn 0.3s ease forwards;
}

/* --------------------------------------------------------------------------
   MODALS & TOASTS
   -------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.active {
  display: flex;
}

.modal-dialog {
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  max-width: 540px;
  width: 100%;
  padding: 32px;
  box-shadow: var(--shadow-lg);
  animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy-deep);
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
}

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast-item {
  background: var(--light-green-bg);
  color: #14532D;
  border: 1px solid var(--green-border);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInUp 0.25s ease forwards;
}

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

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: linear-gradient(180deg, #EBF8F0 0%, #D8F2E2 100%);
  color: #1F3D2F;
  padding: 60px 0 30px;
  margin-top: auto;
  border-top: 1px solid #A7F3D0;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.footer-brand-wrap img {
  height: 100px;
  width: auto;
  object-fit: contain;
}

.footer-brand-wrap h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #14532D;
}

.footer-links-group {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-links-group a {
  color: #2D5A44;
  font-size: 0.92rem;
  font-weight: 600;
  transition: var(--transition-fast);
}

.footer-links-group a:hover {
  color: var(--terracotta);
}

.footer-bottom-bar {
  padding-top: 24px;
  border-top: 1px solid rgba(21, 128, 61, 0.15);
  display: flex;
  justify-content: space-between;
  font-size: 0.84rem;
  color: #3D6B50;
}

/* --------------------------------------------------------------------------
   Print Stylesheet for Official Sulahnama Document
   -------------------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .btn-primary, .btn-secondary, .dashboard-tabs-bar, .modal-backdrop {
    display: none !important;
  }
  body {
    background: #FFFFFF !important;
    color: #000000 !important;
  }
  .sulahnama-doc-container {
    border: 1px solid #000000 !important;
    box-shadow: none !important;
    max-width: 100% !important;
    padding: 20px !important;
  }
}

/* --------------------------------------------------------------------------
   AUTH MODAL & AUTHENTICATION STYLES
   -------------------------------------------------------------------------- */
.auth-container {
  max-width: 580px;
  margin: 40px auto 70px;
  background: var(--bg-surface);
  border: 1px solid var(--green-border);
  border-radius: var(--radius-xl);
  padding: 36px 40px;
  box-shadow: var(--shadow-lg);
}

.auth-tabs-bar {
  display: flex;
  background: var(--light-green-bg);
  border-radius: var(--radius-full);
  padding: 4px;
  margin-bottom: 28px;
  gap: 4px;
}

.auth-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  padding: 10px 14px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy-muted);
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: center;
}

.auth-tab-btn.active {
  background: #FFFFFF;
  color: var(--green-resolution);
  box-shadow: var(--shadow-sm);
}

.auth-tab-btn.admin-tab.active {
  color: var(--terracotta);
}

.auth-form-view {
  display: none;
}

.auth-form-view.active {
  display: block;
  animation: fadeIn 0.25s ease forwards;
}

.user-profile-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--light-green-bg);
  border: 1px solid var(--green-border);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--green-resolution);
}

.user-role-badge {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  background: #FFFFFF;
  color: var(--green-resolution);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  border: 1px solid var(--green-border);
}

.user-role-badge.admin-badge {
  background: var(--terracotta);
  color: #FFFFFF;
  border-color: var(--terracotta);
}

.btn-logout {
  background: none;
  border: none;
  color: #DC2626;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.btn-logout:hover {
  background: #FEE2E2;
}

/* --------------------------------------------------------------------------
   ADMIN PORTAL STYLES (Realtime Telemetry & Intelligence Center)
   -------------------------------------------------------------------------- */
.admin-header-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface);
  padding: 28px 36px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--green-border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  gap: 20px;
  flex-wrap: wrap;
}

.cloud-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--light-green-bg);
  border: 1px solid var(--green-border);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--green-resolution);
}

.pulse-beacon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #16A34A;
  box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7);
  animation: pulseBeacon 1.8s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes pulseBeacon {
  to {
    box-shadow: 0 0 0 8px rgba(22, 163, 74, 0);
  }
}

.admin-metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin: 20px 0 28px;
}

.admin-metric-card {
  background: var(--bg-surface);
  border: 1px solid var(--green-border);
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition-fast);
}

.admin-metric-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.metric-icon-wrap {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.admin-metric-card .metric-val {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--green-resolution);
  display: block;
  line-height: 1.1;
  margin-bottom: 4px;
}

.admin-metric-card .metric-lbl {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy-muted);
}

/* Admin Tabs Navigation */
.admin-nav-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid var(--border-subtle);
  margin-bottom: 24px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}

.admin-tab-btn {
  background: transparent;
  border: none;
  padding: 10px 18px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--navy-muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: var(--transition-fast);
  white-space: nowrap;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.admin-tab-btn:hover {
  color: var(--green-resolution);
  background: rgba(20, 83, 45, 0.04);
}

.admin-tab-btn.active {
  color: var(--green-resolution);
  border-bottom-color: var(--green-resolution);
  background: var(--light-green-bg);
}

.admin-tab-content {
  display: none;
  animation: fadeIn 0.25s ease forwards;
}

.admin-tab-content.active {
  display: block;
}

/* Charts Grid */
.admin-charts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

@media (max-width: 960px) {
  .admin-charts-grid {
    grid-template-columns: 1fr;
  }
}

.admin-chart-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}

.chart-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.badge-live-tag {
  background: var(--light-green-bg);
  border: 1px solid var(--green-border);
  color: var(--green-resolution);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.chart-canvas-wrap {
  position: relative;
  width: 100%;
  min-height: 220px;
}

/* JSON Viewer */
.admin-json-viewer {
  background: #0F172A;
  color: #38BDF8;
  font-family: monospace;
  font-size: 0.84rem;
  padding: 20px;
  border-radius: var(--radius-lg);
  max-height: 480px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-all;
  border: 1px solid #1E293B;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.5);
}

.admin-table-wrap {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-md);
  margin-bottom: 28px;
  overflow-x: auto;
}

.admin-data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
}

.admin-data-table th, .admin-data-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.9rem;
}

.admin-data-table th {
  background: var(--light-green-bg);
  color: var(--navy-deep);
  font-weight: 800;
}

.admin-data-table tr:hover {
  background: var(--light-green-surface);
}

.empty-state-box {
  text-align: center;
  padding: 56px 24px;
  background: var(--bg-surface);
  border: 2px dashed var(--green-border);
  border-radius: var(--radius-xl);
  margin: 24px 0;
}

.empty-state-box h3 {
  font-size: 1.3rem;
  color: var(--navy-deep);
  margin-bottom: 8px;
}

.empty-state-box p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 480px;
  margin: 0 auto 20px;
}

/* --------------------------------------------------------------------------
   BAITHAK MOBILE TAB SWITCHER (For phone viewports)
   -------------------------------------------------------------------------- */
.baithak-mobile-tabs {
  display: none;
  background: var(--light-green-bg);
  border: 1px solid var(--green-border);
  border-radius: var(--radius-full);
  padding: 4px;
  margin-bottom: 18px;
  gap: 4px;
}

.baithak-mobile-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  padding: 10px 12px;
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--navy-muted);
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: center;
  white-space: nowrap;
}

.baithak-mobile-tab-btn.active {
  background: #FFFFFF;
  color: var(--green-resolution);
  box-shadow: var(--shadow-sm);
}

/* --------------------------------------------------------------------------
   AESTHETIC MOBILE RESPONSIVE ENGINE (Tablet & Phone Screen Layouts)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .header-container {
    height: 96px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .baithak-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .samyukta-banner-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }
  .samyukta-pillars-grid {
    grid-template-columns: 1fr;
  }
  .philosophy-grid {
    grid-template-columns: 1fr;
  }
  .admin-metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  /* Global Mobile Width & Overflow Guard */
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
  }

  .container {
    padding: 0 16px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }

  /* Compact Aesthetic 2-Row Mobile Header */
  .site-header {
    background: rgba(250, 247, 242, 0.98);
    border-bottom: 1px solid var(--border-subtle);
    width: 100%;
    overflow: hidden;
  }

  .header-container {
    height: auto !important;
    padding: 10px 14px 8px !important;
    gap: 8px !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Row 1: Brand & Language */
  .header-main-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
  }

  .brand-wrapper {
    gap: 10px;
    min-width: 0;
    flex-shrink: 1;
    overflow: hidden;
  }

  .brand-logo-img {
    height: 48px;
    width: auto;
    flex-shrink: 0;
  }

  .brand-title {
    font-size: 1.22rem;
    line-height: 1.1;
    white-space: nowrap;
  }

  .brand-tagline {
    font-size: 0.62rem;
    letter-spacing: 0.04em;
    white-space: nowrap;
  }

  .nav-links {
    display: none !important;
  }

  .header-right-col {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    align-items: stretch !important;
    gap: 6px !important;
  }

  .header-right-col .header-lang-wrap {
    display: flex !important;
    justify-content: flex-end !important;
    width: 100% !important;
    margin: 0 !important;
  }

  .lang-toggle-btn {
    padding: 5px 10px !important;
    font-size: 0.76rem !important;
    white-space: nowrap !important;
    border-radius: var(--radius-sm) !important;
    min-height: 30px !important;
    line-height: 1 !important;
  }

  /* Row 2: Full-Width User Profile Strip / Auth Button */
  .header-auth-strip {
    display: flex !important;
    width: 100% !important;
    align-items: center !important;
    box-sizing: border-box !important;
  }

  .header-auth-strip .user-profile-chip {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 6px 12px !important;
    background: var(--light-green-bg) !important;
    border: 1px solid var(--green-border) !important;
    border-radius: var(--radius-full) !important;
    box-sizing: border-box !important;
    font-size: 0.82rem !important;
  }

  .user-profile-info {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    overflow: hidden;
  }

  .user-profile-name {
    max-width: 180px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-weight: 700 !important;
    font-size: 0.82rem !important;
    color: var(--green-resolution) !important;
  }

  .user-role-badge {
    font-size: 0.62rem !important;
    padding: 2px 6px !important;
    border-radius: var(--radius-full) !important;
    font-weight: 800 !important;
    flex-shrink: 0;
  }

  .btn-logout {
    padding: 4px 10px !important;
    font-size: 0.74rem !important;
    border-radius: 6px !important;
    background: #FEE2E2 !important;
    color: #DC2626 !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    border: none !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }

  .header-auth-strip .btn-primary {
    width: 100% !important;
    justify-content: center !important;
    padding: 7px 16px !important;
    font-size: 0.84rem !important;
    font-weight: 700 !important;
    min-height: 36px !important;
    border-radius: var(--radius-full) !important;
  }

  .mobile-menu-btn {
    display: none !important; /* Bottom nav replaces hamburger for a seamless native feel */
  }

  
  /* --------------------------------------------------------------------------
     RESOLUTION ROOM: NATIVE MOBILE APP INTERFACE (Aesthetic, Seamless & Touch-Optimized)
     -------------------------------------------------------------------------- */
  .baithak-wrapper {
    padding: 6px 0 84px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden;
  }

  /* Sleek Swipeable Timeline Bar on Mobile */
  .resolution-timeline-bar {
    display: flex !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    padding: 8px 12px !important;
    margin-bottom: 10px !important;
    background: #FFFFFF !important;
    border: 1px solid var(--border-subtle) !important;
    border-radius: 14px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03) !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 8px !important;
  }

  .resolution-timeline-bar::-webkit-scrollbar {
    display: none !important;
  }

  .timeline-step-item {
    font-size: 0.76rem !important;
    font-weight: 700 !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
  }

  .timeline-step-num {
    width: 20px !important;
    height: 20px !important;
    font-size: 0.72rem !important;
  }

  .timeline-divider {
    width: 16px !important;
    min-width: 16px !important;
    margin: 0 4px !important;
    flex-shrink: 0 !important;
  }

  /* Native Mobile App Header Strip */
  .baithak-header-strip {
    background: #FFFFFF !important;
    border: 1px solid var(--border-subtle) !important;
    border-radius: 16px !important;
    padding: 10px 12px !important;
    margin-bottom: 10px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
  }

  .baithak-parties-pill {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 6px !important;
    width: 100% !important;
  }

  .baithak-parties-pill .live-badge,
  .baithak-parties-pill .party-badge {
    font-size: 0.74rem !important;
    padding: 4px 9px !important;
    border-radius: 999px !important;
  }

  /* Segmented Mobile Tab Switcher (iOS/Android Native Style) */
  .baithak-mobile-tabs {
    display: flex !important;
    position: sticky !important;
    top: 4px !important;
    z-index: 60 !important;
    background: rgba(255, 255, 255, 0.94) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    border: 1.5px solid rgba(20, 83, 45, 0.16) !important;
    border-radius: 999px !important;
    padding: 4px !important;
    gap: 4px !important;
    box-shadow: 0 4px 18px rgba(20, 83, 45, 0.08) !important;
    margin-bottom: 12px !important;
    width: 100% !important;
  }

  .baithak-mobile-tab-btn {
    flex: 1 !important;
    min-height: 40px !important;
    border-radius: 999px !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    border: none !important;
    background: transparent !important;
    color: var(--navy-deep) !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 6px 10px !important;
    text-align: center !important;
  }

  .baithak-mobile-tab-btn.active {
    background: var(--green-resolution) !important;
    color: #FFFFFF !important;
    font-weight: 800 !important;
    box-shadow: 0 3px 12px rgba(20, 83, 45, 0.28) !important;
    transform: scale(1.02) !important;
  }

  /* Baithak Grid on Mobile */
  .baithak-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    width: 100% !important;
  }

  .baithak-grid .baithak-panel {
    display: none !important;
    width: 100% !important;
    border-radius: 20px !important;
    border: 1px solid var(--border-subtle) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
    padding: 16px 12px !important;
    background: #FFFFFF !important;
    box-sizing: border-box !important;
  }

  .baithak-grid .baithak-panel.mobile-active {
    display: flex !important;
    flex-direction: column !important;
    animation: slideUpFade 0.25s cubic-bezier(0.4, 0, 0.2, 1) forwards !important;
  }

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

  /* 1. Live Conversation Mobile Workspace */
  .guftagu-chat-window {
    height: calc(100dvh - 220px) !important;
    min-height: 480px !important;
    max-height: calc(100vh - 190px) !important;
    padding: 12px 10px !important;
    background: #FFFFFF !important;
    overflow: hidden !important;
  }

  .guftagu-chat-window > .card-top-bar {
    padding-bottom: 8px !important;
    margin-bottom: 8px !important;
  }

  .samyukta-starting-summary-card {
    padding: 10px 12px !important;
    margin-bottom: 8px !important;
    border-radius: 12px !important;
    font-size: 0.80rem !important;
  }

  .guftagu-messages-area {
    flex: 1 1 0 !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    padding: 10px 6px 14px !important;
    gap: 12px !important;
    background: #F9FAF9 !important;
    border-radius: 16px !important;
    border: 1px solid rgba(20, 83, 45, 0.08) !important;
    margin-bottom: 8px !important;
  }

  .msg-row {
    max-width: 90% !important;
  }

  .msg-bubble {
    padding: 10px 14px !important;
    font-size: 0.90rem !important;
    line-height: 1.45 !important;
    border-radius: 18px !important;
  }

  .msg-you .msg-bubble {
    border-bottom-right-radius: 4px !important;
  }

  .msg-other .msg-bubble {
    border-bottom-left-radius: 4px !important;
  }

  /* Native Touch Chat Input Bar */
  .guftagu-input-bar {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 6px 8px !important;
    background: #FFFFFF !important;
    border-radius: 999px !important;
    border: 1.5px solid var(--green-border) !important;
    box-shadow: 0 4px 14px rgba(20, 83, 45, 0.09) !important;
    margin-top: 4px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .guftagu-input-bar input {
    border: none !important;
    background: transparent !important;
    font-size: 16px !important; /* Prevents auto-zoom on iOS */
    padding: 8px 6px !important;
    outline: none !important;
    box-shadow: none !important;
    min-height: 38px !important;
    flex: 1 1 auto !important;
  }

  .guftagu-input-bar button {
    border: none !important;
    cursor: pointer !important;
    transition: var(--transition-fast) !important;
  }

  .guftagu-input-bar .btn-send {
    background: var(--green-resolution) !important;
    color: #FFFFFF !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.1rem !important;
    box-shadow: 0 2px 8px rgba(20, 83, 45, 0.22) !important;
    flex-shrink: 0 !important;
  }

  /* Quick Suggestion Chips on Mobile */
  .quick-reply-tray {
    display: flex !important;
    overflow-x: auto !important;
    gap: 6px !important;
    padding: 6px 2px !important;
    margin-top: 4px !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
    width: 100% !important;
  }

  .quick-reply-tray::-webkit-scrollbar {
    display: none !important;
  }

  .quick-reply-pill {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    font-size: 0.78rem !important;
    padding: 6px 12px !important;
    border-radius: 999px !important;
    border: 1px solid var(--green-border) !important;
    background: var(--light-green-bg) !important;
    color: var(--navy-deep) !important;
    font-weight: 600 !important;
  }

  /* 2. Samyukta AI Companion Tab on Mobile */
  .samyukta-live-panel {
    text-align: center !important;
    padding: 18px 14px !important;
  }

  .samyukta-live-panel .samyukta-img-medium {
    width: 80px !important;
    height: 80px !important;
    border-radius: 50% !important;
    box-shadow: 0 0 0 4px rgba(20, 83, 45, 0.12), 0 4px 14px rgba(0,0,0,0.1) !important;
    margin-bottom: 10px !important;
  }

  .samyukta-card-box {
    border-radius: 14px !important;
    padding: 12px 14px !important;
    margin-bottom: 10px !important;
    text-align: left !important;
  }

  /* 3. Proposals & Consent Tab on Mobile */
  .peshkash-card {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    background: transparent !important;
  }

  .proposal-option-pills {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    margin-bottom: 12px !important;
  }

  .proposal-option-pill {
    width: 100% !important;
    min-height: 44px !important;
    font-size: 0.84rem !important;
    padding: 10px 14px !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .offer-breakdown {
    border-radius: 14px !important;
    padding: 14px 12px !important;
    margin-bottom: 12px !important;
  }

  .dual-consent-box {
    border-radius: 14px !important;
    padding: 14px 12px !important;
    margin-bottom: 14px !important;
  }

  .peshkash-actions button {
    min-height: 48px !important;
    font-size: 0.94rem !important;
    font-weight: 800 !important;
    border-radius: 14px !important;
    width: 100% !important;
    justify-content: center !important;
  }


  .auth-container {
    padding: 20px 16px;
    width: 100%;
  }

  /* Dashboard */
  .dashboard-tabs-bar {
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    width: 100%;
  }

  .dash-case-card {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    width: 100%;
  }

  .dash-case-card button {
    width: 100%;
    justify-content: center;
  }

  /* Admin Table */
  .admin-metric-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
  }

  .admin-table-wrap {
    padding: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
  }

  .admin-data-table {
    min-width: 520px;
  }

  /* Footer (Full scrollable clearance above bottom dock) */
  .site-footer {
    padding: 36px 0 calc(60px + env(safe-area-inset-bottom, 16px)) !important;
    margin-bottom: 32px !important;
    width: 100%;
  }

  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-brand-wrap img {
    height: 64px;
  }

  .footer-links-group {
    flex-direction: column;
    gap: 10px;
  }

  .footer-bottom-bar {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .footer-bottom-bar div {
    flex-direction: column;
    gap: 8px;
  }
}

/* --------------------------------------------------------------------------
   Mobile App Bottom Navigation Dock (Native App Bar)
   -------------------------------------------------------------------------- */
.modal-grabber {
  display: none;
}

.mobile-app-dock {
  display: none;
}

@media (max-width: 860px) {
  /* Activate Native App Dock */
  .mobile-app-dock {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.94);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    backdrop-filter: blur(24px) saturate(180%);
    border-top: 1px solid rgba(21, 128, 61, 0.15);
    box-shadow: 0 -4px 24px rgba(15, 23, 42, 0.08);
    padding: 6px 10px calc(6px + env(safe-area-inset-bottom, 8px));
    justify-content: space-around;
    align-items: center;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
  }

  body {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 8px)) !important;
  }

  .app-view, .page-view, #app-view {
    padding-bottom: calc(36px + env(safe-area-inset-bottom, 8px)) !important;
  }

  .mobile-dock-item {
    background: transparent;
    border: none;
    outline: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 4px 6px;
    cursor: pointer;
    text-decoration: none;
    flex: 1;
    min-width: 0;
    position: relative;
    border-radius: var(--radius-md);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-tap-highlight-color: transparent;
    user-select: none;
  }

  .mobile-dock-item:active {
    transform: scale(0.92);
  }

  .mobile-dock-icon-wrap {
    width: 32px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 12px;
    transition: all 0.22s ease;
  }

  .mobile-dock-icon {
    font-size: 1.3rem;
    line-height: 1;
    transition: transform 0.2s ease;
  }

  .mobile-dock-label {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--navy-muted);
    transition: color 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  .mobile-dock-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 7px;
    height: 7px;
    background: var(--terracotta);
    border-radius: 50%;
    color: transparent;
  }

  /* Active State for Mobile App Dock */
  .mobile-dock-item.active .mobile-dock-icon-wrap {
    background: var(--light-green-bg);
    transform: translateY(-2px);
  }

  .mobile-dock-item.active .mobile-dock-icon {
    transform: scale(1.12);
  }

  .mobile-dock-item.active .mobile-dock-label {
    color: var(--green-resolution);
    font-weight: 800;
  }

  .mobile-dock-item.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    width: 20px;
    height: 3px;
    border-radius: 999px;
    background: var(--green-resolution);
  }

  /* Samyukta AI Special Center Dock Button */
  .mobile-dock-item.samyukta-dock-btn .mobile-dock-icon-wrap {
    background: linear-gradient(135deg, #15803D 0%, #166534 100%);
    box-shadow: 0 4px 14px rgba(21, 128, 61, 0.35);
    border-radius: 50%;
    width: 32px;
    height: 32px;
  }

  .mobile-dock-item.samyukta-dock-btn .mobile-dock-icon {
    font-size: 1.15rem;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
  }

  .mobile-dock-item.samyukta-dock-btn .mobile-dock-label {
    color: var(--green-resolution);
  }

  /* Native Touch Ripple Feedback */
  .btn-primary:active, .btn-secondary:active, .btn-accent:active, .quick-action-btn:active {
    transform: scale(0.97) !important;
  }
}

/* ==========================================================================
   GLOBAL FLOATING SAMYUKTA AI COMPANION (Accessible across all pages)
   ========================================================================== */
.samyukta-fab-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  border: 2.5px solid var(--green-resolution);
  box-shadow: 0 8px 24px rgba(21, 128, 61, 0.32);
  cursor: pointer;
  z-index: 990;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s;
  overflow: hidden;
}

.samyukta-fab-btn:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 14px 34px rgba(21, 128, 61, 0.48);
}

.samyukta-fab-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.samyukta-fab-status-dot {
  width: 9px;
  height: 9px;
  background: #4ADE80;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 2px rgba(21, 128, 61, 0.8);
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

/* Global Samyukta Drawer / Modal */
.samyukta-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  z-index: 100000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.samyukta-drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.samyukta-drawer-panel {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 440px;
  max-width: calc(100vw - 32px);
  height: 640px;
  max-height: calc(100vh - 48px);
  background: #FFFFFF;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28), 0 0 0 1px rgba(0,0,0,0.06);
  z-index: 100001;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.samyukta-drawer-panel.active {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.samyukta-drawer-header {
  background: linear-gradient(135deg, #14532D 0%, #15803D 100%);
  color: #FFFFFF;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.samyukta-drawer-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.samyukta-drawer-header-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #FFFFFF;
  background: #FFFFFF;
}

.samyukta-drawer-header-title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.samyukta-drawer-header-subtitle {
  font-size: 0.78rem;
  color: #BBF7D0;
  margin: 2px 0 0 0;
}

.samyukta-drawer-close-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #FFFFFF;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background 0.2s;
}

.samyukta-drawer-close-btn:hover {
  background: rgba(255, 255, 255, 0.35);
}

.samyukta-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #F8FAFC;
}

.samyukta-drawer-msg {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  max-width: 90%;
  animation: fadeIn 0.25s ease-out;
}

.samyukta-drawer-msg.ai {
  align-self: flex-start;
}

.samyukta-drawer-msg.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.samyukta-drawer-bubble {
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.55;
}

.samyukta-drawer-msg.ai .samyukta-drawer-bubble {
  background: #FFFFFF;
  color: #0F172A;
  border: 1px solid #E2E8F0;
  border-top-left-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.samyukta-drawer-msg.user .samyukta-drawer-bubble {
  background: #15803D;
  color: #FFFFFF;
  border-top-right-radius: 4px;
  box-shadow: 0 2px 6px rgba(21, 128, 61, 0.25);
}

.samyukta-quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 16px;
  background: #F1F5F9;
  border-top: 1px solid #E2E8F0;
}

.samyukta-quick-chip {
  background: #FFFFFF;
  color: #15803D;
  border: 1px solid #CBD5E1;
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.samyukta-quick-chip:hover {
  background: #DCFCE7;
  border-color: #86EFAC;
  color: #14532D;
  transform: translateY(-1px);
}

.samyukta-drawer-footer {
  padding: 12px 14px;
  background: #FFFFFF;
  border-top: 1px solid #E2E8F0;
  display: flex;
  gap: 8px;
  align-items: center;
}

.samyukta-drawer-input {
  flex: 1;
  border: 1.5px solid #CBD5E1;
  border-radius: 24px;
  padding: 10px 16px;
  font-size: 0.88rem;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s;
}

.samyukta-drawer-input:focus {
  border-color: #15803D;
  box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.12);
}

.samyukta-drawer-send-btn {
  background: #15803D;
  color: #FFFFFF;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all 0.2s;
  flex-shrink: 0;
}

.samyukta-drawer-send-btn:hover {
  background: #166534;
  transform: scale(1.05);
}

@media (max-width: 860px) {
  .samyukta-fab-btn {
    bottom: calc(76px + env(safe-area-inset-bottom, 8px));
    right: 16px;
    width: 54px;
    height: 54px;
    padding: 0;
    z-index: 9998;
  }
  .samyukta-drawer-panel {
    bottom: 0;
    left: 0;
    right: 0;
    width: 100vw;
    max-width: 100vw;
    height: 84vh;
    max-height: 84vh;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.3);
  }
}







/* --------------------------------------------------------------------------
   Dynamic Dispute Category Form Engine & Proposal Templates
   -------------------------------------------------------------------------- */
.dynamic-fields-container {
  background: var(--bg-subtle);
  border: 1px solid var(--green-border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin: 16px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  animation: fadeInDown 0.25s ease-out;
}

.dynamic-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dynamic-field-group label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy-deep);
}

.dynamic-field-group input,
.dynamic-field-group select,
.dynamic-field-group textarea {
  font-size: 0.88rem;
  padding: 9px 12px;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  background: #FFFFFF;
}

/* Dispute-Specific Multi-Proposal Card Layout */
.dispute-proposal-template-card {
  background: #FFFFFF;
  border: 1.5px solid var(--green-border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.dispute-proposal-template-card:hover {
  border-color: var(--green-resolution);
  box-shadow: 0 4px 12px rgba(20, 83, 45, 0.08);
}

.proposal-terms-table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0;
  font-size: 0.85rem;
}

.proposal-terms-table td {
  padding: 6px 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.proposal-terms-table td:first-child {
  font-weight: 700;
  color: var(--text-muted);
  width: 40%;
}

.proposal-terms-table td:last-child {
  color: var(--navy-deep);
  font-weight: 600;
}

/* Real-Time Tone De-Escalation Banner */
.tone-reframe-card {
  background: #F0FDF4;
  border: 1.5px solid var(--green-resolution);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-top: 8px;
  box-shadow: 0 4px 14px rgba(20, 83, 45, 0.12);
  animation: fadeInDown 0.2s ease-out;
}

.tone-reframe-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  color: var(--green-resolution);
  font-size: 0.86rem;
  font-weight: 800;
}

.tone-reframe-body {
  font-size: 0.90rem;
  color: #14532D;
  background: #FFFFFF;
  border: 1px dashed var(--green-border);
  border-radius: 6px;
  padding: 10px 14px;
  line-height: 1.5;
  margin-bottom: 12px;
  font-style: italic;
}

.tone-reframe-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-use-reframe {
  background: var(--green-resolution);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-sm);
  padding: 7px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-use-reframe:hover {
  background: #0E3D20;
}

.btn-revert-original {
  background: #FFFFFF;
  color: var(--text-muted);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 7px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-revert-original:hover {
  color: var(--navy-deep);
  border-color: var(--navy-deep);
}


/* Baithak Width Optimization Breakpoints */
@media (max-width: 1280px) and (min-width: 1025px) {
  .baithak-grid {
    grid-template-columns: minmax(240px, 270px) minmax(0, 1fr) minmax(260px, 300px);
    gap: 16px;
  }
  .baithak-panel {
    padding: 16px;
  }
}

@media (max-width: 1024px) and (min-width: 861px) {
  .baithak-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .baithak-panel.guftagu-chat-window {
    grid-column: 1 / -1;
  }
}


/* --------------------------------------------------------------------------
   GUFTAGU INPUT & 2-LINE QUICK SUGGESTIONS GRID
   -------------------------------------------------------------------------- */
.guftagu-input-container {
  background: #FFFFFF;
  border: 1.5px solid var(--green-border);
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  box-shadow: 0 4px 16px rgba(20, 83, 45, 0.08);
  margin-top: 6px;
  margin-bottom: 6px;
  flex-shrink: 0;
  box-sizing: border-box;
}

.chat-actions-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.chat-toolbar-icons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-action-btn {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-medium);
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.chat-action-btn:hover {
  background: rgba(20, 83, 45, 0.1);
  border-color: var(--green-resolution);
  transform: scale(1.05);
}

.quick-reply-tray-container {
  flex-shrink: 0;
}

/* Arrange Quick Suggestions cleanly in 2 Lines */
.quick-reply-tray-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
}

.quick-reply-tray-grid .quick-reply-pill {
  width: 100%;
  background: var(--light-green-bg);
  border: 1px solid var(--green-border);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  font-size: 0.80rem;
  font-weight: 700;
  color: var(--navy-deep);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  white-space: normal;
  line-height: 1.35;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
}

.quick-reply-tray-grid .quick-reply-pill:hover {
  background: #FFFFFF;
  border-color: var(--green-resolution);
  color: var(--green-resolution);
  box-shadow: 0 3px 10px rgba(20, 83, 45, 0.15);
  transform: translateY(-1px);
}
