:root {
  --blue: #c9a45c;
  --blue-dark: #f5d48a;
  --ink: #f8fafc;
  --muted: #b6c2d2;
  --line: rgba(255, 255, 255, 0.16);
  --soft: rgba(255, 255, 255, 0.08);
  --green: #f5d48a;
  --orange: #f5d48a;
  --navy: #111827;
  --paper: #f8fafc;
  --text-dark: #111827;
  --gold: #c9a45c;
  --gold-light: #f5d48a;
  font-family: "Cairo", "IBM Plex Sans Arabic", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 12%, rgba(201, 164, 92, 0.26), transparent 28%),
    radial-gradient(circle at 86% 18%, rgba(61, 219, 217, 0.16), transparent 24%),
    linear-gradient(180deg, #07111f 0%, #0b1628 52%, #07111f 100%);
  color: var(--ink);
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 80%);
  z-index: -1;
}

button,
input,
select {
  font: inherit;
}

.shell {
  width: min(100%, 580px);
  min-height: 100vh;
  margin: 0 auto;
  background: rgba(7, 17, 31, 0.72);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  border-inline: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
}

.topbar {
  direction: ltr;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.brand {
  direction: rtl;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-size: 25px;
  font-weight: 800;
}

.brand-mark,
.brand-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  color: #111827;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border: 2px solid rgba(245, 212, 138, 0.52);
  font-size: 20px;
  box-shadow: 0 12px 28px rgba(201, 164, 92, 0.2);
}

.login {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}

.app {
  padding: 18px 18px 34px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  direction: rtl;
  gap: 6px;
  margin-bottom: 28px;
}

.step-indicator {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.46);
  cursor: pointer;
  min-width: 0;
  padding: 0;
}

.step-indicator span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  margin: 0 auto 6px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.48);
  font-weight: 800;
  background: rgba(255, 255, 255, 0.06);
}

.step-indicator b {
  display: block;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.step-indicator.is-active {
  color: #fff;
}

.step-indicator.is-active span {
  border-color: var(--green);
  color: var(--green);
}

.panel {
  display: none;
  animation: fade 180ms ease;
}

.panel.is-current {
  display: block;
}

@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
}

h1 {
  margin: 0 0 22px;
  font-size: 24px;
  line-height: 1.25;
  text-align: right;
}

h2,
h3,
p {
  margin-top: 0;
}

.field {
  margin-bottom: 24px;
}

label {
  display: block;
  margin-bottom: 8px;
  color: #d8dee9;
  font-weight: 700;
  text-align: right;
}

input,
select {
  width: 100%;
  height: 48px;
  border: 1.5px solid var(--line);
  border-radius: 9px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  padding: 0 13px;
  outline: 0;
  text-align: right;
}

input:focus,
select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(201, 164, 92, 0.16);
}

input.is-invalid,
select.is-invalid {
  border-color: #df3f3f;
  background: rgba(223, 63, 63, 0.08);
}

.field-error {
  display: block;
  min-height: 18px;
  margin-top: 6px;
  color: #c83232;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  text-align: right;
}

::placeholder {
  color: rgba(255, 255, 255, 0.54);
  opacity: 1;
  font-weight: 650;
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 46px;
  overflow: hidden;
  border: 1.5px solid var(--line);
  border-radius: 10px;
}

.segmented button {
  border: 0;
  color: #d8dee9;
  background: rgba(255, 255, 255, 0.06);
  font-weight: 800;
  cursor: pointer;
}

.segmented .is-selected {
  color: #111827;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
}

.consent {
  margin: 18px 22px 26px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  text-align: right;
}

.actions {
  direction: ltr;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}

.actions.single {
  grid-template-columns: 1fr;
}

.actions.stacked {
  grid-template-columns: 1fr;
}

button.primary,
button.secondary,
.gold {
  min-height: 58px;
  border: 0;
  border-radius: 9px;
  font-weight: 900;
  cursor: pointer;
}

button.primary {
  color: #111827;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  box-shadow: 0 18px 34px rgba(201, 164, 92, 0.22);
}

button.secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.plans {
  direction: ltr;
  display: grid;
  gap: 14px;
}

.plan-card {
  direction: ltr;
  position: relative;
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  padding: 20px 12px 12px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.plan-card.featured {
  border: 2px solid var(--orange);
  background: linear-gradient(180deg, rgba(201, 164, 92, 0.18), rgba(255, 255, 255, 0.08));
}

.ribbon {
  position: absolute;
  top: 0;
  right: auto;
  left: 16px;
  padding: 5px 13px;
  border-radius: 0 0 12px 12px;
  background: var(--orange);
  color: #111827;
  font-size: 13px;
  font-weight: 900;
}

.choice-col {
  display: grid;
  align-content: center;
  gap: 22px;
}

.choice-col label {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  align-items: center;
  gap: 7px;
  margin: 0;
  font-size: 18px;
  color: #fff;
}

select option {
  color: #111827;
  background: #fff;
}

.plan-body {
  direction: rtl;
  text-align: right;
}

.insurer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin-bottom: 10px;
}

.logo {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #111827;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  font-size: 12px;
  font-weight: 900;
}

.insurer h2 {
  margin: 0;
  font-size: 20px;
}

.price-line {
  margin: 6px 0;
  font-size: 17px;
  font-weight: 900;
}

.price-line span {
  color: #fff;
}

.price-line b {
  color: var(--blue);
}

.rating {
  color: #f5b827;
  font-size: 13px;
  font-weight: 800;
}

.desc {
  margin: 12px 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 14px;
}

.desc b {
  color: var(--gold-light);
}

.plan-next {
  width: 100%;
  min-height: 38px;
  border: 0;
  border-radius: 7px;
  color: #111827;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  font-weight: 900;
  cursor: pointer;
}

.muted {
  color: var(--muted);
  line-height: 1.5;
}

.small {
  font-size: 13px;
}

.center {
  text-align: center;
}

.addons {
  display: grid;
  gap: 16px;
  margin: 20px 0 28px;
}

.addon-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
}

.addon-row input,
.payment-option input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.addon-row b {
  color: var(--blue);
  font-weight: 800;
}

.summary-card {
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 20px 16px;
  margin-bottom: 18px;
  text-align: right;
  background: rgba(255, 255, 255, 0.08);
}

.summary-card h2 {
  margin-bottom: 20px;
  font-size: 21px;
}

