/* ==========================================================================
   NyayaSetu 2.0 Design System — Full-Width Webflow Container Integration
   ========================================================================== */

:root {
  --nyaya-primary: #2f855a;
  --nyaya-primary-dark: #22543d;
  --nyaya-primary-light: #f2f9f4;
  --nyaya-primary-border: #d1fae5;
  --nyaya-primary-glow: rgba(47, 133, 90, 0.12);
  
  --nyaya-charcoal: #111827;
  --nyaya-text-muted: #4b5563;
  --nyaya-text-subtle: #6b7280;
  
  --nyaya-surface: #ffffff;
  --nyaya-surface-subtle: #f8fafc;
  --nyaya-border-default: #e5e7eb;
  --nyaya-border-focus: #2f855a;
  
  --nyaya-amber: #d97706;
  --nyaya-amber-bg: #fffbeb;
  --nyaya-red: #dc2626;
  --nyaya-red-bg: #fef2f2;
  --nyaya-blue: #2563eb;
  --nyaya-blue-bg: #eff6ff;
  
  --nyaya-radius-card: 20px;
  --nyaya-radius-pill: 9999px;
  --nyaya-shadow-card: 0 12px 36px -12px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(47, 133, 90, 0.08);
}

.nyaya-app-shell {
  width: 100%;
  padding: 48px 0 80px;
  background: linear-gradient(180deg, #e9f5ed 0%, #f4faf6 280px, #ffffff 100%);
  position: relative;
  border-top: 2px solid #cfe8d6;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--nyaya-charcoal);
  box-sizing: border-box;
  box-shadow: inset 0 20px 40px -20px rgba(18, 52, 33, 0.08);
}

.nyaya-portal-container {
  width: 100%;
  max-width: 100%;
  margin: 0;
  box-sizing: border-box;
}

/* Section Header */
.nyaya-section-header {
  text-align: left;
  margin-bottom: 24px;
}

.nyaya-section-header .pill-button {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1e6b43;
  background: #d8f0df;
  border: 1px solid #bce2c7;
  border-radius: var(--nyaya-radius-pill);
  padding: 6px 18px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(30, 107, 67, 0.08);
}

.nyaya-section-header .section-heading {
  margin: 0 0 10px;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.25;
  color: #0d2319;
  letter-spacing: -0.01em;
}

.nyaya-section-header .about-text {
  font-size: 15px;
  color: #334155;
  line-height: 1.6;
  margin: 0;
  max-width: 920px;
}

/* Main Full-Width Card */
.nyaya-card {
  width: 100%;
  box-sizing: border-box;
  background: #ffffff;
  border: 1px solid #d3e7d8;
  border-radius: 22px;
  box-shadow: 0 20px 50px -12px rgba(18, 52, 33, 0.09), 0 0 0 1px rgba(47, 133, 90, 0.05);
  padding: 34px 38px;
  position: relative;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

@media (max-width: 768px) {
  .nyaya-card {
    padding: 20px 18px;
    border-radius: 16px;
  }
}

.nyaya-card:hover {
  border-color: #d7eadc;
  box-shadow: 0 18px 45px -12px rgba(0, 0, 0, 0.09);
}

/* 3-Column Mode Selector Grid Filling 100% Width */
.nyaya-mode-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 860px) {
  .nyaya-mode-grid {
    grid-template-columns: 1fr;
  }
}

.nyaya-mode-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: #fbfdfc;
  border: 1.5px solid #e2efe6;
  border-radius: 14px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.nyaya-mode-card:hover {
  border-color: var(--nyaya-primary);
  background: #f4fbf6;
  transform: translateY(-1px);
}

.nyaya-mode-card.is-active {
  border-color: var(--nyaya-primary);
  background: var(--nyaya-primary-light);
  box-shadow: 0 4px 16px var(--nyaya-primary-glow);
}

.nyaya-mode-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #d7eadc;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--nyaya-primary);
  flex-shrink: 0;
}

.nyaya-mode-card.is-active .nyaya-mode-icon-wrap {
  background: var(--nyaya-primary);
  color: #ffffff;
  border-color: var(--nyaya-primary);
}

.nyaya-mode-text strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--nyaya-charcoal);
  line-height: 1.3;
}

