:root {
  --primary: #2563eb;
  --primary-light: #3b82f6;
  --secondary: #7c3aed;
  --accent: #06b6d4;
  --success: #10b981;
  --error: #ef4444;
  --whatsapp: #25d366;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --border: #e2e8f0;
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.1);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  color: var(--text-primary);
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.16), transparent 35%),
    radial-gradient(circle at bottom right, rgba(124, 58, 237, 0.18), transparent 34%),
    linear-gradient(135deg, #f0f9ff 0%, #dbeafe 52%, #eff6ff 100%);
}

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

button,
input {
  font: inherit;
}

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#root {
  flex: 1;
  display: flex;
}

.app-stage {
  width: 100%;
  min-height: calc(100vh - 56px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px 20px;
}

.app-container {
  width: 100%;
  max-width: 448px;
}

.app-card {
  position: relative;
  overflow: hidden;
  padding: 40px 32px 28px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  text-align: center;
  backdrop-filter: blur(14px);
  animation: card-enter 0.7s ease;
}

.app-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
}

.logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.logo-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  font-size: 22px;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.28);
  animation: float 3s ease-in-out infinite;
}

.logo-text {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.app-title {
  margin: 0 0 12px;
  font-size: clamp(2rem, 5vw, 2.25rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.app-subtitle {
  margin: 0 0 28px;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.55;
}

.feature-grid {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}

.feature-card {
  flex: 1;
  padding: 16px 12px;
  border-radius: 14px;
  background: var(--surface-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.07);
}

.feature-card i {
  display: block;
  margin-bottom: 8px;
  color: var(--primary);
  font-size: 22px;
}

.feature-card span {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.step-indicator {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
}

.step-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #dbe5f1;
  transition: all 0.3s ease;
}

.step-dot.active {
  width: 36px;
  background: var(--primary);
}

.panel {
  min-height: 280px;
}

.is-hidden {
  display: none;
}

.input-wrap {
  margin-bottom: 24px;
}

.code-input {
  width: 100%;
  padding: 17px 20px;
  border: 2px solid var(--border);
  border-radius: 16px;
  background: var(--surface-soft);
  color: var(--text-primary);
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.code-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
  transform: scale(1.01);
}

.code-input.is-valid {
  border-color: var(--success);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

.code-input.is-invalid {
  border-color: var(--error);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.input-hint,
.error-message {
  margin-top: 10px;
  font-size: 14px;
}

.input-hint {
  color: var(--text-muted);
}

.error-message {
  display: none;
  color: var(--error);
}

.primary-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 24px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.3);
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.primary-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 32px rgba(37, 99, 235, 0.34);
}

.primary-btn:disabled {
  opacity: 0.68;
  cursor: wait;
}

.primary-btn.whatsapp {
  background: linear-gradient(135deg, var(--whatsapp), #128c7e);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.28);
}

.primary-btn.whatsapp:hover {
  box-shadow: 0 18px 34px rgba(37, 211, 102, 0.35);
}

.trust-row {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
}

.trust-pill i {
  color: var(--success);
}

.loading-spinner {
  width: 60px;
  height: 60px;
  margin: 12px auto 24px;
  border: 4px solid rgba(37, 99, 235, 0.15);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.success-mark {
  width: 84px;
  height: 84px;
  margin: 8px auto 24px;
}

.success-mark svg {
  width: 100%;
  height: 100%;
}

.success-circle {
  fill: none;
  stroke: var(--success);
  stroke-width: 3;
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.success-check {
  fill: none;
  stroke: var(--success);
  stroke-width: 3;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: stroke 0.35s cubic-bezier(0.65, 0, 0.45, 1) 0.55s forwards;
}

.result-message {
  margin: 18px 0 14px;
  font-size: 20px;
  line-height: 1.5;
  font-weight: 700;
}

.code-display {
  display: inline-block;
  margin: 0 4px;
  padding: 10px 18px;
  border-radius: 12px;
  border: 2px solid rgba(37, 99, 235, 0.15);
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.disclaimer {
  margin-top: 22px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.6;
}

.site-footer {
  padding: 8px 20px 24px;
}

.page-navigation {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.nav-link {
  color: rgba(15, 23, 42, 0.68);
  font-size: 13px;
  font-weight: 600;
}

.nav-link:hover {
  color: var(--primary);
}

.fade-in {
  animation: fade-in 0.35s ease;
}

.slide-up {
  animation: slide-up 0.45s ease;
}

@keyframes card-enter {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes stroke {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@media (max-width: 520px) {
  .app-stage {
    padding-top: 18px;
  }

  .app-card {
    padding: 32px 20px 24px;
    border-radius: 22px;
  }

  .feature-grid {
    gap: 10px;
  }

  .feature-card {
    padding: 14px 8px;
  }

  .feature-card span {
    font-size: 12px;
  }

  .trust-row {
    gap: 14px;
  }
}

@media (max-width: 380px) {
  .feature-grid {
    flex-direction: column;
  }

 .panel {
   min-height: 316px;
 }
}

/* India religious theme merged into the original stylesheet path. */

:root {
    --marigold: #f2a900;
    --saffron: #c94f1a;
    --vermilion: #8f1d14;
    --kumkum: #5c1111;
    --peacock: #096b68;
    --lotus: #b4374f;
    --jasmine: #fff8dc;
    --ivory: #fffdf2;
    --ink: #24130f;
    --muted: #6f5140;
    --line: rgba(92, 17, 17, .22);
    --shadow: 0 28px 70px rgba(87, 32, 12, .22);
}

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

html {
    background: #3b100d;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    color: var(--ink);
    font-family: "Libre Baskerville", Georgia, serif;
    line-height: 1.68;
    background:
        radial-gradient(circle at 12% 8%, rgba(242, 169, 0, .33), transparent 28%),
        radial-gradient(circle at 88% 16%, rgba(9, 107, 104, .24), transparent 26%),
        linear-gradient(180deg, #6e1711 0%, #a83118 38%, #f2c063 74%, #fff7dd 100%);
    overflow-x: hidden;
    display: block;
    padding: 0;
}

/* The rendered landing page is mounted as several siblings inside #root. */
#root {
    display: block;
    min-width: 0;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .16;
    background-image:
        repeating-linear-gradient(45deg, rgba(255,255,255,.24) 0 1px, transparent 1px 28px),
        repeating-linear-gradient(-45deg, rgba(255,255,255,.16) 0 1px, transparent 1px 28px);
    mix-blend-mode: soft-light;
}

button,
input,
a {
    font: inherit;
}

.analysis-platform-container {
    width: min(100%, 1180px);
    max-width: 1180px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
}

.platform-header-area {
    min-height: 560px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding: clamp(44px, 7vw, 90px) clamp(28px, 7vw, 86px);
    color: var(--ivory);
    overflow: hidden;
    border: 1px solid rgba(255, 248, 220, .22);
    border-radius: 0 0 34px 34px;
    box-shadow: var(--shadow);
    background:
        radial-gradient(ellipse at 78% 48%, rgba(255, 236, 160, .20) 0 16%, transparent 17%),
        radial-gradient(circle at 84% 50%, rgba(242, 169, 0, .22), transparent 28%),
        linear-gradient(135deg, rgba(64, 11, 8, .92), rgba(160, 48, 22, .83)),
        radial-gradient(circle at 50% 110%, rgba(242, 169, 0, .42), transparent 58%);
}

.platform-header-area::before {
    content: "";
    position: absolute;
    inset: 16px;
    border: 2px solid rgba(255, 237, 173, .35);
    border-radius: 0 0 28px 28px;
    pointer-events: none;
}

.platform-header-area::after {
    content: "";
    position: absolute;
    right: clamp(28px, 8vw, 118px);
    bottom: clamp(34px, 6vw, 76px);
    width: min(42vw, 430px);
    aspect-ratio: 1;
    border-radius: 50%;
    opacity: .78;
    background:
        radial-gradient(circle, transparent 0 17%, rgba(255, 248, 220, .55) 18% 19%, transparent 20% 32%, rgba(255, 231, 163, .45) 33% 34%, transparent 35%),
        repeating-conic-gradient(from 9deg, rgba(255, 231, 163, .62) 0 6deg, transparent 6deg 12deg);
    mask: radial-gradient(circle, transparent 0 14%, #000 15% 100%);
    animation: slowTurn 48s linear infinite;
}

.hero-buddha-image {
    position: absolute;
    z-index: 1;
    right: clamp(78px, 9vw, 132px);
    bottom: -42px;
    width: min(38vw, 390px);
    max-height: 92%;
    object-fit: contain;
    opacity: .72;
    pointer-events: none;
    filter: sepia(.22) saturate(.92) drop-shadow(0 18px 24px rgba(42, 8, 4, .32));
}

@keyframes slowTurn {
    to { transform: rotate(360deg); }
}

.main-platform-title {
    max-width: 720px;
    position: relative;
    z-index: 2;
    font-family: Cinzel, Georgia, serif;
    font-size: clamp(42px, 7vw, 86px);
    font-weight: 800;
    line-height: .96;
    letter-spacing: 0;
    margin-bottom: 22px;
    text-wrap: balance;
    text-shadow: 0 10px 28px rgba(0,0,0,.28);
}

.main-platform-title::before {
    content: "";
    display: block;
    width: 96px;
    height: 2px;
    margin-bottom: 24px;
    background: linear-gradient(90deg, transparent, #ffe7a3, transparent);
}

.platform-subtitle-description {
    max-width: 650px;
    position: relative;
    z-index: 2;
    color: rgba(255, 250, 229, .9);
    font-size: clamp(16px, 2vw, 21px);
    font-weight: 400;
}

.diagnostic-interface-card {
    margin: -54px auto 0;
    position: relative;
    z-index: 4;
    width: min(100%, 940px);
    padding: clamp(24px, 5vw, 46px);
    background:
        linear-gradient(180deg, rgba(255, 253, 242, .96), rgba(255, 248, 220, .95)),
        radial-gradient(circle at 8% 8%, rgba(242, 169, 0, .18), transparent 32%);
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.diagnostic-interface-card::after {
    content: "";
    position: absolute;
    z-index: 0;
    top: 50%;
    right: -96px;
    width: min(42vw, 360px);
    aspect-ratio: 1;
    border-radius: 50%;
    opacity: .16;
    pointer-events: none;
    background:
        radial-gradient(circle, transparent 0 17%, rgba(143, 29, 20, .4) 18% 19%, transparent 20% 32%, rgba(242, 169, 0, .42) 33% 34%, transparent 35%),
        repeating-conic-gradient(from 9deg, rgba(201, 79, 26, .48) 0 6deg, transparent 6deg 12deg);
    mask: radial-gradient(circle, transparent 0 14%, #000 15% 100%);
    transform: translateY(-50%);
    animation: slowTurn 48s linear infinite reverse;
}

.diagnostic-interface-card > * {
    position: relative;
    z-index: 1;
}

.diagnostic-interface-card::before,
.platform-explanation-section::before {
    content: "";
    position: absolute;
    inset: 12px;
    pointer-events: none;
    border: 1px solid rgba(143, 29, 20, .18);
    border-radius: 20px;
    background:
        linear-gradient(90deg, var(--marigold) 0 38px, transparent 38px calc(100% - 38px), var(--marigold) calc(100% - 38px)),
        linear-gradient(180deg, var(--marigold) 0 38px, transparent 38px calc(100% - 38px), var(--marigold) calc(100% - 38px));
    opacity: .2;
}

.any-symbol-search-section {
    position: relative;
    z-index: 1;
    text-align: center;
    margin-bottom: 34px;
}

/* Keep the autocomplete layer above the feature cards below it. */
.diagnostic-interface-card > .any-symbol-search-section {
    z-index: 5;
}

.search-section-headline,
.platform-explanation-section h2,
.process-modal-content h2,
.results-presentation-container h3,
.legal-information-display h3 {
    color: var(--kumkum);
    font-family: Cinzel, Georgia, serif;
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: 0;
    text-wrap: balance;
}

.search-section-headline {
    font-size: clamp(28px, 4vw, 44px);
    margin-bottom: 28px;
}

.search-input-area {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: start;
    max-width: 780px;
    margin: 0 auto 14px;
    padding: 10px;
    border: 1px solid rgba(143, 29, 20, .18);
    border-radius: 999px;
    background: #fffef7;
    box-shadow: inset 0 0 0 1px rgba(242,169,0,.2), 0 14px 34px rgba(92,17,17,.12);
    position: relative;
    z-index: 2;
}

.universal-symbol-input {
    width: 100%;
    min-width: 0;
    min-height: 58px;
    padding: 0 22px;
    color: var(--ink);
    background: transparent;
    border: 0;
    outline: 0;
    font-size: 18px;
    text-transform: uppercase;
}

.universal-symbol-input::placeholder {
    color: rgba(111,81,64,.72);
    text-transform: none;
}

.universal-symbol-input:focus {
    box-shadow: none;
}

.initiate-diagnostic-button,
.whatsapp-report-delivery-button,
.close-legal-button {
    border: 0;
    cursor: pointer;
    text-decoration: none;
    font-weight: 700;
    color: #fff8dc;
    background: linear-gradient(135deg, #f3bd47, #c94f1a 45%, #7b1712 100%);
    box-shadow: 0 14px 28px rgba(143, 29, 20, .25);
    transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}

.initiate-diagnostic-button {
    min-height: 58px;
    padding: 0 30px;
    border-radius: 999px;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    align-self: start;
}

.initiate-diagnostic-button:disabled {
    cursor: not-allowed;
    opacity: .48;
    filter: grayscale(.35);
    box-shadow: none;
}

.initiate-diagnostic-button:hover,
.whatsapp-report-delivery-button:hover,
.close-legal-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(143, 29, 20, .32);
    filter: saturate(1.06);
}

.input-hint-text {
    position: relative;
    z-index: 2;
    max-width: 720px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 14px;
    font-style: normal;
}

.stock-validation-status {
    min-height: 24px;
    margin: 0 auto 8px;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

.stock-validation-status[data-state="pending"] { color: var(--peacock); }
.stock-validation-status[data-state="success"] { color: #176534; font-weight: 700; }
.stock-validation-status[data-state="error"] { color: #a12222; }

.stock-autocomplete-anchor {
    position: relative;
    width: 100%;
    min-width: 0;
}

.stock-autocomplete-list {
    position: static;
    z-index: 20;
    width: 100%;
    margin-top: 6px;
    overflow: hidden;
    border: 1px solid rgba(201, 79, 26, .35);
    border-radius: 12px;
    background: #fffef7;
    box-shadow: 0 16px 30px rgba(92, 17, 17, .18);
    text-align: left;
}

.stock-autocomplete-list[hidden] { display: none; }

.stock-autocomplete-option {
    width: 100%;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 0;
    border-bottom: 1px solid rgba(201, 79, 26, .14);
    background: transparent;
    color: var(--ink);
    text-align: left;
    cursor: pointer;
}

.stock-autocomplete-option:last-child { border-bottom: 0; }

.stock-autocomplete-option:hover,
.stock-autocomplete-option.is-active { background: #fff1ce; }

.stock-autocomplete-option strong {
    flex: 0 0 auto;
    color: #8f1d14;
}

.stock-autocomplete-option span {
    min-width: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .stock-autocomplete-list {
        max-height: 250px;
        max-height: min(250px, calc(100svh - 72px));
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }
}

.input-hint-text strong {
    color: var(--saffron);
}

.analytical-features-display {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.feature-display-card {
    min-height: 210px;
    padding: 28px 22px;
    text-align: center;
    border: 1px solid rgba(143, 29, 20, .18);
    border-radius: 18px;
    background:
        radial-gradient(circle at 50% 0, rgba(242,169,0,.22), transparent 32%),
        #fffaf0;
    box-shadow: 0 12px 26px rgba(92,17,17,.1);
    transition: transform .25s ease, box-shadow .25s ease;
    position: relative;
    overflow: hidden;
}

.feature-display-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 34px rgba(92,17,17,.14);
}

.feature-icon-element {
    display: grid;
    place-items: center;
    width: 72px;
    aspect-ratio: 1;
    margin: 0 auto 18px;
    border-radius: 50%;
    color: var(--kumkum);
    background:
        repeating-conic-gradient(from 0deg, rgba(242,169,0,.95) 0 12deg, #fff2b9 12deg 24deg);
    font-size: 30px;
    box-shadow: inset 0 0 0 8px rgba(255,255,255,.55);
}

.feature-title-text {
    margin-bottom: 10px;
    color: var(--kumkum);
    font-family: Cinzel, Georgia, serif;
    font-size: 18px;
    font-weight: 800;
}

.feature-description-text {
    color: var(--muted);
    font-size: 14px;
}

.platform-explanation-section {
    position: relative;
    margin: 34px auto 0;
    width: min(100%, 940px);
    padding: clamp(26px, 5vw, 50px);
    background: rgba(255, 253, 242, .95);
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.platform-explanation-section h2 {
    position: relative;
    z-index: 1;
    margin-bottom: 24px;
    text-align: center;
    font-size: clamp(28px, 4vw, 42px);
}

.explanation-content-area {
    position: relative;
    z-index: 1;
    color: var(--muted);
    font-size: 16px;
}

.explanation-content-area p {
    margin-bottom: 22px;
}

.explanation-highlight,
.risk-notification-area,
.report-detail-card {
    padding: 22px;
    border: 1px solid rgba(143, 29, 20, .18);
    border-left: 6px solid var(--marigold);
    border-radius: 18px;
    background: #fffaf0;
}

.risk-notification-area {
    margin-top: 34px;
}

.risk-notification-title {
    margin-bottom: 12px;
    color: var(--kumkum);
    font-family: Cinzel, Georgia, serif;
    font-size: 18px;
    font-weight: 800;
}

.risk-notification-title::before,
.report-detail-card::before {
    display: none;
}

.risk-notification-content {
    color: #73412e;
    font-size: 14px;
}

.analytical-process-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 22px;
    background: rgba(36, 19, 15, .82);
    backdrop-filter: blur(12px);
}

.process-modal-content {
    position: relative;
    width: min(100%, 720px);
    max-height: calc(100vh - 44px);
    overflow: auto;
    padding: clamp(26px, 5vw, 46px);
    border-radius: 28px;
    border: 1px solid rgba(255, 231, 163, .42);
    background:
        radial-gradient(circle at 50% -10%, rgba(242,169,0,.24), transparent 35%),
        #fffdf2;
    box-shadow: 0 34px 90px rgba(0,0,0,.42);
    animation: modalEntry .45s ease both;
}

@keyframes modalEntry {
    from { opacity: 0; transform: translateY(18px) scale(.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close-control {
    position: absolute;
    top: 18px;
    right: 18px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: var(--kumkum);
    background: #fff1c9;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    transition: transform .25s ease;
}

.modal-close-control:hover {
    transform: rotate(90deg);
}

.process-modal-content h2,
.results-presentation-container h3 {
    margin: 0 54px 28px;
    font-size: clamp(24px, 4vw, 34px);
    text-align: center;
}

.analytical-step-progress-item {
    margin-bottom: 24px;
}

.step-label-display {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 10px;
    color: #4d271d;
    font-size: 15px;
    font-weight: 700;
}

.step-progress-visual-bar {
    height: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: #ead7ad;
    box-shadow: inset 0 2px 5px rgba(92,17,17,.16);
}

.step-progress-fill-animation {
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--peacock), var(--marigold), var(--saffron));
    transition: width .7s cubic-bezier(.34, 1.56, .64, 1);
}

.results-presentation-container {
    display: none;
    text-align: center;
    animation: resultsAppear .55s ease both;
}

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

.report-detail-card {
    margin-bottom: 28px;
    text-align: left;
    color: var(--muted);
}

.whatsapp-report-delivery-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 58px;
    padding: 0 28px;
    border-radius: 999px;
    background: linear-gradient(135deg, #1fa463, #096b68);
}

.platform-footer-navigation-area {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    width: min(100%, 940px);
    max-width: 940px;
    margin: 30px auto 0;
    padding: 24px 0 42px;
    border-top: 0;
}

.footer-navigation-item {
    color: #fff8dc;
    text-decoration: none;
    padding: 11px 16px;
    border: 1px solid rgba(255, 248, 220, .22);
    border-radius: 999px;
    background: rgba(92, 17, 17, .24);
    backdrop-filter: blur(10px);
    font-size: 13px;
    font-weight: 700;
}

.footer-navigation-item:hover {
    color: #fff8dc;
    background: rgba(92, 17, 17, .36);
    text-decoration: none;
}

.legal-information-display {
    display: none;
    width: min(100%, 940px);
    margin: 0 auto 36px;
    padding: clamp(24px, 4vw, 40px);
    color: var(--muted);
    background: #fffdf2;
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.legal-information-display h3 {
    margin-bottom: 16px;
    font-size: 26px;
}

.legal-information-display p {
    margin-bottom: 14px;
}

.close-legal-button {
    margin-top: 18px;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
}

@media (max-width: 860px) {
    .analysis-platform-container {
        padding: 12px;
    }

    .platform-header-area {
        min-height: 500px;
        padding: 42px 24px 86px;
        border-radius: 0 0 26px 26px;
    }

    .platform-header-area::after {
        width: 330px;
        right: -80px;
        bottom: -16px;
        opacity: .42;
    }

    .hero-buddha-image {
        right: -38px;
        bottom: -18px;
        width: 250px;
        max-height: 58%;
        opacity: .56;
    }

    .diagnostic-interface-card {
        margin-top: -44px;
    }

    .analytical-features-display {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .main-platform-title {
        font-size: 40px;
    }

    .platform-subtitle-description {
        font-size: 16px;
    }

    .search-input-area {
        grid-template-columns: 1fr;
        border-radius: 24px;
    }

    .initiate-diagnostic-button {
        width: 100%;
    }

    .process-modal-content h2,
    .results-presentation-container h3 {
        margin-left: 42px;
        margin-right: 42px;
    }

    .diagnostic-interface-card::after {
        right: -128px;
        width: 280px;
        opacity: .12;
    }
}

/* Keep the original page footer; the theme script also provides an alternate legal footer. */
.platform-footer-navigation-area {
    display: none;
}