.summary-card ul {
  padding: 0 20px 0 0;
  margin: 0;
  line-height: 1.8;
}

.total {
  display: block;
  margin: 18px 0 6px;
  font-size: 21px;
}

.payment-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  min-height: 86px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 12px;
  cursor: pointer;
}

.payment-option span {
  display: grid;
  gap: 7px;
}

.payment-option small {
  color: var(--muted);
  font-size: 14px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.secure {
  margin: 36px 0 22px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  text-align: center;
  font-weight: 800;
}

.policy-preview {
  position: relative;
  overflow: hidden;
  min-height: 440px;
  padding: 22px;
  border: 1px solid rgba(245, 212, 138, 0.34);
  border-radius: 28px;
  background:
    radial-gradient(circle at 20% 8%, rgba(245, 212, 138, 0.22), transparent 24%),
    radial-gradient(circle at 90% 18%, rgba(61, 219, 217, 0.16), transparent 24%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
  isolation: isolate;
}

.policy-glow {
  position: absolute;
  inset: auto -80px -90px auto;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(201, 164, 92, 0.24);
  filter: blur(8px);
  animation: breathe 3s ease-in-out infinite;
  z-index: -1;
}

.policy-head,
.policy-title,
.policy-grid,
.policy-status {
  position: relative;
  z-index: 1;
}

.policy-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px;
}

.policy-badge {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  color: #111827;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  font-size: 13px;
  font-weight: 900;
}

.policy-seal {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  color: #111827;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  font-size: 28px;
  box-shadow: 0 18px 40px rgba(201, 164, 92, 0.22);
  animation: floatSeal 2.6s ease-in-out infinite;
}

.policy-title {
  margin-bottom: 22px;
}

.policy-title small {
  display: block;
  color: var(--muted);
  font-weight: 900;
  margin-bottom: 4px;
}

.policy-title h2 {
  margin: 0;
  font-size: 26px;
  line-height: 1.35;
}

.policy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.policy-item {
  min-height: 86px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
}

.policy-item small {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.policy-item b {
  display: block;
  color: #fff;
  font-size: 15px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.policy-status {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.26);
  color: #dffce9;
  font-size: 13px;
}

.policy-status span {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 8px rgba(34, 197, 94, 0.12);
}

.policy-motion {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 14px 0 16px;
}

.policy-motion div {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 92px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  text-align: center;
}

.policy-motion span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #111827;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  font-weight: 900;
}

.policy-motion b {
  font-size: 12px;
  line-height: 1.45;
}

.policy-open-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 14px;
  margin: 16px 0;
  padding: 16px;
  border: 1px solid rgba(245, 212, 138, 0.3);
  border-radius: 24px;
  color: #101828;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 247, 223, 0.96));
  box-shadow: 0 24px 62px rgba(0, 0, 0, 0.24);
}

.policy-open-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, #0f1f33, var(--gold), var(--gold-light), #0f1f33);
}

.policy-open-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.policy-open-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 20px;
  color: var(--gold-light);
  background: #0f1f33;
  font-size: 28px;
  box-shadow: 0 16px 34px rgba(15, 31, 51, 0.2);
}

.policy-open-title strong {
  display: block;
  color: #0f172a;
  font-size: 16px;
  font-weight: 900;
}

.policy-open-title span {
  display: block;
  margin-top: 4px;
  color: #667085;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.8;
}

.policy-open-actions,
.document-actions {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.document-button {
  position: relative;
  overflow: hidden;
}

.document-button::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(110%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  animation: sheen 3s ease-in-out infinite;
}

.policy-action-pro {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transform: translateZ(0);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.policy-action-pro .btn-ico {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.policy-action-pro:hover {
  transform: translateY(-2px);
  filter: saturate(1.08);
  box-shadow: 0 18px 36px rgba(15, 31, 51, 0.18);
}

.document-modal {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: grid;
  place-items: center;
  padding: 18px;
}

.document-modal[hidden] {
  display: none;
}

.document-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 9, 18, 0.82);
  backdrop-filter: blur(18px);
}

.document-sheet-wrap {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  max-height: min(92vh, 900px);
  overflow: auto;
  padding: 18px;
  border: 1px solid rgba(245, 212, 138, 0.26);
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(12, 25, 43, 0.98), rgba(7, 17, 31, 0.98));
  box-shadow: 0 36px 100px rgba(0, 0, 0, 0.48);
  animation: documentRise 0.42s cubic-bezier(.2, .8, .2, 1);
}

.document-close {
  position: sticky;
  top: 0;
  right: 0;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 14px;
  color: #111827;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  font-size: 22px;
  font-weight: 900;
  cursor: pointer;
}

.document-sheet {
  position: relative;
  overflow: hidden;
  margin-top: 8px;
  min-height: 920px;
  border-radius: 26px;
  color: #172033;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.08);
}

.document-ribbon {
  height: 12px;
  background: linear-gradient(90deg, #0f1f33, var(--gold), var(--gold-light), #0f1f33);
}

.document-body {
  position: relative;
  z-index: 1;
  padding: 24px;
  background:
    linear-gradient(90deg, rgba(201, 164, 92, 0.12), transparent 18%, transparent 82%, rgba(201, 164, 92, 0.12)),
    radial-gradient(circle at 12% 10%, rgba(201, 164, 92, 0.1), transparent 24%),
    radial-gradient(circle at 88% 18%, rgba(61, 219, 217, 0.08), transparent 24%),
    #fff;
}

.document-watermark {
  position: absolute;
  inset: 42% auto auto 50%;
  transform: translate(-50%, -50%) rotate(-22deg);
  z-index: 0;
  color: rgba(15, 23, 42, 0.04);
  font-size: 84px;
  font-weight: 900;
  letter-spacing: 6px;
  pointer-events: none;
}

.document-header,
.document-hero,
.document-grid,
.document-note,
.document-footer {
  position: relative;
  z-index: 1;
}

.document-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 2px solid rgba(201, 164, 92, 0.36);
}