.nyaya-mode-text span {
  display: block;
  font-size: 12px;
  color: var(--nyaya-text-subtle);
  margin-top: 2px;
}

/* Forms & Textareas */
.nyaya-form-group {
  margin-bottom: 20px;
}

.nyaya-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--nyaya-charcoal);
  margin-bottom: 8px;
}

.nyaya-textarea,
.nyaya-input,
.nyaya-select {
  width: 100%;
  box-sizing: border-box;
  background: #ffffff;
  border: 1px solid #d7eadc;
  border-radius: 12px;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 14px;
  color: var(--nyaya-charcoal);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nyaya-textarea:focus,
.nyaya-input:focus,
.nyaya-select:focus {
  outline: none;
  border-color: var(--nyaya-primary);
  box-shadow: 0 0 0 3px var(--nyaya-primary-glow);
}

.nyaya-textarea {
  resize: vertical;
  min-height: 95px;
  line-height: 1.6;
}

/* Voice Recorder Box */
.nyaya-voice-recorder-box {
  background: var(--nyaya-primary-light);
  border: 1.5px dashed var(--nyaya-primary-border);
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
  margin-bottom: 22px;
}

.nyaya-voice-record-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 2px solid var(--nyaya-primary);
  border-radius: var(--nyaya-radius-pill);
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 700;
  color: var(--nyaya-primary-dark);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 6px 16px var(--nyaya-primary-glow);
}

.nyaya-voice-record-btn:hover {
  transform: scale(1.02);
  background: #f7fee7;
}

.nyaya-voice-record-btn.is-recording {
  background: var(--nyaya-red);
  border-color: #991b1b;
  color: #ffffff;
  animation: pulse-ring 1.5s infinite;
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.6); }
  70% { box-shadow: 0 0 0 14px rgba(220, 38, 38, 0); }
  100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

.nyaya-audio-player {
  margin: 16px auto 0;
  display: block;
  max-width: 420px;
  height: 40px;
}

.nyaya-hint-text {
  font-size: 13px;
  color: var(--nyaya-text-muted);
  margin: 12px 0 0;
}

/* Upload Dropzone */
.nyaya-upload-dropzone {
  position: relative;
  background: #fbfdfc;
  border: 1.5px dashed #d7eadc;
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 22px;
}

.nyaya-upload-dropzone:hover {
  border-color: var(--nyaya-primary);
  background: var(--nyaya-primary-light);
}

.nyaya-file-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.nyaya-upload-symbol {
  font-size: 30px;
  display: block;
  margin-bottom: 6px;
}

.nyaya-evidence-preview-img {
  max-width: 200px;
  border-radius: 10px;
  border: 1px solid #d7eadc;
  margin-top: 12px;
}

.nyaya-file-badge {
  display: inline-block;
  background: #dcfce7;
  color: #166534;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  margin-top: 8px;
}

/* Controls Grid */
.nyaya-controls-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 18px;
}

@media (max-width: 700px) {
  .nyaya-controls-row {
    grid-template-columns: 1fr;
  }
}

.nyaya-pin-input-wrap {
  display: flex;
  gap: 10px;
}

.nyaya-btn-gps {
  background: #f1f5f9;
  border: 1px solid #d7eadc;
  border-radius: 12px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--nyaya-charcoal);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.nyaya-btn-gps:hover {
  background: #e2efe6;
  border-color: var(--nyaya-primary);
}

.nyaya-jurisdiction-banner {
  background: #f7fcf8;
  border: 1px solid #eef7f0;
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--nyaya-text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
}

.nyaya-jurisdiction-banner strong {
  color: var(--nyaya-charcoal);
}

/* Primary CTA Action Button */
.nyaya-action-row {
  margin-top: 22px;
}

.nyaya-cta-btn {
  width: 100%;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 700;
  border-radius: var(--nyaya-radius-pill);
  justify-content: center;
  background: #e05638;
  color: #ffffff !important;
  cursor: pointer;
  text-align: center;
  border: 0;
  box-shadow: 0 6px 20px rgba(224, 86, 56, 0.25);
  transition: all 0.2s ease;
}

.nyaya-cta-btn:hover {
  background: #c94428;
  transform: translateY(-1px);
}

/* Status Messages */
.nyaya-status-message {
  padding: 12px 18px;
  border-radius: 12px;
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.5;
}

