:root {
  --primary: #0f513e;
  --primary-deep: #083d31;
  --accent-brass: #c3a268;
  --background: #f4f4ee;
  --surface: #ffffff;
  --ink: #173b32;
  --muted: #60716a;
  --border: #d7ddd5;
  --whatsapp: #1ba95c;
  --success: #227b58;
  --error: #a63f39;
}

* {
  box-sizing: border-box;
}

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

html {
  background: var(--background);
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  background: var(--background);
  color: var(--ink);
  direction: rtl;
  font-family: "IBM Plex Sans Arabic", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

button,
input {
  font: inherit;
}

button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}

.page-shell,
#root {
  min-height: 100vh;
}

#root {
  display: flex;
  flex-direction: column;
}

.app-stage {
  position: relative;
  display: flex;
  flex: 1;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
}

.site-wrap {
  display: flex;
  flex-direction: column;
  width: min(100% - 72px, 1320px);
  min-height: 100vh;
  margin-inline: auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  border-bottom: 1px solid rgba(23, 59, 50, 0.12);
}

.brand-row {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.robot-mark {
  display: block;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 50%;
  object-fit: contain;
  animation: robot-float 3.4s ease-in-out infinite;
  will-change: transform;
}

.brand-name {
  color: var(--primary-deep);
  font-family: "IBM Plex Sans Arabic", system-ui, sans-serif;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.header-note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.live-marker,
.art-footnote-dot {
  position: relative;
  display: inline-block;
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent-brass);
}

.live-marker::after {
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(195, 162, 104, 0.5);
  border-radius: 50%;
  content: "";
}

.hero-grid {
  display: grid;
  flex: 1;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  grid-template-areas: "copy art";
  align-items: center;
  gap: clamp(38px, 6vw, 92px);
  padding-block: 46px 54px;
}

.hero-copy {
  grid-area: copy;
  width: 100%;
  max-width: 650px;
  justify-self: start;
  padding-block: 12px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
}

.eyebrow-mark {
  width: 28px;
  height: 2px;
  background: var(--accent-brass);
}

.app-title {
  max-width: 13ch;
  margin: 0;
  color: var(--ink);
  font-size: clamp(3rem, 5.4vw, 4.7rem);
  font-weight: 700;
  line-height: 1.22;
  text-wrap: balance;
}

.app-title > span {
  color: var(--primary);
}

.app-subtitle {
  max-width: 52ch;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.9;
}

.flow-slot {
  width: 100%;
  max-width: 580px;
}

.step-indicator {
  display: flex;
  align-items: flex-start;
  gap: clamp(14px, 2vw, 28px);
  margin-bottom: 20px;
}

.process-step {
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
  color: #65766f;
}

.step-dot {
  display: block;
  width: 100%;
  height: 3px;
  overflow: hidden;
  border-radius: 99px;
  background: #dfe4dc;
  transition: background 300ms ease;
}

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

.step-label {
  font-size: 11px;
  font-weight: 500;
}

.step-dot.active + .step-label {
  color: var(--primary-deep);
  font-weight: 700;
}

.panel {
  width: 100%;
}

.is-hidden {
  display: none !important;
}

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

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

.code-input {
  display: block;
  width: 100%;
  min-height: 60px;
  padding: 15px 18px;
  border: 1px solid #cbd5cc;
  border-radius: 10px;
  outline: none;
  background: var(--surface);
  color: var(--ink);
  text-align: start;
  font-size: 17px;
  font-weight: 600;
  transition: border-color 220ms ease, box-shadow 220ms ease;
}

.code-input::placeholder {
  color: #60716a;
  font-weight: 400;
  opacity: 1;
}

.code-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 81, 62, 0.14);
}

.code-input.is-valid {
  border-color: var(--success);
}

.code-input.is-invalid {
  border-color: var(--error);
}

.input-hint,
.error-message {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

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

.primary-btn {
  position: relative;
  display: inline-flex;
  width: 100%;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 22px;
  border: 0;
  border-radius: 10px;
  background: var(--primary);
  color: var(--surface);
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  transition: background-color 220ms ease, box-shadow 220ms ease, transform 220ms ease, opacity 220ms ease;
}

.primary-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  background: var(--primary-deep);
  box-shadow: 0 10px 20px rgba(8, 61, 49, 0.18);
}

.primary-btn:focus-visible,
.code-input:focus-visible,
.nav-link:focus-visible,
.brand-row:focus-visible {
  outline: 3px solid var(--accent-brass);
  outline-offset: 3px;
}

.primary-btn:disabled {
  cursor: not-allowed;
  opacity: 0.56;
  box-shadow: none;
}