.document-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.document-logo {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(201, 164, 92, 0.45);
  border-radius: 20px;
  color: var(--gold-light);
  background: linear-gradient(135deg, #0f1f33, #1f3552);
  font-size: 30px;
  box-shadow: 0 14px 30px rgba(15, 31, 51, 0.18);
}

.document-header small {
  color: #8b6b26;
  font-weight: 900;
}

.document-header h2 {
  margin: 4px 0 0;
  font-size: 28px;
  color: #10233f;
}

.document-header p {
  margin: 4px 0 0;
  color: #667085;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.75;
}

.document-seal {
  width: 94px;
  height: 94px;
  display: grid;
  place-items: center;
  border: 2px solid var(--gold);
  border-radius: 50%;
  color: #7a5b20;
  background: radial-gradient(circle, #fff 0%, #fff7df 58%, #e7c36f 100%);
  text-align: center;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.55;
  transform: rotate(-7deg);
  box-shadow: 0 14px 32px rgba(201, 164, 92, 0.24);
}

.document-hero {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr 0.85fr;
  gap: 12px;
  margin: 22px 0;
}

.document-hero div,
.document-cell {
  padding: 13px 14px;
  border: 1px solid #e7edf4;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
}

.document-serial,
.document-hero div {
  color: var(--gold-light);
  background: #0f1f33;
  border-color: rgba(201, 164, 92, 0.32);
}

.document-hero span,
.document-cell span {
  display: block;
  margin-bottom: 7px;
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
}

.document-hero span {
  color: #cbd5e1;
}

.document-hero b,
.document-cell b {
  display: block;
  color: #10233f;
  font-size: 16px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.document-hero b {
  color: var(--gold-light);
}

.document-section {
  overflow: hidden;
  margin-top: 12px;
  border: 1px solid #e7edf4;
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.82);
}

.document-section-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  color: #0f1f33;
  background: linear-gradient(90deg, #f8fafc, #fff7df);
  border-bottom: 1px solid #e7edf4;
  font-size: 13px;
  font-weight: 900;
}

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

.document-cell {
  min-height: 70px;
  border: 0;
  border-bottom: 1px solid #eef2f6;
  border-inline-start: 1px solid #eef2f6;
  border-radius: 0;
  background: #fff;
}

.document-cell:nth-child(2n) {
  border-inline-start: 0;
}

.document-cell.highlight {
  background: #fffaf0;
}

.document-cell.highlight b {
  color: #9b762e;
  font-size: 16px;
}

.coverage-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
  background: #fff;
}

.coverage-pill {
  padding: 10px 11px;
  border: 1px solid #e7edf4;
  border-radius: 13px;
  color: #344054;
  background: #f8fafc;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.7;
}

.coverage-pill::before {
  content: "✓ ";
  color: #16a34a;
}

.document-footer-line {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed rgba(17, 24, 39, 0.28);
}

.signature-box {
  display: grid;
  gap: 7px;
  color: #475467;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.8;
}

.signature-box b {
  width: 180px;
  padding-top: 6px;
  border-top: 2px solid rgba(15, 31, 51, 0.25);
  color: #0f1f33;
}

.official-stamp {
  width: 108px;
  height: 108px;
  display: grid;
  place-items: center;
  border: 2px dashed var(--gold);
  border-radius: 50%;
  color: #8a641f;
  background: rgba(245, 212, 138, 0.13);
  text-align: center;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.55;
  transform: rotate(-8deg);
}

.document-note {
  margin-top: 18px;
  padding: 16px;
  border-radius: 18px;
  color: #725317;
  background: rgba(245, 212, 138, 0.28);
  border: 1px solid rgba(201, 164, 92, 0.24);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.8;
}

.document-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(3, 9, 18, 0.82);
  backdrop-filter: blur(18px);
}

.loading-overlay[hidden] {
  display: none;
}

.loading-card {
  width: min(100%, 520px);
  padding: 26px;
  border: 1px solid rgba(245, 212, 138, 0.26);
  border-radius: 30px;
  background:
    radial-gradient(circle at 14% 8%, rgba(201, 164, 92, 0.26), transparent 28%),
    linear-gradient(145deg, rgba(15, 31, 51, 0.96), rgba(7, 17, 31, 0.96));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
  text-align: center;
}

.loader-ring {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  border-radius: 50%;
  background:
    conic-gradient(from 0deg, var(--gold), var(--gold-light), #3ddbd9, var(--gold));
  animation: spin 1.15s linear infinite;
}

.loader-ring span {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #07111f;
  font-size: 32px;
}

.loading-card h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.loading-card p {
  color: var(--muted);
  line-height: 1.75;
  font-weight: 800;
}

.loading-bar {
  height: 12px;
  overflow: hidden;
  margin: 18px 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.loading-bar span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), #3ddbd9);
  transition: width 0.45s ease;
}

.loading-list {
  list-style: none;
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  text-align: right;
}

.loading-list li {
  padding: 10px 12px;
  border-radius: 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  font-size: 13px;
  font-weight: 900;
}

.loading-list li.is-active {
  color: #111827;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
}

.verification-page {
  min-height: 100vh;
}

.verification-topbar {
  width: min(100%, 760px);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
}

.verification-shell {
  width: min(calc(100% - 28px), 760px);
  margin: 0 auto;
  padding: 18px 0 40px;
}

.verify-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.verify-steps span {
  display: grid;
  place-items: center;
  gap: 5px;
  min-height: 72px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.07);
  font-weight: 900;
}

.verify-steps span.done,
.verify-steps span.active {
  color: #111827;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
}

.verify-steps b {
  font-size: 12px;
}

.issue-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  background:
    radial-gradient(circle at 12% 8%, rgba(201, 164, 92, 0.22), transparent 28%),
    rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
  margin-bottom: 14px;
}

.issue-orb {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 28px;
  color: #111827;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  font-size: 36px;
  box-shadow: 0 22px 44px rgba(201, 164, 92, 0.24);
  animation: floatSeal 2.6s ease-in-out infinite;
}

.issue-card h1 {
  margin: 8px 0 4px;
  font-size: 27px;
}

.issue-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
  font-weight: 800;
}

.status-panel,
.verify-panel-page {
  padding: 18px;
  border: 1px solid rgba(245, 212, 138, 0.22);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
}

.policy-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.policy-meta {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
}

