/* ==========================================================================
   RAZES CLIENT PORTAL — COMPONENTS STYLESHEET
   Rich Custom UI Components faithfully matching inspiration designs
   ========================================================================== */

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition-fast);
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: #0F172A;
  color: #FFFFFF;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: #1E293B;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-secondary {
  background: #FFFFFF;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xs);
}
.btn-secondary:hover {
  background: #F8FAFC;
  border-color: var(--border-medium);
}
.btn-cta-hero {
  background: #FBBF24;
  color: #0F172A;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(251, 191, 36, 0.4);
}
.btn-cta-hero:hover {
  background: #F59E0B;
  transform: translateY(-1px);
}
.btn-orange {
  background: var(--brand-orange);
  color: #FFFFFF;
  box-shadow: 0 4px 12px var(--brand-orange-glow);
}
.btn-orange:hover {
  background: #C2410C;
}
.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}
.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   BADGES & PILLS
   ========================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.badge-done {
  background: var(--brand-green-bg);
  color: var(--brand-green);
  border: 1px solid var(--brand-green-border);
}
.badge-progress {
  background: var(--brand-orange-bg);
  color: var(--brand-orange);
  border: 1px solid #FFEDD5;
}
.badge-upcoming {
  background: #F1F5F9;
  color: #64748B;
  border: 1px solid var(--border-light);
}
.badge-high-priority {
  background: #FEE2E2;
  color: #DC2626;
  border: 1px solid #FECACA;
}
.badge-meeting {
  background: #E0E7FF;
  color: #4F46E5;
  border: 1px solid #C7D2FE;
}

/* ==========================================================================
   CARDS & CONTAINERS
   ========================================================================== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-xs);
  transition: var(--transition-normal);
}
.card:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--border-medium);
}
.card-dark {
  background: var(--bg-card-dark);
  color: var(--text-on-dark);
  border: 1px solid var(--border-dark);
  box-shadow: var(--shadow-dark);
}

/* ==========================================================================
   HERO BANNER (Inspired by 2b8499c212fcd566d1be04f7c9611229.jpg)
   ========================================================================== */
.hero-banner {
  background: linear-gradient(135deg, #2563EB 0%, #3B82F6 45%, #60A5FA 85%, #93C5FD 100%);
  border-radius: var(--radius-xl);
  padding: 36px 40px;
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.18);
  margin-bottom: 28px;
}
.hero-banner::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 20%;
  width: 280px;
  height: 180px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
}
.hero-clouds-svg {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 450px;
  opacity: 0.85;
  pointer-events: none;
}
.hero-airplane-1 {
  position: absolute;
  left: 38%;
  top: 28%;
  width: 44px;
  pointer-events: none;
  animation: planeFly 8s ease-in-out infinite;
}
.hero-airplane-2 {
  position: absolute;
  right: 22%;
  bottom: 30%;
  width: 34px;
  pointer-events: none;
  animation: planeFly 9s ease-in-out infinite reverse;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
}
.hero-collab-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.hero-title {
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  text-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}
.hero-subtitle {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
  max-width: 520px;
  line-height: 1.5;
  margin-bottom: 24px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ==========================================================================
   ANXIETY RELIEF VOICE WIDGET (Inspired by 78db5119029b6647eca396a5b0b72a1b.jpg)
   "Listen to this if you have anxiety — Don't worry, we are here"
   ========================================================================== */
.anxiety-voice-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
  transition: var(--transition-normal);
}
.anxiety-voice-card:hover {
  border-color: #93C5FD;
  box-shadow: var(--shadow-md);
}
.voice-tag-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.voice-pill {
  font-size: 11px;
  font-weight: 700;
  background: #EFF6FF;
  color: #2563EB;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid #DBEAFE;
}
.voice-reassurance-title {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}
.voice-waveform-container {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #F8FAFC;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}
.voice-play-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #0F172A;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: var(--transition-fast);
  flex-shrink: 0;
}
.voice-play-btn:hover {
  background: #2563EB;
  transform: scale(1.05);
}
.voice-waveform-canvas {
  flex: 1;
  height: 36px;
}
.voice-timer {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 600;
}

/* ==========================================================================
   GITHUB-STYLE DOTTED STACKED MATRIX HISTOGRAM
   (Inspired by dcdb309e6509c91d38175543703f7877.jpg & 04313ebdab4a6dd43466f40e33e0e20d.jpg)
   ========================================================================== */