.action-icon {
  display: block;
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.loading-panel {
  display: flex;
  min-height: 150px;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
}

.loading-spinner {
  position: relative;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border: 2px solid rgba(15, 81, 62, 0.16);
  border-top-color: var(--accent-brass);
  border-right-color: var(--primary);
  border-radius: 50%;
  animation: spin 850ms linear infinite;
}

.loading-spinner::after {
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(15, 81, 62, 0.3);
  border-radius: 50%;
  content: "";
}

.step-title {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
}

.step-copy {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.result-panel {
  display: grid;
  grid-template-columns: 60px 1fr;
  align-items: center;
  column-gap: 16px;
  row-gap: 15px;
  padding-top: 3px;
}

.success-mark {
  width: 54px;
  height: 54px;
}

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

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

.success-check {
  fill: none;
  stroke: var(--success);
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5;
  animation: stroke 350ms cubic-bezier(0.65, 0, 0.45, 1) 320ms forwards;
}

.result-copy {
  min-width: 0;
}

.result-message {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 5px 0 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
}

.code-display {
  display: inline-block;
  max-width: 100%;
  padding: 2px 9px;
  border-radius: 6px;
  background: #e7eee8;
  color: var(--primary-deep);
  direction: auto;
  font-family: "IBM Plex Sans Arabic", system-ui, sans-serif;
  font-weight: 700;
  unicode-bidi: isolate;
  overflow-wrap: anywhere;
}

.result-panel .whatsapp {
  grid-column: 1 / -1;
  background: var(--whatsapp);
}

.result-panel .whatsapp:hover:not(:disabled) {
  background: #148348;
  box-shadow: 0 10px 20px rgba(20, 131, 72, 0.2);
}

.whatsapp-icon {
  display: block;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.action-status {
  grid-column: 1 / -1;
  margin: -5px 0 0;
  color: var(--error);
  font-size: 13px;
  line-height: 1.6;
}

.action-status[data-visible="false"] {
  display: none;
}

.disclaimer {
  grid-column: 1 / -1;
  margin: 1px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.hero-art {
  position: relative;
  grid-area: art;
  width: 100%;
  min-height: 510px;
  overflow: hidden;
  isolation: isolate;
  border-radius: 260px 260px 18px 18px;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(46, 105, 82, 0.92), transparent 54%),
    linear-gradient(155deg, #14513e 2%, #0a3d32 58%, #082f29 100%);
}

.hero-art::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.05) 0 1px, transparent 1.5px);
  background-size: 24px 24px;
  mask-image: linear-gradient(to bottom, transparent, #000 26%, #000 72%, transparent);
  content: "";
}

.art-topline {
  position: absolute;
  z-index: 5;
  top: 32px;
  right: 34px;
  left: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.72);
  font-family: "IBM Plex Sans Arabic", system-ui, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.art-location {
  color: #e2c68e;
  font-family: "IBM Plex Sans Arabic", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
}

.signal-chart {
  position: absolute;
  z-index: 1;
  top: 108px;
  right: 0;
  width: 100%;
  height: 270px;
  overflow: visible;
}

.chart-guide {
  fill: none;
  stroke: rgba(255, 255, 255, 0.12);
  stroke-dasharray: 2 8;
  stroke-width: 1;
}

.chart-path {
  fill: none;
  stroke: var(--accent-brass);
  stroke-linecap: round;
  stroke-width: 2;
  stroke-dasharray: 1100;
  stroke-dashoffset: 1100;
  animation: chart-reveal 2.2s cubic-bezier(0.16, 1, 0.3, 1) 180ms forwards;
}

.chart-point {
  fill: #e1c78f;
  stroke: #0d4839;
  stroke-width: 3;
  animation: point-breathe 2.4s ease-in-out infinite;
}

.point-b {
  animation-delay: 360ms;
}

.point-c {
  animation-delay: 720ms;
}

.robot-stage {
  position: absolute;
  z-index: 3;
  top: 136px;
  left: calc(50% - 112px);
  width: 224px;
  height: 224px;
  animation: robot-float 3.4s ease-in-out infinite;
  will-change: transform;
}

.robot-logo {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 50%;
  object-fit: contain;
  animation: robot-sway 4.3s ease-in-out infinite;
  will-change: transform;
}

@media (hover: hover) {
  .hero-art:hover .robot-stage {
    animation-duration: 2.4s;
  }

  .hero-art:hover .robot-logo {
    animation-duration: 2.6s;
  }
}

.riyadh-skyline {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 236px;
}

.skyline-back {
  fill: #28634f;
  opacity: 0.82;
}

.skyline-front {
  fill: #164d3d;
}

.skyline-ground {
  fill: #0a332b;
}

.art-footnote {
  position: absolute;
  z-index: 5;
  right: 24px;
  bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 10px;
  font-weight: 400;
}

.art-footnote-dot {
  width: 5px;
  height: 5px;
  background: var(--accent-brass);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 64px;
  border-top: 1px solid rgba(23, 59, 50, 0.12);
  color: var(--muted);
  font-size: 11px;
}

.footer-brand {
  color: #566c62;
}

.footer-brand span {
  margin-inline: 4px;
  color: var(--accent-brass);
}

.page-navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.nav-link {
  color: #566c62;
  transition: color 180ms ease;
}

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

.fade-in {
  animation: fade-in 350ms ease both;
}

.slide-up {
  animation: slide-up 450ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

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

@keyframes robot-sway {
  0%, 100% { transform: rotate(-7deg) scale(1); }
  50% { transform: rotate(7deg) scale(1.035); }
}

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

@keyframes point-breathe {
  0%, 100% { opacity: 0.8; transform: scale(1); transform-origin: center; }
  50% { opacity: 1; transform: scale(1.45); transform-origin: center; }
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

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

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

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

@media (max-width: 1020px) {
  .site-wrap {
    width: min(100% - 48px, 900px);
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
    gap: 34px;
    padding-block: 36px 42px;
  }

  .hero-art {
    min-height: 450px;
    border-radius: 220px 220px 16px 16px;
  }

  .robot-stage {
    top: 128px;
    left: calc(50% - 98px);
    width: 196px;
    height: 196px;
  }

  .signal-chart {
    top: 100px;
    height: 235px;
  }

  .riyadh-skyline {
    height: 205px;
  }

  .app-title {
    font-size: clamp(2.8rem, 5.2vw, 4rem);
  }

}

@media (max-width: 760px) {
  .site-wrap {
    width: min(100% - 36px, 620px);
  }

  .topbar {
    min-height: 76px;
  }

  .robot-mark {
    width: 44px;
    height: 44px;
  }

  .brand-name {
    font-size: 21px;
  }

  .header-note {
    font-size: 11px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "copy"
      "art";
    gap: 30px;
    padding-block: 36px 34px;
  }

  .hero-copy {
    max-width: 620px;
    justify-self: stretch;
  }

  .app-title {
    max-width: none;
    font-size: clamp(2.8rem, 8.5vw, 4.2rem);
  }

  .app-subtitle {
    max-width: 56ch;
    margin-top: 13px;
    font-size: 15px;
  }

  .flow-slot {
    max-width: none;
  }

  .hero-art {
    min-height: 390px;
    max-width: 560px;
    justify-self: center;
    border-radius: 205px 205px 14px 14px;
  }

  .robot-stage {
    top: 108px;
    left: calc(50% - 88px);
    width: 176px;
    height: 176px;
  }

  .signal-chart {
    top: 80px;
    height: 220px;
  }

  .riyadh-skyline {
    height: 190px;
  }

  .site-footer {
    min-height: 62px;
  }
}

@media (max-width: 480px) {
  .site-wrap {
    width: min(100% - 32px, 440px);
  }

  .header-note {
    max-width: 135px;
    gap: 8px;
    text-align: start;
  }

  .hero-grid {
    gap: 25px;
    padding-block: 30px 28px;
  }

  .eyebrow {
    margin-bottom: 16px;
  }

  .app-title {
    font-size: clamp(2.55rem, 10vw, 3.15rem);
    line-height: 1.28;
  }

  .app-subtitle {
    font-size: 14px;
    line-height: 1.85;
  }

  .step-indicator {
    gap: 10px;
    margin-bottom: 17px;
  }

  .step-label {
    font-size: 10px;
  }

  .code-input {
    min-height: 56px;
  }

  .primary-btn {
    min-height: 56px;
    font-size: 15px;
  }

  .hero-art {
    min-height: 340px;
  }

  .robot-stage {
    top: 92px;
    left: calc(50% - 76px);
    width: 152px;
    height: 152px;
  }

  .signal-chart {
    top: 70px;
    height: 192px;
  }

  .riyadh-skyline {
    height: 162px;
  }

  .art-topline {
    top: 24px;
    right: 22px;
    left: 22px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding-block: 14px;
  }

  .page-navigation {
    gap: 17px;
  }

  .result-panel {
    grid-template-columns: 46px 1fr;
    column-gap: 12px;
  }

  .success-mark {
    width: 44px;
    height: 44px;
  }

  .step-title {
    font-size: 19px;
  }

  .step-copy,
  .result-message {
    font-size: 13px;
  }

  .disclaimer {
    font-size: 10px;
  }
}

/* Saudi investor edition: royal palm, emerald, and warm brass. */
:root {
  --primary: #0f7653;
  --primary-deep: #073d2e;
  --primary-royal: #062e23;
  --accent-brass: #c39a4e;
  --background: #f5f2e9;
  --surface: #fffefa;
  --ink: #18372c;
  --muted: #65756c;
  --border: #ddd8ca;
  --whatsapp: #1da95c;
  --success: #237b57;
  --error: #a13f38;
}

body {
  direction: inherit;
  background: var(--background);
}

html[lang="en"] body,
html[lang="en"] button,
html[lang="en"] input {
  font-family: "SF Pro Text", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", "IBM Plex Sans Arabic", system-ui, sans-serif;
}

html[lang="en"] .app-title {
  max-width: none;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  border: 1px solid rgba(7, 61, 46, 0.12);
  border-radius: 999px;
  background: rgba(255, 254, 250, 0.8);
}

.language-option {
  min-width: 68px;
  min-height: 34px;
  padding: 6px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.language-option.is-active {
  background: var(--primary-deep);
  color: #fffefa;
  box-shadow: 0 2px 7px rgba(6, 46, 35, 0.16);
}

.language-option:focus-visible,
.sample-ticker:focus-visible {
  outline: 3px solid var(--accent-brass);
  outline-offset: 3px;
}

.app-title .title-line,
.app-title .title-accent {
  display: block;
}

.app-title .title-accent {
  color: var(--primary);
}

html[dir="rtl"] .action-icon {
  transform: scaleX(-1);
}

.market-context {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
}

.context-tag {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border: 1px solid rgba(7, 61, 46, 0.11);
  border-radius: 999px;
  background: rgba(255, 254, 250, 0.78);
  color: var(--primary-deep);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
}

.tadawul-tag {
  border-color: rgba(15, 118, 83, 0.18);
  background: #e7efe8;
}

.tadawul-mark,
.status-mark {
  display: inline-grid;
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  place-items: center;
  border-radius: 50%;
  background: var(--primary-deep);
  color: #fffefa;
  font-family: "SF Pro Text", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 10px;
  font-weight: 700;
  direction: ltr;
}

.coverage-tag,
.shariah-tag {
  border-color: rgba(171, 132, 61, 0.24);
  background: #f5edda;
  color: #614b24;
}

.coverage-tag .status-mark,
.shariah-tag .status-mark {
  background: #d8bd7b;
  color: #3d321c;
}

.compliance-note {
  max-width: 58ch;
  margin: 8px 0 22px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.example-picker {
  margin: 0 0 18px;
}

.example-label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}

.example-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sample-ticker {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--primary-deep);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: border-color 180ms ease, color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.sample-ticker:hover {
  transform: translateY(-1px);
  border-color: var(--primary);
  background: #eef3ed;
}

.sample-ticker bdi {
  color: var(--primary);
  font-family: "SF Pro Text", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  direction: ltr;
  unicode-bidi: isolate;
}

.sample-note {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.hero-art {
  background:
    radial-gradient(ellipse at 50% 42%, rgba(24, 118, 81, 0.92), transparent 54%),
    linear-gradient(155deg, #0b5a40 2%, #073d2e 58%, #052c22 100%);
}

.hero-art::before {
  background-image: radial-gradient(circle at 50% 34%, rgba(243, 224, 178, 0.08) 0 1px, transparent 1.5px);
}

.art-location {
  color: #e7cf98;
}

.chart-path {
  stroke: #d1ac62;
}

.chart-point {
  fill: #e3c780;
  stroke: #0b513b;
}

.skyline-back {
  fill: #287458;
}

.skyline-front {
  fill: #12543c;
}

.skyline-ground {
  fill: #062f25;
}

.primary-btn {
  background: linear-gradient(110deg, #0f7653, #0b6044);
}

.primary-btn:hover:not(:disabled) {
  background: var(--primary-deep);
}

.code-input {
  border-color: #d2d6ca;
  background: var(--surface);
}

.site-footer {
  border-top-color: rgba(24, 55, 44, 0.14);
}

@media (max-width: 760px) {
  .topbar-actions {
    gap: 12px;
  }

  .market-context {
    margin-top: 17px;
  }

  .compliance-note {
    margin-bottom: 18px;
  }
}

@media (max-width: 520px) {
  .topbar-actions {
    gap: 8px;
  }

  .header-note {
    display: none;
  }

  .language-option {
    min-width: 60px;
    padding-inline: 9px;
  }

  .context-tag {
    min-height: 31px;
    padding: 5px 8px;
    font-size: 10px;
  }

  .sample-ticker {
    min-height: 36px;
  }

  .art-topline {
    display: none;
  }
}

@media (max-width: 180px) {
  .topbar {
    column-gap: 4px;
  }

  .brand-row {
    gap: 3px;
  }
}

.robot-mark {
  filter: drop-shadow(0 0 9px rgba(195, 154, 78, 0.28));
}

.robot-logo {
  filter: drop-shadow(0 0 24px rgba(44, 174, 122, 0.28));
}

.topics-section {
  padding: 32px 0 22px;
  border-top: 1px solid rgba(24, 55, 44, 0.14);
}

.topics-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 17px;
}

.topics-kicker {
  margin: 0 0 5px;
  color: #86662f;
  font-size: 11px;
  font-weight: 700;
}

.topics-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  font-weight: 700;
  line-height: 1.35;
}

.topics-intro {
  max-width: 44ch;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

.topic-card {
  display: grid;
  min-width: 0;
  grid-template-columns: 34px minmax(0, 1fr);
  align-content: start;
  align-items: start;
  gap: 4px 10px;
  padding: 13px 15px 11px;
  border-top: 1px solid var(--border);
}

.topic-card + .topic-card {
  border-inline-start: 1px solid var(--border);
}

.topic-icon {
  display: inline-grid;
  width: 30px;
  height: 30px;
  grid-row: span 2;
  place-items: center;
  border-radius: 50%;
  background: #e7efe8;
  color: var(--primary-deep);
  font-family: "SF Pro Text", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
}

.rhythm-icon {
  color: #886b35;
}

.report-icon {
  font-size: 15px;
}

.shariah-icon {
  background: #f1e4c5;
  color: #604b24;
  font-size: 14px;
}

.topic-copy {
  min-width: 0;
}

.topic-copy h3 {
  margin: 1px 0 4px;
  color: var(--primary-deep);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.topic-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.topic-tag {
  grid-column: 2;
  justify-self: start;
  margin-top: 3px;
  color: #6f7d73;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.topic-card-shariah {
  background: linear-gradient(180deg, rgba(245, 237, 218, 0.72), rgba(245, 237, 218, 0.18));
}

.verify-tag {
  color: #73551e;
}

.topics-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.trust-rail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px clamp(18px, 4vw, 48px);
  margin: 0;
  padding: 14px 18px;
  border-block: 1px solid rgba(24, 55, 44, 0.13);
  background: rgba(255, 254, 250, 0.55);
  color: var(--primary-deep);
  list-style: none;
  font-size: 11px;
  font-weight: 600;
}

.trust-rail li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.trust-check {
  color: #98753a;
  font-size: 13px;
  font-weight: 700;
}

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

  .topic-card:nth-child(3) {
    border-inline-start: 0;
  }
}

@media (max-width: 560px) {
  .topics-section {
    padding-top: 26px;
  }

  .topics-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .topic-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .topic-card + .topic-card {
    border-inline-start: 0;
  }

  .topic-card {
    padding-inline: 0;
  }

  .trust-rail {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
    padding-inline: 8px;
  }
}

/* Saudi FinTech: ink-green surfaces, champagne detail, and a quiet geometric field. */
:root {
  --primary: #14825d;
  --primary-deep: #0a3a2a;
  --primary-royal: #04291d;
  --accent-brass: #c5a059;
  --background: #041911;
  --surface: #0b2a20;
  --ink: #f2f0e6;
  --muted: #b4c0b6;
  --border: rgba(197, 160, 89, 0.2);
  --whatsapp: #1da95c;
  --success: #68c39a;
  --error: #e19a83;
}

html,
body {
  background: var(--background);
  color: var(--ink);
}

body {
  position: relative;
  isolation: isolate;
  background-image: radial-gradient(ellipse at 50% 4%, rgba(16, 77, 52, 0.42), transparent 50%);
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image: url("../image/arabesque-grid.svg");
  background-repeat: repeat;
  background-size: 210px 210px;
  content: "";
  opacity: 0.14;
  pointer-events: none;
}

.app-stage {
  background: radial-gradient(ellipse at 50% 30%, rgba(7, 58, 42, 0.22), transparent 58%);
}

.site-wrap {
  width: min(100% - 56px, 1120px);
}

.topbar {
  min-height: 82px;
  border-bottom-color: rgba(197, 160, 89, 0.2);
}

.brand-name {
  color: #f2f0e6;
}

.robot-mark {
  filter: drop-shadow(0 0 9px rgba(197, 160, 89, 0.48)) drop-shadow(0 0 18px rgba(20, 130, 93, 0.32));
}

.header-note {
  color: #c4cec4;
}

.live-marker {
  background: var(--accent-brass);
}

.language-switch {
  border-color: rgba(197, 160, 89, 0.28);
  background: rgba(7, 36, 26, 0.82);
}

.language-option {
  color: #c1c9bf;
}

.language-option.is-active {
  background: linear-gradient(130deg, #d5b773, #b98e47);
  color: #09271c;
  box-shadow: 0 2px 14px rgba(197, 160, 89, 0.2);
}

.language-option:focus-visible,
.sample-ticker:focus-visible,
.primary-btn:focus-visible,
.code-input:focus-visible {
  outline-color: #e2c77e;
}

.hero-grid {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "copy";
  align-items: start;
  gap: 0;
  padding-block: clamp(36px, 6vh, 62px) 32px;
}

.hero-copy {
  width: 100%;
  max-width: 860px;
  justify-self: center;
  padding: 0;
  text-align: center;
}

.eyebrow {
  justify-content: center;
  margin-bottom: 16px;
  color: #d4b66e;
  letter-spacing: 0.04em;
}

.eyebrow-mark {
  background: var(--accent-brass);
}

.app-title {
  max-width: 15ch;
  margin-inline: auto;
  color: #f4f1e7;
  font-size: clamp(2.65rem, 5.8vw, 4.5rem);
  line-height: 1.12;
}

.app-title .title-accent {
  color: #d4b66e;
}

.app-subtitle {
  max-width: 59ch;
  margin: 15px auto 0;
  color: #bdc8be;
  font-size: 16px;
  line-height: 1.8;
}

.market-context {
  justify-content: center;
  margin-top: 22px;
}

.context-tag {
  min-height: 33px;
  border-color: rgba(197, 160, 89, 0.22);
  background: rgba(11, 42, 32, 0.9);
  color: #e6e0ce;
}

.tadawul-tag {
  border-color: rgba(41, 147, 105, 0.4);
  background: rgba(10, 58, 42, 0.88);
  color: #cde6d8;
}

.tadawul-mark {
  background: #c5a059;
  color: #09271c;
}

.coverage-tag {
  color: #dfc782;
}

.coverage-tag .status-mark {
  background: rgba(197, 160, 89, 0.2);
  color: #ecd28e;
}

.compliance-note {
  max-width: 60ch;
  margin: 9px auto 22px;
  color: #aebbb1;
  font-size: 11px;
  text-align: center;
}

.flow-slot {
  max-width: 700px;
  margin-inline: auto;
  text-align: start;
}

.process-step {
  color: #aab8ad;
}

.step-dot {
  background: rgba(226, 227, 210, 0.14);
}

.step-dot.active {
  background: linear-gradient(90deg, #a9823e, #e0c67e);
}

.step-dot.active + .step-label {
  color: #ecd28e;
}

.example-label,
.input-label {
  color: #eeeade;
}

.example-list {
  justify-content: flex-start;
}

.sample-ticker {
  min-height: 40px;
  border-color: rgba(197, 160, 89, 0.24);
  background: #0b2a20;
  color: #ece8dc;
}

.sample-ticker:hover {
  border-color: #c5a059;
  background: #103b2a;
}

.sample-ticker bdi {
  color: #e0c67e;
}

.sample-note {
  color: #aebbb1;
}

.input-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.input-heading .input-label {
  margin: 0;
}

.shariah-inline {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border: 1px solid rgba(197, 160, 89, 0.42);
  border-radius: 999px;
  background: rgba(197, 160, 89, 0.1);
  color: #ead18c;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.35;
}

.shariah-mark {
  color: #e0c67e;
  font-size: 16px;
  line-height: 1;
}

.code-input {
  min-height: 62px;
  border-color: rgba(197, 160, 89, 0.32);
  border-radius: 12px;
  background: #09251b;
  color: #f4f1e7;
}

.code-input::placeholder {
  color: #aebbb1;
}

.code-input:focus {
  border-color: #d4b66e;
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.17), 0 0 24px rgba(20, 130, 93, 0.1);
}

.input-hint {
  color: #aebbb1;
}

.primary-btn {
  overflow: hidden;
  min-height: 60px;
  border: 1px solid rgba(242, 216, 151, 0.5);
  border-radius: 12px;
  background: linear-gradient(112deg, #b78f4d 0%, #ddc47f 48%, #b78f4d 100%);
  background-size: 200% 100%;
  color: #09271c;
  box-shadow: 0 5px 22px rgba(197, 160, 89, 0.18), inset 0 1px rgba(255, 250, 224, 0.45);
  font-weight: 700;
}

.primary-btn:not(:disabled) {
  animation: cta-gold-breathe 4.2s ease-in-out infinite;
}

.primary-btn::after {
  position: absolute;
  z-index: 0;
  inset: 0;
  background: linear-gradient(112deg, transparent 30%, rgba(255, 252, 232, 0.5) 50%, transparent 68%);
  content: "";
  pointer-events: none;
  transform: translateX(-140%);
}

.primary-btn:not(:disabled)::after {
  animation: cta-shimmer 5.4s ease-in-out infinite;
}

.primary-btn > span,
.primary-btn > svg {
  position: relative;
  z-index: 1;
}

.primary-btn:hover:not(:disabled) {
  background-color: #e3cb8b;
  background-position: 100% 50%;
  color: #06251a;
  box-shadow: 0 8px 28px rgba(197, 160, 89, 0.3), 0 0 22px rgba(197, 160, 89, 0.14);
}

.primary-btn:disabled {
  border-color: rgba(197, 160, 89, 0.2);
  background: #55472f;
  color: #d0c5a7;
  opacity: 0.78;
}

.result-panel .whatsapp {
  border-color: rgba(255, 255, 255, 0.14);
  background: #16834a;
  color: #fff;
  box-shadow: none;
  animation: none;
}

.result-panel .whatsapp::after {
  display: none;
}

.result-panel .whatsapp:hover:not(:disabled) {
  background: #106b3d;
  color: #fff;
}

.hero-art {
  display: none;
}

.topics-section {
  padding-block: 24px 20px;
  border-top-color: rgba(197, 160, 89, 0.18);
}

.topics-heading {
  align-items: center;
  margin-bottom: 14px;
}

.topics-kicker {
  color: #d0ae64;
}

.topics-heading h2 {
  color: #f0ecdf;
}

.topics-intro,
.topics-note {
  color: #aebbb1;
}

.topic-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.topic-card,
.topic-card + .topic-card {
  grid-template-columns: 34px minmax(0, 1fr);
  padding: 15px 14px 13px;
  border: 1px solid rgba(197, 160, 89, 0.16);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(13, 49, 36, 0.94), rgba(7, 34, 24, 0.96));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
}

.topic-icon {
  background: rgba(197, 160, 89, 0.12);
  color: #d8bb70;
}

.rhythm-icon {
  color: #66bd98;
}

.report-icon {
  color: #e0c67e;
}

.topic-copy h3 {
  color: #efe7d1;
}

.topic-copy p {
  color: #adbbb0;
}

.topic-tag {
  color: #d0b66e;
}

.topics-note {
  margin-top: 11px;
}

.trust-rail {
  border-block-color: rgba(197, 160, 89, 0.18);
  background: rgba(8, 36, 26, 0.82);
  color: #d8dfd6;
}

.trust-check {
  color: #d4b66e;
}

.site-footer {
  border-top-color: rgba(197, 160, 89, 0.18);
  color: #aebbb1;
}

.footer-brand,
.nav-link {
  color: #b8c3b9;
}

.nav-link:hover {
  color: #e5cd8f;
}

.footer-brand span {
  color: #d4b66e;
}

.code-display {
  background: rgba(197, 160, 89, 0.12);
  color: #ecd28e;
}

.step-title,
.result-message {
  color: #f0ecdf;
}

.step-copy,
.disclaimer {
  color: #b4c0b6;
}

.loading-spinner {
  border-color: rgba(197, 160, 89, 0.18);
  border-top-color: #d4b66e;
  border-right-color: #14825d;
}

.success-circle,
.success-check {
  stroke: #71c59d;
}

@keyframes cta-shimmer {
  0%, 54% { transform: translateX(-140%); }
  78%, 100% { transform: translateX(140%); }
}

@keyframes cta-gold-breathe {
  0%, 100% { box-shadow: 0 5px 20px rgba(197, 160, 89, 0.14), inset 0 1px rgba(255, 250, 224, 0.42); }
  50% { box-shadow: 0 6px 25px rgba(197, 160, 89, 0.23), 0 0 18px rgba(20, 130, 93, 0.12), inset 0 1px rgba(255, 250, 224, 0.5); }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "copy";
  }

  .topic-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-wrap {
    width: min(100% - 36px, 680px);
  }

  .hero-grid {
    padding-block: 32px 26px;
  }

  .hero-copy {
    text-align: center;
  }

  .app-title {
    max-width: 15ch;
    font-size: clamp(2.45rem, 8.5vw, 3.5rem);
  }

  .app-subtitle {
    font-size: 14px;
  }

  .flow-slot {
    max-width: 620px;
  }

  .topic-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
  }

  .topic-card + .topic-card {
    border: 1px solid rgba(197, 160, 89, 0.16);
  }
}

@media (max-width: 520px) {
  .site-wrap {
    width: min(100% - 30px, 460px);
  }

  .topbar {
    min-height: 72px;
  }

  .hero-grid {
    padding-top: 29px;
  }

  .market-context {
    gap: 6px;
  }

  .input-heading {
    align-items: flex-start;
  }

  .shariah-inline {
    max-width: 58%;
    font-size: 9px;
  }

  .sample-ticker {
    min-height: 36px;
    padding-inline: 10px;
    font-size: 11px;
  }

  .topics-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .topic-card,
  .topic-card + .topic-card {
    padding: 12px 12px 10px;
  }
}

/* Plaintext layout: topic choices, symbol entry, examples, action, trust details. */
.topbar {
  gap: 14px;
}

.topbar-actions {
  gap: 14px;
}

.header-shariah {
  max-width: 270px;
  border-color: rgba(197, 160, 89, 0.34);
  background: rgba(197, 160, 89, 0.09);
  color: #e7d292;
  white-space: nowrap;
}

.hero-grid {
  padding-block: clamp(28px, 4.5vh, 48px) 24px;
}

.app-subtitle {
  max-width: 70ch;
}

.topics-section {
  width: min(100%, 920px);
  margin: 0 auto;
  padding: 26px 0 30px;
  border-top: 0;
  text-align: start;
}

.topic-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.topic-card,
.topic-card + .topic-card {
  display: flex;
  min-height: 166px;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding: 16px;
  border: 1px solid rgba(197, 160, 89, 0.16);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(13, 49, 36, 0.94), rgba(7, 34, 24, 0.96));
}

.topic-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 11px;
}

.topic-copy h3 {
  margin-bottom: 5px;
  font-size: 14px;
}

.topic-copy p {
  font-size: 11px;
}

.topic-tag {
  margin-top: auto;
  padding-top: 9px;
}

.topics-note {
  margin-top: 12px;
  text-align: center;
}

.flow-slot {
  max-width: 720px;
}

.input-wrap {
  margin-bottom: 0;
}

.input-heading {
  justify-content: flex-start;
}

.example-picker {
  margin: 16px 0 18px;
}

.example-list {
  justify-content: flex-start;
}

.trust-rail {
  width: min(100%, 760px);
  margin: 18px auto 0;
  border-block-color: rgba(197, 160, 89, 0.18);
  background: rgba(8, 36, 26, 0.62);
  color: #d8dfd6;
}

@media (max-width: 760px) {
  .hero-grid {
    padding-block: 26px 22px;
  }

  .topics-section {
    padding: 20px 0 24px;
  }

  .topic-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
  }

  .topic-card,
  .topic-card + .topic-card {
    min-height: 158px;
    padding: 13px 11px;
  }

  .topic-copy h3 {
    font-size: 12px;
  }

  .topic-copy p {
    font-size: 10px;
  }
}

@media (max-width: 520px) {
  .topbar {
    min-height: auto;
    flex-wrap: wrap;
    row-gap: 9px;
    padding-block: 11px;
  }

  .topbar-actions {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  .header-shariah {
    max-width: calc(100% - 128px);
    min-height: 32px;
    white-space: normal;
  }

  .topic-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .topic-card,
  .topic-card + .topic-card {
    display: grid;
    min-height: 0;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: start;
    column-gap: 10px;
    padding: 13px;
  }

  .topic-icon {
    grid-row: span 2;
    margin: 0;
  }

  .topic-copy h3 {
    margin: 1px 0 4px;
    font-size: 13px;
  }

  .topic-copy p {
    font-size: 11px;
  }

  .topic-tag {
    grid-column: 2;
    justify-self: start;
    padding-top: 5px;
  }

  .trust-rail {
    gap: 10px 16px;
    padding-inline: 12px;
  }
}

/* Topic cards stay as short title tiles; supporting paragraphs and tags are intentionally omitted. */
.topic-card,
.topic-card + .topic-card {
  display: flex;
  min-height: 82px;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
}

.topic-icon {
  flex: 0 0 32px;
  margin: 0;
}

.topic-title {
  margin: 0;
  color: #efe7d1;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

@media (max-width: 760px) {
  .topic-card,
  .topic-card + .topic-card {
    min-height: 72px;
    padding: 12px;
  }

  .topic-title {
    font-size: 13px;
  }
}

@media (max-width: 520px) {
  .topic-card,
  .topic-card + .topic-card {
    min-height: 62px;
    padding: 11px 13px;
  }

  .topic-title {
    font-size: 14px;
  }
}

/* Mobile refinement: compact topic tiles and make the first screen easier to scan. */
@media (max-width: 760px) {
  .hero-grid {
    padding-block: 24px 18px;
  }

  .eyebrow {
    margin-bottom: 11px;
    font-size: 12px;
  }

  .app-title {
    font-size: clamp(2.1rem, 5.6vw, 2.6rem);
    line-height: 1.18;
  }

  .app-subtitle {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.65;
  }

  .market-context {
    margin-top: 14px;
  }

  .compliance-note {
    margin-bottom: 14px;
  }

  .step-indicator {
    gap: 10px;
    margin-bottom: 14px;
  }

  .step-label {
    font-size: 11px;
  }

  .language-option {
    min-width: 64px;
    min-height: 44px;
    padding-inline: 10px;
  }

  .topics-section {
    padding: 14px 0 16px;
  }

  .topics-heading {
    margin-bottom: 10px;
  }

  .topic-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .topic-card,
  .topic-card + .topic-card {
    min-height: 88px;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 9px 6px;
    text-align: center;
  }

  .topic-icon {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
  }

  .topic-title {
    font-size: clamp(11px, 3.2vw, 12px);
    line-height: 1.35;
    text-align: center;
  }

  .trust-rail {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    justify-content: stretch;
    gap: 8px 12px;
    margin-top: 12px;
    padding: 11px 12px;
    font-size: 11px;
  }

  .trust-rail li {
    min-width: 0;
    gap: 6px;
  }
}

@media (max-width: 520px) {
  .site-wrap {
    width: min(100% - 24px, 460px);
  }

  .hero-grid {
    padding-top: 22px;
  }

  .app-title {
    max-width: 16ch;
    font-size: clamp(1.9rem, 8.6vw, 2.2rem);
  }

  .app-subtitle {
    max-width: 43ch;
    font-size: 13px;
  }

  .topic-card,
  .topic-card + .topic-card {
    min-height: 86px;
    padding: 8px 5px;
  }

  .topic-title {
    font-size: 12px;
  }
}

.trust-rail .trust-check {
  display: inline-block;
  width: 15px;
  height: 16px;
  flex: 0 0 16px;
  font-size: 0;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}

.trust-rail li:first-child .trust-check {
  background-image: url("../image/trust-analysis.svg");
}

.trust-rail li:nth-child(2) .trust-check {
  background-image: url("../image/trust-followup.svg");
}

.trust-rail li:last-child .trust-check {
  background: url("../image/data-security.svg") center / contain no-repeat;
}

/* Emerald signal theme: luminous actions, readable gradient type, and quiet data texture. */
:root {
  --cta-emerald-start: #10B981;
  --cta-emerald-end: #00E676;
  --emerald-glow: rgba(0, 230, 118, 0.4);
}

body {
  background-image:
    radial-gradient(ellipse at 90% 3%, rgba(16, 185, 129, 0.16), transparent 27%),
    radial-gradient(ellipse at 50% 62%, rgba(197, 160, 89, 0.075), transparent 42%);
}

html[dir="ltr"] body {
  background-image:
    radial-gradient(ellipse at 10% 3%, rgba(16, 185, 129, 0.16), transparent 27%),
    radial-gradient(ellipse at 50% 62%, rgba(197, 160, 89, 0.075), transparent 42%);
}

body::before {
  background-image:
    url("../image/data-grid.svg"),
    url("../image/arabesque-grid.svg");
  background-position: center top, center top;
  background-repeat: repeat;
  background-size: 640px 420px, 210px 210px;
  opacity: 0.05;
}

.app-title,
.app-title .title-line,
.app-title .title-accent {
  background: linear-gradient(180deg, #ffffff 0%, #edfff5 43%, #00e676 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(0, 230, 118, 0.16);
}

.primary-btn {
  border: 1px solid rgba(179, 255, 216, 0.72);
  background: linear-gradient(110deg, #10B981 0%, #00E676 100%);
  color: #04291d;
  box-shadow:
    0 0 20px rgba(0, 230, 118, 0.4),
    inset 0 1px rgba(240, 255, 248, 0.48);
}

.primary-btn:not(:disabled) {
  animation: cta-emerald-breathe 4.2s ease-in-out infinite;
}

.primary-btn:hover:not(:disabled) {
  background: linear-gradient(110deg, #00c981 0%, #21ff8c 100%);
  box-shadow:
    0 0 25px rgba(0, 230, 118, 0.54),
    0 0 44px rgba(16, 185, 129, 0.16),
    inset 0 1px rgba(240, 255, 248, 0.58);
}

.primary-btn:focus-visible {
  outline-color: #b9ffdc;
  box-shadow:
    0 0 0 4px rgba(16, 185, 129, 0.2),
    0 0 25px rgba(0, 230, 118, 0.48);
}

.primary-btn:disabled {
  border-color: rgba(179, 255, 216, 0.54);
  background: linear-gradient(110deg, #10B981 0%, #00E676 100%);
  color: #04291d;
  opacity: 0.88;
  box-shadow:
    0 0 20px rgba(0, 230, 118, 0.4),
    inset 0 1px rgba(240, 255, 248, 0.38);
}

.app-title {
  text-shadow: 0 0 22px rgba(0, 230, 118, 0.19);
}

.topic-card,
.topic-card + .topic-card {
  border: 1px solid rgba(16, 185, 129, 0.2);
  background: rgba(10, 25, 18, 0.6);
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.topic-icon {
  border: 1px solid rgba(16, 185, 129, 0.18);
  background: rgba(16, 185, 129, 0.1);
  color: #86f5b8;
  box-shadow:
    0 0 14px rgba(16, 185, 129, 0.16),
    inset 0 0 10px rgba(16, 185, 129, 0.08);
}

.topic-icon.rhythm-icon {
  color: #77e5ad;
}

.topic-icon.report-icon {
  color: #a3f4c7;
}

@media (hover: hover) {
  .topic-card:hover,
  .topic-card + .topic-card:hover {
    transform: translateY(-2px);
    border-color: rgba(197, 160, 89, 0.7);
    box-shadow:
      0 0 18px rgba(0, 230, 118, 0.12),
      0 0 22px rgba(197, 160, 89, 0.08),
      inset 0 0 16px rgba(16, 185, 129, 0.045);
  }
}

.code-input:focus {
  border-color: #00e676;
  box-shadow:
    0 0 0 3px rgba(16, 185, 129, 0.2),
    0 0 24px rgba(0, 230, 118, 0.2),
    0 0 34px rgba(197, 160, 89, 0.07);
}

.code-input:focus-visible {
  outline: 2px solid rgba(185, 255, 220, 0.8);
  outline-offset: 3px;
}

@keyframes cta-emerald-breathe {
  0%, 100% {
    box-shadow:
      0 0 20px rgba(0, 230, 118, 0.36),
      inset 0 1px rgba(240, 255, 248, 0.45);
  }
  50% {
    box-shadow:
      0 0 28px rgba(0, 230, 118, 0.52),
      0 0 46px rgba(16, 185, 129, 0.15),
      inset 0 1px rgba(240, 255, 248, 0.58);
  }
}

/* The header no longer displays the Shariah-status badge. */
.header-shariah {
  display: none !important;
}

@media (max-width: 180px) {
  .site-wrap {
    width: 100%;
    padding-inline: 5px;
  }

  .topbar {
    gap: 5px;
    padding-block: 8px;
  }

  .brand-row {
    width: auto;
    min-width: 0;
    flex: 0 1 auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 3px;
  }

  .brand-name {
    flex: 0 0 auto;
    font-size: 10px;
    white-space: nowrap;
  }

  .robot-mark {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
  }

  .topbar-actions {
    width: auto;
    flex: 0 0 auto;
    justify-content: flex-end;
    gap: 0;
  }

  .language-switch {
    gap: 1px;
    padding: 2px;
  }

  .language-option {
    min-width: 0;
    min-height: 32px;
    padding-inline: 2px;
    font-size: 8px;
    line-height: 1;
  }
}

@media (max-width: 520px) {
  .topbar {
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    column-gap: 10px;
  }

  .brand-row {
    width: auto;
    min-width: 0;
    flex: 0 1 auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 8px;
  }

  .topbar-actions {
    width: auto;
    flex: 0 0 auto;
    justify-content: flex-end;
    gap: 0;
  }
}

@media (min-width: 280px) and (max-width: 520px) {
  .trust-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px 6px;
    padding: 9px 8px;
  }

  .trust-rail li {
    min-width: 0;
    justify-content: center;
    gap: 4px;
    white-space: nowrap;
    font-size: clamp(8px, 2.45vw, 10px);
    line-height: 1.2;
  }

  .trust-rail .trust-check {
    width: 12px;
    height: 12px;
    flex-basis: 12px;
  }
}

@media (max-width: 520px) {
  .input-heading {
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
  }

  .input-heading .input-label {
    font-size: 16px;
    text-align: center;
  }

  .code-input {
    font-size: 18px;
    text-align: center;
  }

  .code-input::placeholder {
    font-size: 18px;
    text-align: center;
  }

  .input-hint {
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
  }
}

/* Saudi stock topic explorer, translated from the supplied Cairo / glass-card prototype. */
.market-stage .site-wrap {
  width: min(100% - 56px, 1180px);
}

.market-stage .topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 78px;
  gap: 24px;
  border-bottom-color: rgba(197, 160, 89, 0.2);
}

.market-stage .brand-row {
  grid-column: 1;
}

.market-stage .topbar-actions {
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: 14px;
}

.market-index {
  grid-column: 2;
  justify-self: center;
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 9px;
  padding: 6px 11px;
  border: 1px solid rgba(16, 185, 129, 0.22);
  border-radius: 11px;
  background: rgba(8, 36, 26, 0.68);
  color: #b9cabe;
  font-size: 10px;
  line-height: 1.3;
  white-space: nowrap;
}

.market-index-name {
  color: #e1cb91;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.045em;
}

.market-index-chart {
  width: 54px;
  height: 20px;
  overflow: visible;
}

.market-index-chart path {
  fill: none;
  stroke: #10b981;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  opacity: 0.72;
}

.market-layout {
  display: flex;
  width: 100%;
  flex: 1;
  flex-direction: column;
  gap: 0;
  padding-block: 42px 52px;
}

.hero-search {
  width: 100%;
  max-width: 920px;
  align-self: center;
  padding: 8px 0 36px;
  text-align: center;
}

.hero-search .eyebrow {
  justify-content: center;
  margin-bottom: 14px;
  color: #cdb77d;
}

.hero-search .app-title {
  max-width: none;
  font-size: clamp(2.6rem, 5vw, 4.35rem);
  line-height: 1.16;
}

.hero-search .app-subtitle {
  max-width: 65ch;
  margin: 15px auto 25px;
  color: #c1cfc5;
  font-size: 16px;
  line-height: 1.75;
}

.hero-search .flow-slot {
  width: 100%;
  max-width: 920px;
  margin-inline: auto;
  text-align: start;
}

.request-panel {
  padding: 0;
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  align-items: end;
  gap: 12px;
}

.search-row .input-wrap {
  min-width: 0;
  margin: 0;
}

.search-row .input-label {
  margin-bottom: 8px;
  color: #e9e7d9;
  font-size: 13px;
}

.search-row .code-input {
  min-height: 62px;
  border-color: rgba(197, 160, 89, 0.32);
  border-radius: 13px;
  background: rgba(7, 36, 26, 0.94);
  color: #f4f1e7;
}

.search-row .code-input::placeholder {
  color: #aebbb1;
  font-size: clamp(12px, 1.1vw, 15px);
  font-weight: 400;
  opacity: 1;
}

.search-row .primary-btn {
  width: 100%;
  min-height: 62px;
  border: 1px solid rgba(185, 255, 220, 0.38);
  border-radius: 13px;
  background: linear-gradient(110deg, #10b981, #00c978 65%, #00e676);
  color: #03271c;
  box-shadow: 0 8px 18px rgba(0, 230, 118, 0.16), 0 0 22px rgba(0, 230, 118, 0.17);
  white-space: nowrap;
}

.search-row .primary-btn:hover:not(:disabled) {
  background: linear-gradient(110deg, #14c88d, #00e676);
  box-shadow: 0 10px 22px rgba(0, 230, 118, 0.24), 0 0 28px rgba(0, 230, 118, 0.24);
}

.search-row .primary-btn:disabled {
  color: #d3e5da;
  opacity: 0.64;
}

#stockHint {
  margin-top: 9px;
  color: #aebfb3;
  font-size: 12px;
}

.quick-prompts {
  margin-top: 19px;
}

.prompt-label {
  margin: 0 0 9px;
  color: #b5c5ba;
  font-size: 12px;
  font-weight: 600;
}

.prompt-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
}

.prompt-chip {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 10px;
  padding: 8px 13px;
  border: 1px solid rgba(16, 185, 129, 0.24);
  border-radius: 999px;
  background: rgba(9, 43, 31, 0.72);
  color: #d8e6dc;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.prompt-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(197, 160, 89, 0.54);
  background: rgba(14, 57, 41, 0.94);
}

.prompt-arrow {
  color: #cbb77e;
  font-size: 13px;
}

.market-stage .trust-rail {
  width: min(100%, 760px);
  margin: 22px auto 0;
}

.market-section {
  width: 100%;
  margin-top: 36px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 17px;
}

.section-heading h2 {
  margin: 3px 0 0;
  color: #f0ead8;
  font-size: clamp(19px, 2.2vw, 25px);
  font-weight: 700;
  line-height: 1.35;
}

.section-kicker {
  margin: 0;
  color: #cdb77d;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.11em;
}

.section-note {
  max-width: 42ch;
  margin: 0;
  color: #aebfb3;
  font-size: 12px;
  line-height: 1.55;
  text-align: end;
}

.sector-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}

.sector-card {
  display: flex;
  min-width: 0;
  min-height: 230px;
  flex-direction: column;
  padding: 17px 16px 14px;
  border: 1px solid rgba(16, 185, 129, 0.19);
  border-radius: 14px;
  background: linear-gradient(150deg, rgba(10, 37, 27, 0.93), rgba(6, 27, 20, 0.92));
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.sector-card:hover {
  transform: translateY(-2px);
  border-color: rgba(197, 160, 89, 0.52);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12), 0 0 20px rgba(16, 185, 129, 0.08);
}

.sector-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 13px;
}

.sector-icon {
  display: grid;
  width: 37px;
  height: 37px;
  place-items: center;
  border: 1px solid rgba(16, 185, 129, 0.18);
  border-radius: 11px;
  background: rgba(16, 185, 129, 0.09);
  color: #dfcc94;
  font-size: 19px;
}

.sector-index {
  color: #82988a;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.sector-card h3 {
  margin: 0;
  color: #f0ead8;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}

.sector-card p {
  margin: 8px 0 15px;
  color: #b7c6ba;
  font-size: 12px;
  line-height: 1.65;
}

.sector-action {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding: 6px 0 0;
  border: 0;
  border-top: 1px solid rgba(197, 160, 89, 0.17);
  background: transparent;
  color: #d8c78e;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  text-align: start;
}

.sector-action:hover {
  color: #f0da9d;
}

.sector-action:focus-visible,
.prompt-chip:focus-visible,
.ticker-example:focus-visible {
  outline: 2px solid #c5a059;
  outline-offset: 3px;
}

.examples-section {
  margin-top: 40px;
}

.examples-heading {
  align-items: center;
}

.ticker-examples {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.ticker-example {
  display: flex;
  min-width: 0;
  min-height: 56px;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  border: 1px solid rgba(197, 160, 89, 0.17);
  border-radius: 11px;
  background: rgba(8, 36, 26, 0.67);
  color: #d7e1d7;
  cursor: pointer;
  text-align: start;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.ticker-example:hover {
  border-color: rgba(16, 185, 129, 0.5);
  background: rgba(10, 46, 33, 0.86);
}

.ticker-example bdi {
  color: #dfc985;
  font-size: 13px;
  font-weight: 800;
  unicode-bidi: isolate;
}

.ticker-example > span:nth-child(2) {
  overflow: hidden;
  min-width: 0;
  color: #d2ddd3;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ticker-arrow {
  margin-inline-start: auto;
  color: #7aa98f;
  font-size: 13px;
}

.market-stage .site-footer {
  border-top-color: rgba(197, 160, 89, 0.2);
}

@media (max-width: 1020px) {
  .market-stage .site-wrap {
    width: min(100% - 44px, 900px);
  }

  .sector-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ticker-examples {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .market-stage .site-wrap {
    width: min(100% - 32px, 620px);
  }

  .market-stage .topbar {
    display: flex;
    min-height: auto;
    flex-wrap: wrap;
    justify-content: space-between;
    row-gap: 10px;
    padding-block: 10px;
  }

  .market-stage .brand-row {
    order: 0;
    flex: 0 0 auto;
    gap: 7px;
  }

  .market-stage .brand-name {
    font-size: 20px;
  }

  .market-stage .robot-mark {
    width: 40px;
    height: 40px;
  }

  .market-stage .topbar-actions {
    order: 1;
    flex: 0 0 auto;
    justify-content: flex-end;
    gap: 8px;
  }

  .market-index {
    order: 2;
    flex: 0 0 100%;
    min-height: 36px;
    width: 100%;
    justify-content: center;
    gap: 7px;
    padding: 5px 9px;
    font-size: 9px;
  }

  .market-index-chart {
    width: 48px;
    height: 18px;
  }

  .market-layout {
    padding-block: 30px 40px;
  }

  .hero-search {
    padding-bottom: 26px;
  }

  .hero-search .app-title {
    font-size: clamp(2.35rem, 8vw, 3.3rem);
  }

  .hero-search .app-subtitle {
    margin: 12px auto 21px;
    font-size: 14px;
  }

  .search-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
  }

  .search-row .primary-btn {
    min-height: 56px;
  }

  .prompt-list {
    gap: 7px;
  }

  .prompt-chip {
    min-height: 38px;
    padding-inline: 11px;
    font-size: 11px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .section-note {
    max-width: none;
    text-align: start;
  }

  .sector-card {
    min-height: 205px;
    padding: 15px;
  }

  .sector-card h3 {
    font-size: 14px;
  }

  .market-section {
    margin-top: 27px;
  }

  .examples-section {
    margin-top: 31px;
  }
}

@media (max-width: 520px) {
  .market-stage .site-wrap {
    width: min(100% - 24px, 440px);
  }

  .market-stage .topbar {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .market-stage .topbar-actions {
    flex: 0 0 auto;
  }

  .market-stage .language-switch {
    gap: 1px;
    padding: 3px;
  }

  .market-stage .language-option {
    min-width: 56px;
    min-height: 40px;
    padding-inline: 8px;
    font-size: 11px;
  }

  .market-index {
    width: 100%;
    justify-content: center;
    order: 2;
    min-height: 33px;
    padding-block: 4px;
  }

  .market-index-chart {
    width: 56px;
  }

  .market-layout {
    padding-top: 25px;
  }

  .hero-search .eyebrow {
    margin-bottom: 10px;
    font-size: 11px;
  }

  .hero-search .app-title {
    font-size: clamp(2.05rem, 9vw, 2.7rem);
  }

  .hero-search .app-subtitle {
    margin: 10px auto 19px;
    font-size: 13px;
    line-height: 1.65;
  }

  .search-row .input-label {
    margin-bottom: 6px;
    font-size: 14px;
  }

  .search-row .code-input {
    min-height: 58px;
    padding-inline: 10px;
    font-size: 17px;
  }

  .search-row .code-input::placeholder {
    font-size: clamp(12px, 3.6vw, 14px);
  }

  .quick-prompts {
    margin-top: 15px;
  }

  .prompt-label {
    margin-bottom: 8px;
    font-size: 11px;
  }

  .prompt-list {
    justify-content: flex-start;
  }

  .prompt-chip {
    min-height: 37px;
    padding: 7px 10px;
    font-size: 10px;
  }

  .market-stage .trust-rail {
    margin-top: 17px;
    padding-inline: 8px;
  }

  .market-section {
    margin-top: 23px;
  }

  .section-heading {
    margin-bottom: 12px;
  }

  .section-heading h2 {
    font-size: 19px;
  }

  .section-note {
    font-size: 11px;
  }

  .sector-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
  }

  .sector-card {
    min-height: 0;
    padding: 13px 14px 10px;
  }

  .sector-card-top {
    margin-bottom: 8px;
  }

  .sector-icon {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    font-size: 16px;
  }

  .sector-card h3 {
    font-size: 14px;
  }

  .sector-card p {
    margin: 6px 0 9px;
    font-size: 11px;
    line-height: 1.55;
  }

  .sector-action {
    min-height: 32px;
    font-size: 11px;
  }

  .ticker-examples {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .ticker-example {
    min-height: 50px;
    gap: 7px;
    padding: 8px 9px;
  }

  .ticker-example bdi {
    font-size: 12px;
  }

  .ticker-example > span:nth-child(2) {
    font-size: 10px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    padding-block: 13px;
  }
}

/* Scheme B prototype finish: deep Cairo-green, amber type, and translucent topic cards. */
html,
body {
  background-color: #091a14;
  color: #ecfdf5;
}

body {
  font-family: "Cairo", "IBM Plex Sans Arabic", system-ui, sans-serif;
}

.market-stage .brand-name {
  font-family: "Cairo", "IBM Plex Sans Arabic", system-ui, sans-serif;
}

.gold-gradient-text {
  background: linear-gradient(135deg, #fde68a 0%, #d97706 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.market-stage .app-title .gold-gradient-text {
  text-shadow: 0 0 18px rgba(217, 119, 6, 0.16);
}

.market-stage .brand-name.gold-gradient-text {
  font-size: 21px;
  letter-spacing: -0.025em;
}

.market-stage .hero-search .eyebrow {
  color: #f6c95f;
}

.market-stage .section-heading h2 {
  color: #f5c65d;
}

.section-heading-icon {
  margin-inline-end: 8px;
  font-size: 0.86em;
  vertical-align: 0.02em;
}

.market-stage .card-glass {
  border: 1px solid rgba(217, 119, 6, 0.2);
  background: rgba(15, 41, 32, 0.7);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.market-stage .card-glass:hover {
  border-color: rgba(217, 119, 6, 0.6);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

.market-stage .sector-icon {
  border-color: rgba(217, 119, 6, 0.2);
  background: rgba(16, 185, 129, 0.12);
  color: #f4d27d;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.13);
}

.market-stage .sector-index {
  color: #d7b768;
  font-size: 10px;
  letter-spacing: 0;
}

.market-stage .search-row .code-input {
  border-color: rgba(245, 158, 11, 0.32);
  background: rgba(4, 34, 24, 0.88);
}

.market-stage .search-row .code-input:focus {
  border-color: #fbbf24;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.16), 0 0 22px rgba(16, 185, 129, 0.11);
}

.market-stage .search-row .primary-btn {
  background: linear-gradient(105deg, #f59e0b 0%, #10b981 76%, #00c97d 100%);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.market-stage .search-row .primary-btn:hover:not(:disabled) {
  background: linear-gradient(105deg, #d97706 0%, #10b981 78%, #00e676 100%);
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.32);
}

.market-stage .prompt-chip {
  border-color: rgba(16, 185, 129, 0.32);
  background: rgba(6, 53, 38, 0.56);
  color: #a7f3d0;
}

.market-stage .prompt-chip:hover {
  background: rgba(6, 78, 59, 0.78);
}

.market-stage .ticker-example {
  border-color: rgba(217, 119, 6, 0.19);
  background: rgba(15, 41, 32, 0.52);
}

.market-stage .ticker-example:hover {
  border-color: rgba(217, 119, 6, 0.52);
  background: rgba(15, 41, 32, 0.8);
}

@media (max-width: 520px) {
  .market-stage .brand-name.gold-gradient-text {
    font-size: 19px;
  }

  .market-stage .search-row .code-input {
    text-align: center;
  }
}

/* Match the supplied Tailwind prototype while keeping the live request flow. */
.market-stage .site-wrap {
  width: min(100% - 48px, 1024px);
}

.market-stage .hero-search {
  max-width: 820px;
}

.market-stage .hero-search .app-title {
  max-width: 100%;
  font-size: clamp(2rem, 3.2vw, 2.5rem);
  line-height: 1.3;
}

.market-stage .app-title,
.market-stage .app-title .title-line {
  background: none;
  color: #ecfdf5;
  -webkit-text-fill-color: #ecfdf5;
  text-shadow: none;
}

.market-stage .app-title .gold-gradient-text {
  background: linear-gradient(135deg, #fde68a 0%, #d97706 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 18px rgba(217, 119, 6, 0.16);
}

.market-stage .search-row {
  position: relative;
  display: block;
}

.market-stage .search-row .input-wrap {
  margin: 0;
}

.market-stage .search-row .input-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.market-stage .search-row .code-input {
  min-height: 72px;
  padding: 14px 18px 14px 174px;
  border-color: rgba(245, 158, 11, 0.3);
  border-radius: 16px;
  background: rgba(4, 34, 24, 0.88);
  color: #f4f1e7;
  -webkit-text-fill-color: #f4f1e7;
  caret-color: #f4f1e7;
  text-align: right;
}

.market-stage .search-row .primary-btn {
  position: absolute;
  inset: 8px auto 8px 8px;
  z-index: 1;
  display: inline-flex;
  width: auto;
  min-width: 150px;
  min-height: 0;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 17px;
  border-radius: 12px;
  background: linear-gradient(105deg, #f59e0b 0%, #10b981 76%, #00c97d 100%);
  color: #03271c;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
  white-space: nowrap;
}

.market-stage .search-row .primary-btn:hover:not(:disabled) {
  background: linear-gradient(105deg, #d97706 0%, #10b981 78%, #00e676 100%);
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.32);
}

html[dir="ltr"] .market-stage .search-row .code-input {
  padding-right: 174px;
  padding-left: 18px;
  text-align: left;
}

html[dir="ltr"] .market-stage .search-row .primary-btn {
  inset: 8px 8px 8px auto;
}

.market-stage .sector-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.market-stage .sector-card {
  min-height: 230px;
  padding: 20px;
  border-radius: 16px;
}

.market-stage .sector-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  font-size: 22px;
}

.market-stage .prompt-list {
  justify-content: center;
}

@media (max-width: 1020px) {
  .market-stage .site-wrap {
    width: min(100% - 40px, 900px);
  }
}

@media (max-width: 760px) {
  .market-stage .site-wrap {
    width: min(100% - 32px, 620px);
  }

  .market-stage .hero-search .app-title {
    font-size: clamp(1.9rem, 6vw, 2.35rem);
  }

  .market-stage .search-row .code-input {
    min-height: 66px;
    padding-left: 140px;
  }

  html[dir="ltr"] .market-stage .search-row .code-input {
    padding-right: 140px;
  }

  .market-stage .search-row .primary-btn {
    min-width: 124px;
    padding-inline: 12px;
    font-size: 12px;
  }
}

@media (max-width: 520px) {
  .market-stage .site-wrap {
    width: min(100% - 24px, 440px);
  }

  .market-stage .search-row .code-input {
    min-height: 62px;
    padding-left: 121px;
    padding-right: 11px;
    font-size: 15px;
  }

  html[dir="ltr"] .market-stage .search-row .code-input {
    padding-right: 121px;
    padding-left: 11px;
  }

  .market-stage .search-row .primary-btn {
    min-width: 108px;
    padding-inline: 8px;
    font-size: 11px;
  }

  .market-stage .hero-search .app-title {
    font-size: clamp(1.8rem, 8vw, 2.3rem);
  }
}

/* Mobile-first refinements: give the search action room and touch-sized controls. */
@media (max-width: 760px) {
  .market-stage .market-layout {
    padding-block: 24px 34px;
  }

  .market-stage .search-row {
    display: block;
  }

  .market-stage .search-row .code-input,
  html[dir="ltr"] .market-stage .search-row .code-input {
    min-height: 58px;
    padding: 12px 14px 12px 126px;
    text-align: start;
    font-size: 16px;
  }

  .market-stage .search-row .primary-btn,
  html[dir="ltr"] .market-stage .search-row .primary-btn {
    position: absolute;
    inset: 8px auto auto 8px;
    width: auto;
    min-width: 108px;
    min-height: 42px;
    padding-inline: 9px;
    font-size: 11px;
  }

  html[dir="ltr"] .market-stage .search-row .code-input {
    padding: 12px 126px 12px 14px;
  }

  html[dir="ltr"] .market-stage .search-row .primary-btn {
    inset: 8px 8px auto auto;
  }

  .market-stage .sector-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .market-stage .sector-card {
    min-height: 0;
    padding: 15px 16px 12px;
  }

  .market-stage .sector-action {
    min-height: 44px;
    padding-top: 8px;
  }

  .market-stage .prompt-chip {
    min-height: 44px;
    padding-inline: 12px;
  }

  .market-stage .language-option {
    min-height: 44px;
  }

  .market-stage .market-section {
    margin-top: 24px;
  }
}

@media (max-width: 380px) {
  .market-stage .site-wrap {
    width: min(100% - 20px, 360px);
  }

  .market-stage .sector-card {
    padding-inline: 13px;
  }

  .market-stage .prompt-list {
    gap: 7px;
  }

  .market-stage .prompt-chip {
    padding-inline: 9px;
    font-size: 11px;
  }

}

@media (max-width: 520px) {
  .market-stage .search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
  }

  .market-stage .search-row .code-input {
    min-height: 54px;
    padding: 12px 14px;
  }

  .market-stage .search-row .primary-btn {
    position: static;
    inset: auto;
    width: 100%;
    min-width: 0;
    min-height: 46px;
  }
}