.policy-meta small {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.policy-meta b {
  display: block;
  color: #fff;
  font-size: 14px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.progress-shell {
  height: 12px;
  overflow: hidden;
  margin: 16px 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.progress-bar {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), #3ddbd9);
  transition: width 0.45s ease;
}

.main-status {
  text-align: center;
  margin-bottom: 14px;
}

.main-status strong {
  display: block;
  margin-bottom: 5px;
  font-size: 19px;
}

.main-status span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.8;
}

.timeline {
  display: grid;
  gap: 10px;
}

.timeline-step {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
  transition: transform 0.22s ease, background 0.22s ease;
}

.timeline-step.active {
  transform: translateY(-1px);
  border-color: rgba(245, 212, 138, 0.34);
  background: rgba(201, 164, 92, 0.14);
}

.timeline-step.done {
  border-color: rgba(34, 197, 94, 0.3);
  background: rgba(34, 197, 94, 0.12);
}

.step-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #111827;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  font-weight: 900;
}

.step-copy strong {
  display: block;
  margin-bottom: 3px;
  font-size: 13px;
}

.step-copy span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
  font-weight: 800;
}

.step-state {
  color: var(--gold-light);
  font-size: 12px;
  font-weight: 900;
}

.verify-panel-page {
  margin-top: 14px;
  text-align: center;
  animation: fade 220ms ease;
}

.verify-panel-page[hidden] {
  display: none;
}

.verify-icon {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  border-radius: 24px;
  color: #111827;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  font-size: 28px;
  box-shadow: 0 18px 36px rgba(201, 164, 92, 0.2);
}

.verify-panel-page h2 {
  margin: 0 0 6px;
  font-size: 24px;
}

.verify-panel-page p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.8;
  font-weight: 800;
}

.field-label {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  text-align: right;
}

.otp-input {
  width: 100%;
  height: 56px;
  border: 1px solid rgba(245, 212, 138, 0.45);
  border-radius: 18px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 24px;
  font-weight: 900;
  outline: none;
}

.timer {
  margin-top: 10px;
  color: var(--gold-light);
  font-size: 13px;
  font-weight: 900;
}

.resend-box {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
}

.resend-title {
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 900;
}

.resend-btn {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.1);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
}

.resend-btn:not(:disabled) {
  color: #111827;
  cursor: pointer;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
}

.inline-message {
  display: none;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 900;
}

.inline-message.show {
  display: block;
}

.inline-message.success {
  color: #dffce9;
  border: 1px solid rgba(34, 197, 94, 0.32);
  background: rgba(34, 197, 94, 0.12);
}

.inline-message.warning {
  color: #fed7aa;
  border: 1px solid rgba(251, 146, 60, 0.32);
  background: rgba(251, 146, 60, 0.12);
}

.notice {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(251, 146, 60, 0.28);
  border-radius: 14px;
  color: #fed7aa;
  background: rgba(251, 146, 60, 0.1);
  font-size: 13px;
  font-weight: 900;
}

.link-button {
  min-height: 58px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 900;
  text-decoration: none;
}

.offer-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.65);
  z-index: 20;
}

.offer-modal[hidden] {
  display: none;
}

.offer-box {
  width: min(100%, 630px);
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.32);
  position: relative;
}

.close {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #111;
  font-size: 29px;
  line-height: 1;
  cursor: pointer;
}