.matrix-histogram-wrapper {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-xs);
  margin-bottom: 24px;
}
.matrix-chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}
.matrix-title-group h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}
.matrix-title-group p {
  font-size: 12px;
  color: var(--text-muted);
}
.matrix-legend {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  color: var(--text-secondary);
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
}
.legend-square {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}
.legend-square.active { background: var(--brand-orange); }
.legend-square.completed { background: #CBD5E1; opacity: 0.6; }
.legend-square.empty { background: #E2E8F0; }

.matrix-chart-container {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 6px;
  height: 180px;
  padding: 10px 0 20px 0;
  border-bottom: 1px solid var(--border-light);
  overflow-x: auto;
  position: relative;
}
.matrix-column {
  display: flex;
  flex-direction: column-reverse;
  gap: 4px;
  align-items: center;
  flex: 1;
  min-width: 18px;
  cursor: pointer;
  position: relative;
  transition: transform 0.2s ease;
}
.matrix-column:hover {
  transform: translateY(-2px);
}
.matrix-cell {
  width: 14px;
  height: 10px;
  border-radius: 2px;
  background: #F1F5F9;
  transition: background-color 0.2s, opacity 0.2s;
}
.matrix-cell.filled {
  background: var(--brand-orange);
}
.matrix-cell.filled.high {
  background: #C2410C;
}
/* When day has passed and meeting is marked done: start blurring/dimming */
.matrix-column.past-done {
  filter: blur(0.4px);
  opacity: 0.45;
}
.matrix-column.past-done .matrix-cell.filled {
  background: #94A3B8;
}
.matrix-column.today {
  position: relative;
}
.matrix-column.today::after {
  content: '';
  position: absolute;
  bottom: -14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-orange);
}
.matrix-day-label {
  position: absolute;
  bottom: -22px;
  font-size: 10px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  white-space: nowrap;
}

/* Tooltip on Matrix Hover */
.matrix-tooltip {
  position: absolute;
  top: -45px;
  left: 50%;
  transform: translateX(-50%);
  background: #0F172A;
  color: #FFFFFF;
  padding: 5px 9px;
  border-radius: var(--radius-xs);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 20;
  box-shadow: var(--shadow-md);
}
.matrix-column:hover .matrix-tooltip {
  opacity: 1;
}

/* ==========================================================================
   PENDING MEETING CONFIRMATION ALERT
   ========================================================================== */
.meeting-alert-banner {
  background: #FFFBEB;
  border: 1px solid #FCD34D;
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.08);
}
.alert-content {
  display: flex;
  align-items: center;
  gap: 12px;
}
.alert-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #FEF3C7;
  color: #D97706;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.alert-text h4 {
  font-size: 13px;
  font-weight: 700;
  color: #92400E;
}
.alert-text p {
  font-size: 12px;
  color: #B45309;
}
.alert-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   DELIVERABLES & TASKS
   (Inspired by ac3ede4f2937241ddc5fd767df987deb.jpg & 78db5119029b6647eca396a5b0b72a1b.jpg)
   ========================================================================== */
.stage-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 8px;
}
.stage-tab-btn {
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
}
.stage-tab-btn:hover {
  color: var(--text-primary);
}
.stage-tab-btn.active {
  background: #0F172A;
  color: #FFFFFF;
}

.deliverables-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.deliverable-block {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
  position: relative;
  transition: var(--transition-normal);
}
.deliverable-block:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-sm);
}
.deliverable-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.deliverable-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.deliverable-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}
.deliverable-menu-btn {
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
}
.deliverable-progress-row {
  margin-top: 24px;
}
.deliverable-progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
}
.progress-bar-track {
  width: 100%;
  height: 6px;
  background: #F1F5F9;
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: #0F172A;
  border-radius: var(--radius-pill);
  transition: width 0.5s ease-out;
}
.deliverable-block.completed .progress-bar-fill {
  background: var(--brand-green);
}

/* User's Blur-on-Done Feature */
.deliverable-block.is-done {
  filter: blur(0.5px);
  opacity: 0.65;
  background: #FAFAFA;
}
.deliverable-block.is-done:hover {
  filter: none;
  opacity: 0.95;
}

/* ==========================================================================
   FILES & FOLDERS (Inspired by 225e42639927623c588b3922a5b2d486.jpg)
   ========================================================================== */