.nyaya-status-message.is-active {
  background: var(--nyaya-primary-light);
  border: 1px solid var(--nyaya-primary-border);
  color: var(--nyaya-primary-dark);
}

.nyaya-status-message.is-error {
  background: var(--nyaya-red-bg);
  border: 1px solid #fca5a5;
  color: #991b1b;
}

/* Review Wrapper */
.nyaya-review-wrapper {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #eef7f0;
}

.nyaya-review-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
}

.nyaya-case-id-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nyaya-tag-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--nyaya-text-subtle);
  letter-spacing: 0.05em;
}

.nyaya-tag-value {
  font-size: 16px;
  font-weight: 800;
  color: var(--nyaya-charcoal);
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 4px 12px;
  border-radius: 8px;
}

.nyaya-badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 6px;
}

.nyaya-badge.is-critical { background: #fee2e2; color: #991b1b; }
.nyaya-badge.is-high { background: #ffedd5; color: #9a3412; }
.nyaya-badge.is-medium { background: #fef9c3; color: #854d0e; }
.nyaya-badge.is-low { background: #f0fdf4; color: #166534; }

.nyaya-confidence-gauge {
  text-align: right;
}

.nyaya-gauge-label {
  font-size: 13px;
  color: var(--nyaya-text-muted);
}

.nyaya-gauge-track {
  width: 140px;
  height: 8px;
  background: #e5e7eb;
  border-radius: var(--nyaya-radius-pill);
  overflow: hidden;
  margin-top: 4px;
}

.nyaya-gauge-bar {
  height: 100%;
  background: linear-gradient(90deg, #10b981, var(--nyaya-primary));
}

/* Clarification Card */
.nyaya-clarification-card {
  background: var(--nyaya-amber-bg);
  border: 1px solid #fde68a;
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 20px;
}

.nyaya-clarify-prompt {
  font-size: 14px;
  color: #92400e;
  margin: 6px 0 12px;
}

.nyaya-clarify-input-row {
  display: flex;
  gap: 10px;
}

/* Facts Matrix — 4 Columns on Wide Displays */
.nyaya-facts-matrix {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}

@media (max-width: 900px) {
  .nyaya-facts-matrix {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .nyaya-facts-matrix {
    grid-template-columns: 1fr;
  }
}

.nyaya-fact-box {
  background: #fbfdfc;
  border: 1px solid #eef7f0;
  border-radius: 14px;
  padding: 14px 16px;
}

.nyaya-fact-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--nyaya-text-subtle);
  margin-bottom: 4px;
}

.nyaya-fact-content {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--nyaya-charcoal);
  line-height: 1.4;
}

/* Target Authority Dossier */
.nyaya-authority-dossier {
  background: var(--nyaya-primary-light);
  border: 1px solid var(--nyaya-primary-border);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 22px;
}

.nyaya-dossier-body {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-top: 12px;
}

.nyaya-dossier-icon {
  font-size: 36px;
  background: #ffffff;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--nyaya-primary-border);
}

.nyaya-dossier-details {
  flex: 1;
  min-width: 240px;
}

.nyaya-dossier-details h4 {
  margin: 0 0 4px;
  font-size: 18px;
  color: var(--nyaya-primary-dark);
}

.nyaya-dossier-office {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--nyaya-text-muted);
}

.nyaya-dossier-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 13px;
  color: var(--nyaya-text-muted);
}

.nyaya-dossier-meta a {
  color: var(--nyaya-primary);
  text-decoration: underline;
}

.nyaya-channel-chip {
  display: inline-block;
  background: var(--nyaya-primary-dark);
  color: #ffffff;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
}

.nyaya-dossier-channel-tag {
  text-align: right;
}

.nyaya-dossier-channel-tag small {
  display: block;
  color: var(--nyaya-text-subtle);
  font-size: 11px;
  margin-top: 3px;
}

/* Formal Complaint Draft */
.nyaya-draft-section {
  margin-bottom: 22px;
}

.nyaya-draft-nav {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.nyaya-draft-tab {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nyaya-draft-tab.is-active {
  background: var(--nyaya-charcoal);
  color: #ffffff;
  border-color: var(--nyaya-charcoal);
}

.nyaya-letter-box {
  background: #fbfdfc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
  color: var(--nyaya-charcoal);
  max-height: 240px;
  overflow-y: auto;
}

.nyaya-submission-cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.nyaya-submit-btn,
.nyaya-track-anchor-btn {
  padding: 14px 26px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--nyaya-radius-pill);
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nyaya-submit-btn {
  background: #15803d;
  color: #ffffff !important;
  border: 0;
  box-shadow: 0 4px 14px rgba(21, 128, 61, 0.25);
}

.nyaya-track-anchor-btn {
  background: #ffffff;
  color: var(--nyaya-primary) !important;
  border: 1.5px solid var(--nyaya-primary);
}

.nyaya-confirmation-banner {
  background: var(--nyaya-primary-light);
  border: 1px solid var(--nyaya-primary-border);
  border-radius: 14px;
  padding: 18px;
  margin-top: 18px;
}

.nyaya-confirmation-banner h4 {
  margin: 0 0 6px;
  color: var(--nyaya-primary-dark);
  font-size: 16px;
}

.nyaya-confirmation-banner p {
  margin: 3px 0;
  font-size: 14px;
}

/* ==========================================================================
   Case Dashboard & Timeline — Full Width & High Contrast
   ========================================================================== */

.nyaya-tracker-card {
  margin-top: 10px;
}

.nyaya-search-bar-wrap {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.nyaya-search-input-field {
  position: relative;
  flex: 1;
}

.nyaya-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  color: var(--nyaya-text-subtle);
}

.nyaya-search-input-field .nyaya-input {
  padding-left: 44px;
  height: 48px;
  font-size: 15px;
}

.nyaya-track-search-btn {
  padding: 12px 28px;
  border-radius: var(--nyaya-radius-pill);
  font-weight: 700;
  font-size: 15px;
  background: #e05638;
  color: #ffffff !important;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(224, 86, 56, 0.25);
  transition: all 0.2s ease;
}

.nyaya-track-search-btn:hover {
  background: #c94428;
}

/* ==========================================================================
   Apple HIG (Human Interface Guidelines) Live Case Tracker Design System
   ========================================================================== */

.apple-tracker-shell {
  width: 100%;
  box-sizing: border-box;
  background: #ffffff;
  border: 1px solid #e5e5ea;
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
  padding: 32px 36px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #1d1d1f;
}

@media (max-width: 768px) {
  .apple-tracker-shell {
    padding: 20px 18px;
    border-radius: 16px;
  }
}

/* Apple Spotlight Search Box */
.apple-search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f5f5f7;
  border: 1px solid #e5e5ea;
  border-radius: 980px;
  padding: 6px 8px 6px 16px;
  margin-bottom: 28px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.apple-search-box:focus-within {
  background: #ffffff;
  border-color: #0071e3;
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.15);
}

.apple-search-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.apple-search-icon {
  color: #86868b;
  flex-shrink: 0;
}

.apple-search-input {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 14.5px;
  font-weight: 500;
  color: #1d1d1f;
  outline: none;
  font-family: inherit;
}

.apple-search-input::placeholder {
  color: #86868b;
  font-weight: 400;
}

.apple-search-btn {
  background: #1d1d1f;
  color: #ffffff !important;
  border: 0;
  border-radius: 980px;
  padding: 9px 22px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.apple-search-btn:hover {
  background: #000000;
  transform: translateY(-1px);
}

/* Apple Status Toast */
.apple-status-toast {
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 500;
  margin-bottom: 20px;
}

.apple-status-toast.is-loading {
  background: #f5f5f7;
  color: #1d1d1f;
  border: 1px solid #e5e5ea;
}

.apple-status-toast.is-error {
  background: #fff2f2;
  color: #d70015;
  border: 1px solid #ffd6d6;
}

/* Apple Dossier Card Container */
.apple-dossier-card {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* Top Status Header (Apple Order Tracking Style) */
.apple-status-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f2f2f7;
}

.apple-status-main {
  flex: 1;
  min-width: 260px;
}

.apple-id-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.apple-case-id {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #86868b;
  text-transform: uppercase;
}

.apple-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 980px;
  font-size: 11.5px;
  font-weight: 600;
}

.apple-status-tag.is-blue {
  background: #f0f6ff;
  color: #0071e3;
}

.apple-status-tag.is-green {
  background: #eefaf0;
  color: #34c759;
}

.apple-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse-ring 2s infinite;
}

.apple-case-heading {
  margin: 4px 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #1d1d1f;
}

.apple-authority-sub {
  margin: 0;
  font-size: 13.5px;
  color: #86868b;
}

.apple-authority-sub strong {
  color: #1d1d1f;
  font-weight: 600;
}

.apple-sla-badge {
  text-align: right;
  background: #f5f5f7;
  border: 1px solid #e5e5ea;
  border-radius: 12px;
  padding: 10px 16px;
}

.apple-sla-time {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #0071e3;
  letter-spacing: -0.01em;
}

.apple-sla-badge.is-breached .apple-sla-time {
  color: #ff9500;
}

.apple-sla-caption {
  display: block;
  font-size: 11px;
  color: #86868b;
  margin-top: 2px;
}

/* Apple Progress Rail */
.apple-progress-section {
  position: relative;
  padding: 10px 0 16px;
}

.apple-progress-bar-bg {
  position: absolute;
  top: 15px;
  left: 6%;
  right: 6%;
  height: 3px;
  background: #e5e5ea;
  border-radius: 3px;
  z-index: 1;
}

.apple-progress-bar-fill {
  height: 100%;
  background: #0071e3;
  border-radius: 3px;
  transition: width 0.3s ease;
}

.apple-progress-labels {
  position: relative;
  display: flex;
  justify-content: space-between;
  z-index: 2;
}

.apple-step-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 20%;
}