.offer-hero {
  position: relative;
  min-height: 420px;
  padding: 38px 34px;
  color: #fff;
  background:
    radial-gradient(circle at 22% 40%, rgba(255, 255, 255, 0.18), transparent 23%),
    linear-gradient(135deg, #153f1c, #1d5b25 58%, #153f1c);
}

.offer-hero h2 {
  font-size: 34px;
  margin-bottom: 6px;
}

.offer-hero p {
  font-size: 24px;
}

.offer-hero strong {
  position: absolute;
  top: 88px;
  right: 70px;
  color: #ee5a4c;
  font-size: 88px;
  line-height: 1;
}

.cards-art {
  position: absolute;
  inset: auto 38px 38px 38px;
  height: 210px;
}

.cards-art span {
  position: absolute;
  width: 150px;
  height: 92px;
  border-radius: 8px;
  background: linear-gradient(140deg, #0b1510, #315d35);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.28);
}

.cards-art span:nth-child(1) {
  right: 20px;
  bottom: 18px;
  background: linear-gradient(140deg, #0e181f, #223a52);
}

.cards-art span:nth-child(2) {
  right: 190px;
  bottom: 64px;
  background: linear-gradient(140deg, #f6f1df, #d9d1bd);
}

.cards-art span:nth-child(3) {
  right: 350px;
  bottom: 22px;
  background: linear-gradient(140deg, #111, #173d26);
}

.cards-art span:nth-child(4) {
  left: 24px;
  bottom: 72px;
  background: linear-gradient(140deg, #456f32, #9fc769);
}

.cards-art span:nth-child(5) {
  left: 112px;
  bottom: 5px;
  background: linear-gradient(140deg, #686861, #1b2a1f);
}

.offer-body {
  padding: 26px 28px 20px;
  text-align: center;
}

.offer-body h3 {
  font-size: 28px;
  margin-bottom: 14px;
}

.timer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}

.timer span {
  width: 84px;
  height: 112px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #27303a;
  background: #f7b536;
  font-weight: 900;
}

.timer b {
  font-size: 36px;
}

.timer small {
  font-size: 15px;
}

.timer i {
  font-style: normal;
  font-size: 36px;
  font-weight: 900;
}

.gold {
  width: 100%;
  min-height: 48px;
  background: #f7b536;
  color: #111;
}

.toast {
  position: fixed;
  right: 50%;
  bottom: 20px;
  transform: translateX(50%);
  z-index: 30;
  max-width: min(92vw, 420px);
  padding: 12px 16px;
  border-radius: 9px;
  color: #fff;
  background: #20242c;
  text-align: center;
  font-weight: 800;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

@media (max-width: 520px) {
  body {
    background:
      radial-gradient(circle at 50% 0%, rgba(201, 164, 92, 0.22), transparent 30%),
      linear-gradient(180deg, #07111f 0%, #0b1628 55%, #07111f 100%);
  }

  .shell {
    width: 100vw;
    max-width: none;
    margin: 0;
    box-shadow: none;
  }

  .topbar {
    height: 64px;
    padding-inline: max(12px, env(safe-area-inset-left)) max(12px, env(safe-area-inset-right));
  }

  .app {
    padding: 14px max(12px, env(safe-area-inset-left)) calc(28px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-right));
  }

  .steps {
    gap: 2px;
    margin-bottom: 24px;
  }

  .step-indicator span {
    width: 26px;
    height: 26px;
    border-width: 2px;
  }

  .step-indicator b {
    font-size: clamp(9px, 2.45vw, 11px);
  }

  h1 {
    font-size: 21px;
  }

  input,
  select,
  .segmented {
    height: 50px;
  }

  .field {
    margin-bottom: 18px;
  }

  .segmented button {
    min-width: 0;
    padding-inline: 6px;
    font-size: 14px;
  }

  .plan-card {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 8px;
    padding: 18px 9px 10px;
  }

  .choice-col label {
    font-size: 15px;
  }

  .insurer h2 {
    font-size: 18px;
  }

  .price-line {
    font-size: 15px;
  }

  .desc {
    font-size: 13px;
  }

  .actions {
    gap: 8px;
  }

  button.primary,
  button.secondary {
    min-height: 54px;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .policy-preview {
    min-height: auto;
    padding: 16px;
    border-radius: 22px;
  }

  .policy-grid,
  .policy-motion {
    grid-template-columns: 1fr;
  }

  .policy-title h2 {
    font-size: 21px;
  }

  .document-actions,
  .policy-open-actions,
  .document-modal-actions,
  .document-hero,
  .document-grid,
  .coverage-list {
    grid-template-columns: 1fr;
  }

  .document-sheet-wrap {
    padding: 12px;
    border-radius: 24px;
  }

  .document-sheet {
    min-height: auto;
    padding: 20px;
    border-radius: 20px;
  }

  .document-header {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .document-brand {
    align-items: flex-start;
  }

  .document-header h2 {
    font-size: 22px;
  }

  .document-logo {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    font-size: 22px;
  }

  .document-seal {
    position: absolute;
    left: 22px;
    top: 92px;
    width: 68px;
    height: 68px;
    font-size: 9px;
    opacity: 0.92;
  }

  .document-cell {
    border-inline-start: 0;
  }

  .document-footer-line {
    display: grid;
    grid-template-columns: 1fr auto;
  }

  .official-stamp {
    width: 78px;
    height: 78px;
    font-size: 9px;
  }

  .document-watermark {
    font-size: 42px;
  }

  .loading-card {
    padding: 20px;
    border-radius: 24px;
  }

  .verification-topbar {
    width: 100%;
  }

  .verification-shell {
    width: min(calc(100% - 16px), 760px);
  }

  .verify-steps {
    gap: 5px;
  }

  .verify-steps span {
    min-height: 62px;
    border-radius: 14px;
    font-size: 13px;
  }

  .issue-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 16px;
    border-radius: 22px;
  }

  .issue-orb {
    margin: 0 auto;
  }

  .policy-strip,
  .timeline-step {
    grid-template-columns: 1fr;
  }

  .timeline-step {
    text-align: center;
  }

  .step-icon {
    margin: 0 auto;
  }

  .offer-hero {
    min-height: 310px;
    padding: 30px 24px;
  }

  .offer-hero h2 {
    font-size: 25px;
  }

  .offer-hero p {
    font-size: 18px;
  }

  .offer-hero strong {
    top: 92px;
    right: 24px;
    font-size: 58px;
  }

  .cards-art {
    transform: scale(0.75);
    transform-origin: bottom center;
    right: -32px;
    left: -32px;
  }
}

@keyframes breathe {
  0%, 100% {
    transform: scale(0.94);
    opacity: 0.64;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@keyframes floatSeal {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-7px) rotate(-3deg);
  }
}

@keyframes sheen {
  0%, 45% {
    transform: translateX(110%);
  }
  70%, 100% {
    transform: translateX(-110%);
  }
}

@keyframes documentRise {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

@media (max-width: 380px) {
  .brand {
    font-size: 22px;
  }

  .login {
    font-size: 14px;
  }

  .plan-card {
    grid-template-columns: 1fr;
  }

  .choice-col {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    order: 2;
  }

  .choice-col label {
    justify-content: center;
  }
}

/* =========================================================
   Upgrade: Luxury official policy preview inside the form
   Inspired by the reference file, adapted safely to current IDs
   ========================================================= */
.policy-preview-pro {
  margin-top: 12px;
  min-height: auto;
  padding: 0 !important;
  border-radius: 28px !important;
  color: #111827 !important;
  background: #fff !important;
  border: 1px solid rgba(17, 24, 39, 0.12) !important;
  box-shadow: 0 30px 82px rgba(7, 17, 31, 0.34) !important;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.policy-preview-pro::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(201, 164, 92, 0.18), transparent 18%, transparent 82%, rgba(201, 164, 92, 0.14)),
    radial-gradient(circle at 14% 10%, rgba(245, 212, 138, 0.22), transparent 24%),
    radial-gradient(circle at 88% 18%, rgba(61, 219, 217, 0.10), transparent 24%);
}

.policy-ribbon {
  position: relative;
  z-index: 1;
  height: 12px;
  background: linear-gradient(90deg, #0f1f33, var(--gold), var(--gold-light), #0f1f33);
}

.policy-watermark {
  position: absolute;
  left: 18px;
  top: 42%;
  z-index: 0;
  transform: rotate(-20deg);
  color: rgba(15, 31, 51, 0.045);
  font-size: 72px;
  font-weight: 900;
  letter-spacing: 7px;
  pointer-events: none;
}

.policy-body-pro {
  position: relative;
  z-index: 1;
  padding: 22px;
}

.policy-head-pro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding-bottom: 16px;
  margin-bottom: 14px;
  border-bottom: 2px solid rgba(201, 164, 92, 0.32);
}

.policy-brand-pro {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.policy-logo-pro {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 20px;
  color: var(--gold-light);
  background: linear-gradient(135deg, #0f1f33, #1f3552);
  border: 1px solid rgba(201, 164, 92, 0.45);
  font-size: 30px;
  box-shadow: 0 14px 30px rgba(15, 31, 51, 0.18);
}

.policy-title-pro small {
  display: block;
  color: #8b6b26;
  font-weight: 900;
  margin-bottom: 3px;
}

.policy-title-pro h2 {
  margin: 0;
  color: #10233f;
  font-size: 25px;
  line-height: 1.35;
}

.policy-title-pro p {
  margin: 4px 0 0;
  color: #667085;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.7;
}

.policy-seal-pro {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #7a5b20;
  background: radial-gradient(circle, #fff 0%, #fff7df 58%, #e7c36f 100%);
  border: 2px solid var(--gold);
  text-align: center;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.5;
  transform: rotate(-7deg);
  box-shadow: 0 14px 32px rgba(201, 164, 92, 0.24);
}

.policy-meta-pro {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr 0.85fr;
  gap: 10px;
  margin-bottom: 12px;
}

.policy-meta-box {
  padding: 12px 13px;
  border-radius: 16px;
  color: var(--gold-light);
  background: #0f1f33;
  border: 1px solid rgba(201, 164, 92, 0.32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.policy-meta-box span {
  display: block;
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 900;
  margin-bottom: 5px;
}

.policy-meta-box b {
  display: block;
  color: var(--gold-light);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.5;
  direction: ltr;
  text-align: right;
}

.policy-section-pro {
  overflow: hidden;
  margin-top: 12px;
  border: 1px solid #e7edf4;
  border-radius: 20px;
  background: rgba(248, 250, 252, 0.82);
}

.policy-section-pro .policy-section-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  color: #0f1f33;
  background: linear-gradient(90deg, #f8fafc, #fff7df);
  border-bottom: 1px solid #e7edf4;
  font-size: 13px;
  font-weight: 900;
}

.policy-grid-pro {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0 !important;
  background: #fff;
}

.policy-grid-pro .policy-item {
  min-height: 72px;
  padding: 13px 14px;
  border: 0 !important;
  border-bottom: 1px solid #eef2f6 !important;
  border-inline-start: 1px solid #eef2f6 !important;
  border-radius: 0 !important;
  background: #fff !important;
}

.policy-grid-pro .policy-item:nth-child(2n) {
  border-inline-start: 0 !important;
}

.policy-grid-pro .policy-item small {
  display: block;
  margin-bottom: 6px;
  color: #64748b !important;
  font-size: 12px;
  font-weight: 900;
}

.policy-grid-pro .policy-item b {
  display: block;
  color: #10233f !important;
  font-size: 15px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.policy-grid-pro .policy-item:last-child,
.policy-grid-pro .policy-item:nth-last-child(2) {
  background: #fffaf0 !important;
}

.policy-grid-pro .policy-item:last-child b,
.policy-grid-pro .policy-item:nth-last-child(2) b {
  color: #9b762e !important;
  font-size: 16px;
}

.policy-trust-note {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
  padding: 13px 14px;
  border-radius: 18px;
  color: #166534;
  background: #ecfdf3;
  border: 1px solid #bbf7d0;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.8;
}

.policy-trust-note span {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 8px rgba(34, 197, 94, 0.12);
}

/* Modal: same idea as reference, cleaner and easier on mobile */
.document-sheet-wrap-pro {
  overflow: hidden !important;
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 28px) !important;
  padding: 0 !important;
  border-radius: 30px !important;
  border: 1px solid rgba(245, 212, 138, 0.30) !important;
  background: linear-gradient(145deg, rgba(12, 25, 43, 0.98), rgba(7, 17, 31, 0.98)) !important;
}

.document-modal-top {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  color: #fff;
  background: linear-gradient(135deg, #07111f, #10223b);
  border-bottom: 1px solid rgba(245, 212, 138, 0.22);
}

.document-modal-top strong {
  font-size: 15px;
  font-weight: 900;
}

.document-modal-top span {
  color: var(--gold-light);
  font-size: 12px;
  font-weight: 800;
}

.document-modal-top .document-close {
  position: static !important;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  color: #fff !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
}

.document-sheet-pro {
  margin-top: 0 !important;
  border-radius: 0 !important;
  max-height: calc(100dvh - 150px);
  overflow: auto !important;
  -webkit-overflow-scrolling: touch;
}

.document-sheet-pro .document-body {
  padding: 22px;
}

.document-sheet-pro .document-note {
  color: #166534;
  background: #ecfdf3;
  border-color: #bbf7d0;
}

.document-modal-actions {
  flex: 0 0 auto;
  padding: 12px 16px 16px;
  margin-top: 0 !important;
  background: rgba(7, 17, 31, 0.98);
  border-top: 1px solid rgba(245, 212, 138, 0.18);
}

@media (max-width: 760px) {
  .policy-body-pro { padding: 14px; }
  .policy-watermark { display: none; }
  .policy-head-pro { grid-template-columns: 1fr; text-align: right; }
  .policy-brand-pro { align-items: flex-start; }
  .policy-logo-pro { width: 50px; height: 50px; border-radius: 17px; font-size: 23px; }
  .policy-title-pro h2 { font-size: 20px; }
  .policy-title-pro p { font-size: 11px; }
  .policy-seal-pro {
    position: absolute;
    left: 14px;
    top: 76px;
    width: 66px;
    height: 66px;
    font-size: 9px;
    opacity: 0.92;
  }
  .policy-meta-pro { grid-template-columns: 1fr; }
  .policy-grid-pro { grid-template-columns: 1fr !important; }
  .policy-grid-pro .policy-item,
  .policy-grid-pro .policy-item:nth-child(2n) { border-inline-start: 0 !important; }
  .policy-open-actions { grid-template-columns: 1fr !important; }
  .document-modal { padding: 8px !important; place-items: end center !important; }
  .document-sheet-wrap-pro { width: 100% !important; height: calc(100dvh - 12px); border-radius: 28px 28px 0 0 !important; }
  .document-sheet-pro { max-height: calc(100dvh - 148px); }
  .document-sheet-pro .document-body { padding: 14px; }
  .document-modal-actions { grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
  .policy-body-pro { padding: 11px; }
  .policy-logo-pro { width: 44px; height: 44px; }
  .policy-title-pro h2 { font-size: 18px; }
  .policy-seal-pro { display: none; }
  .policy-meta-box b { font-size: 13px; }
  .policy-grid-pro .policy-item b { font-size: 14px; }
  .policy-trust-note { font-size: 12px; align-items: flex-start; }
}


/* ===== Investor demo checkout upgrade - visual layer only, keeps original IDs and validation ===== */
.checkout-pro{position:relative;overflow:hidden;display:grid;gap:14px;margin-bottom:18px;padding:16px;border:1px solid rgba(245,212,138,.24);border-radius:30px;background:radial-gradient(circle at 16% 8%,rgba(245,212,138,.18),transparent 28%),linear-gradient(145deg,rgba(255,255,255,.13),rgba(255,255,255,.07));box-shadow:0 28px 82px rgba(0,0,0,.28);isolation:isolate}
.checkout-pro::before{content:"";position:absolute;inset:0 0 auto;height:5px;background:linear-gradient(90deg,#0f1f33,var(--gold),var(--gold-light),#3ddbd9,#0f1f33)}
.checkout-hero-pro{position:relative;z-index:1;display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:center;padding:14px;border:1px solid rgba(245,212,138,.22);border-radius:24px;background:linear-gradient(135deg,rgba(15,31,51,.98),rgba(19,43,75,.95))}
.checkout-lock-pro{width:50px;height:50px;display:grid;place-items:center;border-radius:18px;color:#07111f;background:linear-gradient(135deg,var(--gold),var(--gold-light));font-size:22px;box-shadow:0 14px 32px rgba(201,164,92,.26);animation:floatSeal 2.8s ease-in-out infinite}
.checkout-hero-pro strong{display:block;color:#fff;font-size:17px;font-weight:900}.checkout-hero-pro span{display:block;margin-top:3px;color:#cbd5e1;font-size:12px;font-weight:800;line-height:1.75}
.checkout-price-pro{min-width:92px;padding:10px 12px;border:1px solid rgba(245,212,138,.22);border-radius:17px;color:var(--gold-light);background:rgba(245,212,138,.1);font-weight:900;text-align:center;white-space:nowrap}
.checkout-methods-pro{position:relative;z-index:1;display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.checkout-method-pro{min-height:62px;display:grid;place-items:center;gap:4px;padding:10px;border:1px solid rgba(255,255,255,.13);border-radius:20px;background:rgba(255,255,255,.08);color:#e5e7eb;text-align:center;font-weight:900}.checkout-method-pro span{color:var(--gold-light);font-size:20px;line-height:1}.checkout-method-pro b{font-size:12px}.checkout-method-pro.is-active{border-color:rgba(245,212,138,.42);background:rgba(245,212,138,.14);box-shadow:0 14px 30px rgba(201,164,92,.13)}
.secure-card-shell-pro{position:relative;z-index:1;display:grid;grid-template-columns:.95fr 1.05fr;gap:13px;align-items:stretch}
.mock-card-preview-pro{position:relative;overflow:hidden;min-height:230px;display:flex;flex-direction:column;justify-content:space-between;padding:18px;border:1px solid rgba(245,212,138,.28);border-radius:30px;color:#fff;background:radial-gradient(circle at 16% 20%,rgba(245,212,138,.35),transparent 28%),radial-gradient(circle at 90% 82%,rgba(61,219,217,.18),transparent 30%),linear-gradient(135deg,#07111f,#0f1f33 56%,#5b431a);box-shadow:0 24px 60px rgba(0,0,0,.26)}
.mock-card-preview-pro::after{content:"";position:absolute;width:170px;height:170px;right:-62px;bottom:-68px;border-radius:50%;background:rgba(245,212,138,.13)}.mock-card-shine{position:absolute;inset:0;transform:translateX(110%);background:linear-gradient(115deg,transparent 0%,rgba(255,255,255,.16) 42%,transparent 70%);animation:sheen 3.6s ease-in-out infinite}
.mock-card-top-pro,.mock-card-bottom-pro,.mock-card-number-pro,.mock-card-chip-pro{position:relative;z-index:1}.mock-card-top-pro,.mock-card-bottom-pro{display:flex;align-items:center;justify-content:space-between;gap:14px;font-weight:900}.mock-card-top-pro b{color:var(--gold-light);letter-spacing:1px}
.mock-card-chip-pro{width:48px;height:34px;border-radius:10px;background:linear-gradient(90deg,rgba(255,255,255,.24),transparent 45%),linear-gradient(135deg,#d7b46b,#fff1b8);box-shadow:inset 0 0 0 1px rgba(17,24,39,.16)}
.mock-card-number-pro{direction:ltr;text-align:left;font-family:"IBM Plex Sans Arabic","Cairo",monospace;font-size:22px;font-weight:900;letter-spacing:2px}.mock-card-bottom-pro small{display:block;margin-bottom:4px;color:rgba(255,255,255,.58);font-size:10px;font-weight:900}.mock-card-bottom-pro b{display:block;max-width:190px;overflow:hidden;color:#fff;font-size:12px;text-overflow:ellipsis;white-space:nowrap}
.payment-fields-pro{padding:14px;border:1px solid rgba(255,255,255,.13);border-radius:26px;background:rgba(255,255,255,.07)}.payment-fields-pro .field{margin-bottom:14px}.payment-fields-pro .field:last-child,.payment-fields-pro .split .field{margin-bottom:0}
.checkout-trust-grid{position:relative;z-index:1;display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.checkout-trust-grid div{display:flex;align-items:center;justify-content:center;gap:7px;min-height:48px;padding:9px;border:1px solid rgba(34,197,94,.2);border-radius:17px;color:#dffce9;background:rgba(34,197,94,.1);text-align:center;font-size:12px;font-weight:900}.checkout-trust-grid span{width:22px;height:22px;display:grid;place-items:center;flex:0 0 auto;border-radius:50%;color:#07111f;background:#22c55e;font-weight:900}
.secure-pro{margin-top:12px;border-color:rgba(34,197,94,.22);border-radius:20px;color:#dffce9;background:rgba(34,197,94,.1)}.btn-pay-pro{position:relative;overflow:hidden;border-radius:16px!important}.btn-pay-pro::after{content:"";position:absolute;inset:0;transform:translateX(110%);background:linear-gradient(90deg,transparent,rgba(255,255,255,.28),transparent);animation:sheen 3s ease-in-out infinite}
@media (max-width:760px){.checkout-pro{padding:13px;border-radius:26px}.checkout-hero-pro{grid-template-columns:auto 1fr;border-radius:22px}.checkout-price-pro{grid-column:1/-1;width:100%}.checkout-methods-pro,.secure-card-shell-pro,.checkout-trust-grid{grid-template-columns:1fr}.mock-card-preview-pro{min-height:190px;border-radius:26px}.mock-card-number-pro{font-size:18px}.payment-fields-pro{border-radius:22px}}
@media (max-width:430px){.checkout-pro{padding:10px;border-radius:22px}.checkout-lock-pro{width:42px;height:42px;border-radius:15px;font-size:19px}.checkout-hero-pro strong{font-size:15px}.checkout-hero-pro span{font-size:11px}.mock-card-preview-pro{min-height:170px;padding:15px}.mock-card-number-pro{font-size:15px;letter-spacing:1px}.mock-card-bottom-pro{align-items:flex-end}}

/* ===== Final checkout polish: responsive professional payment UI ===== */
.checkout-pro{
  gap:16px !important;
  padding:18px !important;
  border-radius:32px !important;
}
.checkout-hero-pro{
  grid-template-columns:52px minmax(0,1fr) minmax(92px,auto) !important;
  gap:12px !important;
  overflow:hidden;
}
.checkout-lock-pro{
  width:52px !important;
  height:52px !important;
  min-width:52px !important;
  border-radius:18px !important;
  font-size:22px !important;
}
.checkout-hero-pro > div:nth-child(2){min-width:0;}
.checkout-hero-pro strong,
.checkout-hero-pro span{
  overflow-wrap:anywhere;
}
.checkout-price-pro{
  min-width:96px !important;
  max-width:150px;
  overflow:hidden;
  text-overflow:ellipsis;
}
.checkout-methods-pro{
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
}
.checkout-method-pro{
  min-width:0;
  min-height:70px !important;
  padding:10px 8px !important;
  border-radius:20px !important;
  overflow:hidden;
}
.checkout-method-pro span{
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  margin-inline:auto;
  border-radius:50%;
  background:rgba(245,212,138,.12);
  border:1px solid rgba(245,212,138,.18);
  font-size:18px !important;
  line-height:1 !important;
}
.checkout-method-pro b{
  display:block;
  width:100%;
  color:#fff;
  font-size:12px !important;
  line-height:1.35;
  overflow-wrap:anywhere;
}
.checkout-method-pro.is-active b{color:var(--gold-light);}
.secure-card-shell-pro{
  grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr) !important;
  align-items:stretch;
  gap:14px !important;
}
.mock-card-preview-pro{
  min-width:0;
  min-height:238px !important;
  padding:20px !important;
  border-radius:30px !important;
}
.mock-card-top-pro,
.mock-card-bottom-pro{
  min-width:0;
}
.mock-card-top-pro span,
.mock-card-top-pro b,
.mock-card-bottom-pro b{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.mock-card-number-pro{
  width:100%;
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:20px !important;
  letter-spacing:1.5px !important;
}
.payment-fields-pro{
  min-width:0;
  display:grid;
  align-content:center;
  gap:0;
  padding:14px !important;
  border-radius:26px !important;
}
.payment-fields-pro .field{
  margin-bottom:16px !important;
}
.payment-fields-pro .split .field{
  margin-bottom:0 !important;
}
.checkout-trust-grid{
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
}
.checkout-trust-grid div{
  min-width:0;
  min-height:54px !important;
  padding:10px 8px !important;
  line-height:1.45;
}
.checkout-trust-grid b{
  min-width:0;
  overflow-wrap:anywhere;
}
.secure-pro{
  border-radius:20px !important;
  background:rgba(34,197,94,.10) !important;
  border-color:rgba(34,197,94,.24) !important;
  color:#dffce9 !important;
  line-height:1.8;
}

@media (max-width:760px){
  .checkout-pro{
    padding:14px !important;
    border-radius:26px !important;
    gap:13px !important;
  }
  .checkout-hero-pro{
    grid-template-columns:46px minmax(0,1fr) !important;
    padding:13px !important;
    border-radius:22px !important;
  }
  .checkout-lock-pro{
    width:46px !important;
    height:46px !important;
    min-width:46px !important;
    font-size:20px !important;
  }
  .checkout-price-pro{
    grid-column:1/-1;
    width:100%;
    max-width:none;
    min-width:0 !important;
    padding:11px 12px;
  }
  .checkout-methods-pro{
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    gap:7px !important;
  }
  .checkout-method-pro{
    min-height:76px !important;
    padding:8px 5px !important;
    border-radius:17px !important;
  }
  .checkout-method-pro span{
    width:30px;
    height:30px;
    font-size:16px !important;
  }
  .checkout-method-pro b{
    font-size:10.5px !important;
    line-height:1.35;
  }
  .secure-card-shell-pro{
    grid-template-columns:1fr !important;
    gap:12px !important;
  }
  .mock-card-preview-pro{
    min-height:188px !important;
    padding:16px !important;
    border-radius:24px !important;
  }
  .mock-card-number-pro{
    font-size:17px !important;
    letter-spacing:1px !important;
  }
  .payment-fields-pro{
    padding:12px !important;
    border-radius:22px !important;
  }
  .checkout-trust-grid{
    grid-template-columns:1fr !important;
    gap:8px !important;
  }
  .checkout-trust-grid div{
    justify-content:flex-start !important;
    text-align:right !important;
    min-height:46px !important;
    padding:10px 12px !important;
  }
}

@media (max-width:430px){
  .checkout-pro{
    padding:10px !important;
    border-radius:22px !important;
  }
  .checkout-hero-pro{
    grid-template-columns:42px minmax(0,1fr) !important;
    gap:9px !important;
    padding:11px !important;
  }
  .checkout-lock-pro{
    width:42px !important;
    height:42px !important;
    min-width:42px !important;
    border-radius:15px !important;
    font-size:18px !important;
  }
  .checkout-hero-pro strong{font-size:14px !important;}
  .checkout-hero-pro span{font-size:10.5px !important;line-height:1.65;}
  .checkout-methods-pro{
    grid-template-columns:1fr !important;
  }
  .checkout-method-pro{
    min-height:48px !important;
    grid-template-columns:auto 1fr;
    justify-content:start;
    place-items:center start;
    text-align:right;
    gap:9px;
    padding:8px 11px !important;
  }
  .checkout-method-pro span{
    margin:0;
  }
  .checkout-method-pro b{
    font-size:12px !important;
  }
  .mock-card-preview-pro{
    min-height:168px !important;
    padding:14px !important;
  }
  .mock-card-chip-pro{
    width:42px !important;
    height:29px !important;
  }
  .mock-card-number-pro{
    font-size:14px !important;
    letter-spacing:.6px !important;
  }
  .mock-card-bottom-pro{
    gap:8px !important;
  }
  .mock-card-bottom-pro small{font-size:9px !important;}
  .mock-card-bottom-pro b{font-size:10.5px !important;max-width:130px !important;}
  .payment-fields-pro .split{
    grid-template-columns:1fr !important;
    gap:0 !important;
  }
  .payment-fields-pro .split .field{
    margin-bottom:16px !important;
  }
}