.folder-shortcuts-row {
  display: flex;
  align-items: center;
  gap: 16px;
  overflow-x: auto;
  padding: 12px 0 20px 0;
  margin-bottom: 24px;
}
.folder-shortcut-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 110px;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 12px;
  cursor: pointer;
  transition: var(--transition-normal);
  flex-shrink: 0;
  text-align: center;
}
.folder-shortcut-card:hover {
  background: #F8FAFC;
  border-color: #0F172A;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.folder-shortcut-card.active {
  background: #0F172A;
  color: #FFFFFF;
  border-color: #0F172A;
}
.folder-shortcut-card.active .folder-count {
  color: rgba(255, 255, 255, 0.7);
}
.folder-icon-3d {
  width: 44px;
  height: 38px;
  margin-bottom: 8px;
}
.folder-name {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100px;
}
.folder-count {
  font-size: 11px;
  color: var(--text-muted);
}

.file-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 18px;
  padding: 8px 14px;
  background: #FFFFFF;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-light);
  width: fit-content;
}
.file-breadcrumbs a {
  font-weight: 600;
  color: var(--text-primary);
}
.file-breadcrumbs a:hover {
  text-decoration: underline;
}

.files-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.file-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  transition: var(--transition-fast);
}
.file-item-card:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-sm);
}
.file-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}
.file-type-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.file-type-icon.pdf { background: #FEE2E2; color: #DC2626; }
.file-type-icon.sheet { background: #DCFCE7; color: #16A34A; }
.file-type-icon.link { background: #DBEAFE; color: #2563EB; }
.file-type-icon.doc { background: #E0E7FF; color: #4F46E5; }

.file-info {
  flex: 1;
  min-width: 0;
}
.file-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.file-meta {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.file-actions-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   DOCUMENT ENGAGEMENT TREND & CIRCULAR RING
   (Inspired by 225e42639927623c588b3922a5b2d486.jpg)
   ========================================================================== */
.engagement-charts-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  margin-top: 28px;
}

.chart-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.chart-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.chart-card-header h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.ring-gauge-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
}
.ring-gauge-svg {
  width: 140px;
  height: 140px;
  transform: rotate(-90deg);
}
.ring-gauge-bg {
  fill: none;
  stroke: #F1F5F9;
  stroke-width: 12;
}
.ring-gauge-progress {
  fill: none;
  stroke: #0F172A;
  stroke-width: 12;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s ease-out;
}
.ring-gauge-center-text {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: -85px;
  margin-bottom: 60px;
  text-align: center;
}

/* ==========================================================================
   CIRCULAR CLOCK / RADAR 12H CHART (Inspired by 5ce5f7bf2a41fa6db588651a0ca450d1.jpg)
   ========================================================================== */
.clock-radar-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.clock-radar-svg {
  width: 260px;
  height: 260px;
  margin: 16px 0;
}

/* ==========================================================================
   ATM RECEIPT DISPENSER (PAYMENTS)
   (Inspired by 6e30e8fe5e1b67944aaad61672609267.jpg)
   ========================================================================== */
.atm-dispenser-container {
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  padding-top: 30px;
}

/* Dark Dispenser Bezel Slot */
.atm-slot-header {
  height: 38px;
  background: #090A0D;
  border-radius: 18px 18px 8px 8px;
  position: relative;
  box-shadow: inset 0 -4px 8px rgba(0, 0, 0, 0.8), 0 10px 20px rgba(15, 23, 42, 0.15);
  border: 2px solid #1E293B;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}
.atm-slot-slit {
  width: 78%;
  height: 6px;
  background: #000000;
  border-radius: var(--radius-pill);
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.1);
}

/* Paper Receipt Slipping Out */
.atm-receipt-paper {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-top: none;
  border-radius: 0 0 16px 16px;
  padding: 28px 24px 24px 24px;
  margin-top: -12px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
  position: relative;
  z-index: 5;
  animation: receiptSlideDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes receiptSlideDown {
  from {
    transform: translateY(-40px);
    opacity: 0.7;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.receipt-dashed-line {
  border-top: 1px dashed var(--border-medium);
  margin: 16px 0;
}
.receipt-header {
  text-align: center;
  margin-bottom: 12px;
}
.receipt-header h3 {
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}
.receipt-amount-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 12px 0;
}
.receipt-amount-title {
  font-size: 14px;
  color: var(--text-secondary);
}
.receipt-amount-value {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

/* Installments List */
.milestones-payment-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 18px 0;
}
.milestone-payment-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: #F8FAFC;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}
.milestone-item-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}
.milestone-item-price {
  font-size: 12px;
  color: var(--text-secondary);
}

/* Stepper Track */
.receipt-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 20px 0;
}
.stepper-node {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}
.stepper-node.done {
  background: var(--brand-green);
  color: #FFFFFF;
}
.stepper-node.pending {
  background: #0F172A;
  color: #FFFFFF;
}
.stepper-line {
  height: 3px;
  width: 32px;
  background: #CBD5E1;
  border-radius: var(--radius-pill);
}
.stepper-line.active {
  background: #0F172A;
}

.receipt-btn-group {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.receipt-btn-group .btn {
  flex: 1;
}

/* ATM Bottom Payment Method Bar */
.atm-payment-bottom {
  margin-top: 16px;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}
.payment-method-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
}
.btn-pay-now-large {
  width: 100%;
  padding: 14px;
  font-size: 15px;
  background: #0F172A;
  color: #FFFFFF;
  border-radius: var(--radius-pill);
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: var(--transition-fast);
}
.btn-pay-now-large:hover {
  background: #1E293B;
  transform: translateY(-1px);
}

/* ==========================================================================
   MESSAGING & CHAT
   ========================================================================== */
.chat-window {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  height: calc(100vh - 200px);
  min-height: 520px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.chat-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FFFFFF;
}
.chat-messages-container {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #F8FAFC;
}
.message-bubble-wrapper {
  display: flex;
  gap: 10px;
  max-width: 75%;
}
.message-bubble-wrapper.sent {
  align-self: flex-end;
  flex-direction: row-reverse;
}
.message-bubble-wrapper.received {
  align-self: flex-start;
}
.message-bubble {
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 13px;
  line-height: 1.5;
  box-shadow: var(--shadow-xs);
  position: relative;
}
.message-bubble-wrapper.sent .message-bubble {
  background: #0F172A;
  color: #FFFFFF;
  border-bottom-right-radius: 4px;
}
.message-bubble-wrapper.received .message-bubble {
  background: #FFFFFF;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  border-bottom-left-radius: 4px;
}
.message-time {
  font-size: 10px;
  margin-top: 4px;
  color: var(--text-muted);
  text-align: right;
}
.message-bubble-wrapper.sent .message-time {
  color: rgba(255, 255, 255, 0.6);
}

/* Typing Indicator Animation */
.typing-indicator {
  display: none;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  width: fit-content;
  align-self: flex-start;
  margin-bottom: 8px;
}
.typing-indicator.active {
  display: flex;
}
.typing-dot {
  width: 6px;
  height: 6px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: dotBounce 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; }

.chat-input-bar {
  padding: 16px 20px;
  border-top: 1px solid var(--border-light);
  background: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 12px;
}
.chat-input-bar input {
  flex: 1;
  padding: 10px 16px;
  background: #F1F5F9;
  border-radius: var(--radius-pill);
  font-size: 13px;
}

/* ==========================================================================
   MODALS
   ========================================================================== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.active {
  display: flex;
}
.modal-box {
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  max-width: 540px;
  width: 100%;
  box-shadow: var(--shadow-float);
  overflow: hidden;
  animation: modalScaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes modalScaleUp {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-title {
  font-size: 17px;
  font-weight: 700;
}
.modal-close-btn {
  font-size: 20px;
  color: var(--text-muted);
  cursor: pointer;
}
.modal-body {
  padding: 24px;
  max-height: 70vh;
  overflow-y: auto;
}
.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  background: #F8FAFC;
}

/* Form Groups in Modals */
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.form-control {
  width: 100%;
  padding: 10px 14px;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--text-primary);
  transition: var(--transition-fast);
}
.form-control:focus {
  border-color: #0F172A;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

/* Upload Dropzone */
.upload-dropzone {
  border: 2px dashed var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 36px 20px;
  text-align: center;
  background: #F8FAFC;
  cursor: pointer;
  transition: var(--transition-fast);
}
.upload-dropzone:hover, .upload-dropzone.dragover {
  border-color: #0F172A;
  background: #F1F5F9;
}
.upload-progress-wrapper {
  margin-top: 16px;
  display: none;
}
.upload-progress-wrapper.active {
  display: block;
}

/* Toast Container */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  background: #0F172A;
  color: #FFFFFF;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes toastSlideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