.apple-step-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #c7c7cc;
  margin-bottom: 8px;
  transition: all 0.2s ease;
}

.apple-step-done .apple-step-dot {
  background: #0071e3;
  border-color: #0071e3;
}

.apple-step-active .apple-step-dot {
  background: #0071e3;
  border-color: #0071e3;
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.2);
}

.apple-step-label {
  font-size: 12px;
  font-weight: 500;
  color: #86868b;
}

.apple-step-done .apple-step-label,
.apple-step-active .apple-step-label {
  color: #1d1d1f;
  font-weight: 600;
}

/* Inset Bento Grid */
.apple-bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

@media (max-width: 900px) {
  .apple-bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .apple-bento-grid {
    grid-template-columns: 1fr;
  }
}

.apple-bento-cell {
  background: #fbfbfd;
  border: 1px solid #e5e5ea;
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.apple-bento-icon {
  color: #0071e3;
  flex-shrink: 0;
  margin-top: 1px;
}

.apple-bento-details {
  flex: 1;
  min-width: 0;
}

.apple-bento-title {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: #86868b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.apple-bento-val {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: #1d1d1f;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.apple-copy-val-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.apple-inline-copy {
  background: #ffffff;
  border: 1px solid #d1d1d6;
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  color: #0071e3;
  cursor: pointer;
  transition: all 0.15s ease;
}

.apple-inline-copy:hover {
  background: #f5f5f7;
  border-color: #0071e3;
}

/* iOS Inset Activity Log */
.apple-timeline-card {
  background: #fbfbfd;
  border: 1px solid #e5e5ea;
  border-radius: 16px;
  padding: 20px 24px;
}

.apple-timeline-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f2f2f7;
}

.apple-timeline-label {
  font-size: 14.5px;
  font-weight: 700;
  color: #1d1d1f;
  letter-spacing: -0.01em;
}

.apple-secure-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: #34c759;
  background: #eefaf0;
  padding: 3px 9px;
  border-radius: 980px;
}

.apple-timeline-stream {
  display: flex;
  flex-direction: column;
  position: relative;
}

.apple-timeline-row {
  display: flex;
  position: relative;
  padding-left: 24px;
  padding-bottom: 18px;
}

.apple-timeline-row:last-child {
  padding-bottom: 0;
}

.apple-timeline-row::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 10px;
  bottom: 0;
  width: 2px;
  background: #e5e5ea;
}

.apple-timeline-row:last-child::before {
  display: none;
}

.apple-timeline-bullet {
  position: absolute;
  left: 0;
  top: 5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c7c7cc;
}

.apple-timeline-row.is-latest .apple-timeline-bullet {
  background: #0071e3;
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.2);
}

.apple-timeline-content {
  flex: 1;
}

.apple-timeline-headline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.apple-timeline-action {
  font-size: 13.5px;
  font-weight: 600;
  color: #1d1d1f;
}

.apple-timeline-timestamp {
  font-size: 12px;
  color: #86868b;
}

.apple-timeline-desc {
  margin-top: 3px;
  font-size: 13px;
  color: #424245;
  line-height: 1.45;
}

/* Apple Action Footer */
.apple-actions-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  background: #f5f5f7;
  border: 1px solid #e5e5ea;
  border-radius: 16px;
  padding: 18px 24px;
}

.apple-actions-note {
  flex: 1;
  min-width: 260px;
}

.apple-actions-note strong {
  display: block;
  font-size: 13.5px;
  color: #1d1d1f;
  margin-bottom: 2px;
}

.apple-actions-note p {
  margin: 0;
  font-size: 12.5px;
  color: #86868b;
  line-height: 1.4;
}

.apple-actions-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.apple-btn-primary {
  background: #1d1d1f !important;
  color: #ffffff !important;
  border: 0 !important;
  padding: 10px 20px !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  border-radius: 980px !important;
  cursor: pointer;
  transition: all 0.15s ease;
}

.apple-btn-primary:hover {
  background: #000000 !important;
  transform: translateY(-1px);
}

.apple-btn-secondary {
  background: #ffffff !important;
  color: #1d1d1f !important;
  border: 1px solid #d1d1d6 !important;
  padding: 10px 18px !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  border-radius: 980px !important;
  cursor: pointer;
  transition: all 0.15s ease;
}

.apple-btn-secondary:hover {
  background: #f2f2f7 !important;
}

.apple-rating-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #ffffff;
  border: 1px solid #e5e5ea;
  border-radius: 980px;
  padding: 4px 12px;
}

.apple-rating-label {
  font-size: 12px;
  font-weight: 500;
  color: #86868b;
  margin-right: 4px;
}

.apple-star-btn {
  background: none;
  border: none;
  font-size: 16px;
  color: #ff9500;
  cursor: pointer;
  padding: 0 2px;
  transition: transform 0.15s ease;
}

.apple-star-btn:hover {
  transform: scale(1.25);
}

.apple-btn-danger {
  background: #ffffff !important;
  color: #d70015 !important;
  border: 1px solid #ffd6d6 !important;
  padding: 10px 18px !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  border-radius: 980px !important;
  cursor: pointer;
  transition: all 0.15s ease;
}

.apple-btn-danger:hover {
  background: #fff2f2 !important;
  border-color: #d70015 !important;
}

/* ==========================================================================
   Real Clean Footer Design System (Emerald Gradient Theme)
   ========================================================================== */
.nyaya-footer-root {
  background: linear-gradient(135deg, #0e2017 0%, #153223 50%, #0c1a12 100%);
  color: #a7f3d0;
  padding: 36px 0 28px;
  font-family: inherit;
  border-top: 2px solid rgba(47, 133, 90, 0.3);
  box-shadow: inset 0 20px 30px -15px rgba(0, 0, 0, 0.4);
}

.nyaya-footer-content {
  width: 100%;
}

.nyaya-footer-brand-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.nyaya-footer-logo {
  height: 38px;
  width: auto;
  filter: brightness(0) invert(1);
}

.nyaya-footer-portals {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.nyaya-footer-portal-btn {
  display: inline-flex;
  align-items: center;
  padding: 7px 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--nyaya-radius-pill);
  text-decoration: none;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
}

.nyaya-footer-portal-btn:hover {
  background: var(--nyaya-primary);
  border-color: #6ee7b7;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(47, 133, 90, 0.4);
}

.nyaya-footer-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 16px 0 20px;
  width: 100%;
}

.nyaya-footer-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12px;
  line-height: 1.6;
}

.nyaya-footer-copy {
  color: #d1fae5;
  font-weight: 600;
  white-space: nowrap;
}

.nyaya-footer-disclaimer {
  color: #94a3b8;
  max-width: 680px;
  text-align: right;
}

@media (max-width: 800px) {
  .nyaya-footer-meta-row {
    flex-direction: column;
    text-align: left;
  }
  .nyaya-footer-disclaimer {
    text-align: left;
  }
}

/* Utilities */
.nyaya-hidden {
  display: none !important;
}
