:root {
  --bg-0: #faf7ef;
  --bg-1: #f7f3eb;
  --bg-2: #fffefa;
  --bg-3: #29251e;
  --border: #e8e0d2;
  --border-hover: #d6c5a9;
  --text: #27231d;
  --muted: #736a5e;
  --dim: #928779;
  --gold: #df891f;
  --gold-2: #f4ad2c;
  --gold-3: #a94f19;
  --green: #36845c;
  --red: #b54735;
}

body { background: #faf7ef; color: var(--text); }
.bg-ambient {
  background:
    radial-gradient(ellipse 45% 34% at 8% 0%, rgba(245,190,125,.2), transparent 72%),
    radial-gradient(ellipse 42% 34% at 100% 34%, rgba(239,218,179,.18), transparent 72%),
    #faf7ef;
}
.bg-grain { display: none; }
.container { max-width: 1240px; padding-inline: 32px; }
header.nav {
  padding: 10px 0;
  border-bottom: 1px solid #e9e1d4;
  background: rgba(255,254,250,.88);
  backdrop-filter: blur(16px);
}
.nav-inner { min-height: 48px; }
.logo img { display: block; filter: none !important; }
.nav-btn {
  color: #625a4f;
  border-color: #dfd6c7;
  background: rgba(255,255,255,.72);
}
.nav-btn:hover { color: #99551b; border-color: #d1a36a; background: #fffaf0; }
.progress-strip { display: none; }
section.header.checkout-heading { padding: 38px 0 22px; text-align: start; }
.checkout-heading .container { max-width: 824px; }
.header-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 5px 10px;
  color: #94551c;
  border: 1px solid #ead7b9;
  border-radius: 999px;
  background: rgba(255,253,247,.82);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.header-eyebrow .badge-check { width: 7px; height: 7px; background: #d98524; background-image: none; }
h1 {
  margin-bottom: 8px;
  color: #29241e;
  font-size: clamp(30px, 4vw, 42px);
  letter-spacing: -.035em;
  line-height: 1.08;
}
h1 .italic {
  background: linear-gradient(180deg,#e89a35,#a9521b);
  -webkit-background-clip: text;
  background-clip: text;
}
.header-sub { max-width: 580px; margin: 0; color: #756c60; font-size: 14px; line-height: 1.6; }
section.checkout-flow-section { padding: 0 0 68px; }
.checkout-flow { max-width: 824px; margin: 0 auto; }
.account-bar {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 12px;
  padding: 10px 13px;
  border: 1px solid #e8e0d2;
  border-radius: 13px;
  background: rgba(255,254,250,.88);
}
.avatar {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: linear-gradient(145deg,#cf7928,#eaa63d);
  font-size: 13px;
  font-weight: 800;
}
.account-info { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 1px; }
.account-label { color: #82796d; font-size: 9px; letter-spacing: .04em; }
.account-email { overflow: hidden; color: #3a342c; font-size: 12px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.account-switch { padding: 6px 8px; color: #a65b19; border-radius: 8px; font-size: 11px; text-decoration: none; }
.account-switch:hover { background: #f9eddb; }
.flow-step {
  overflow: hidden;
  margin-bottom: 11px;
  border: 1px solid #e6dfd3;
  border-radius: 16px;
  background: rgba(255,254,250,.97);
  box-shadow: 0 8px 22px rgba(68,51,28,.045);
  transition: border-color .2s, box-shadow .2s;
}
.flow-step.is-open { border-color: #dfbb86; box-shadow: 0 10px 28px rgba(68,51,28,.07); }
.flow-step.is-locked { background: rgba(255,254,250,.62); box-shadow: none; }
.step-trigger {
  display: grid;
  width: 100%;
  grid-template-columns: 34px minmax(0,1fr) 20px;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  color: var(--text);
  border: 0;
  background: transparent;
  font-family: inherit;
  text-align: start;
  cursor: pointer;
}
.step-trigger[disabled] { color: #958c80; cursor: not-allowed; }
.step-index {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  color: #9c5a1a;
  border: 1px solid #e9d5b7;
  border-radius: 50%;
  background: #fff5e4;
  font-family: 'JetBrains Mono',monospace;
  font-size: 11px;
  font-weight: 700;
}
.flow-step.is-complete .step-index { color: #fff; border-color: #538468; background: #538468; }
.step-copy { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.step-copy strong { color: #302a23; font-size: 15px; font-weight: 700; }
.step-copy small { overflow: hidden; color: #81776b; font-size: 11px; font-weight: 450; text-overflow: ellipsis; white-space: nowrap; }
.step-trigger[disabled] .step-copy strong { color: #847c71; }
.step-chevron { width: 18px; height: 18px; fill: none; stroke: #8f8374; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; transition: transform .2s; }
.step-trigger[aria-expanded="true"] .step-chevron { transform: rotate(180deg); }
.step-trigger[disabled] .step-chevron { opacity: .45; }
.step-panel { padding: 0 18px 18px; animation: reveal-panel .25s ease both; }
.step-panel[hidden] { display: none; }
@keyframes reveal-panel { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
.plans { display: flex; flex-direction: column; gap: 8px; margin: 2px 0 13px; }
.plan {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0,1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border: 1px solid #e9e2d7;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color .18s, background .18s, box-shadow .18s;
}
.plan:hover { border-color: #d7b27e; background: #fffdfa; }
.plan input[type="radio"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.plan-radio { width: 18px; height: 18px; border: 1.5px solid #c8bdae; border-radius: 50%; background: #fff; }
.plan input:checked + .plan-radio { border-color: #d8811c; box-shadow: inset 0 0 0 4px #fff; background: #d8811c; }
.plan:has(input:checked) { border-color: #dfa04f; background: linear-gradient(110deg,#fff8ea,#fffefa 75%); box-shadow: 0 0 0 1px rgba(223,137,31,.22); }
.plan-info { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.plan-name { display: flex; align-items: center; gap: 8px; color: #2c2721; font-size: 14px; font-weight: 700; }
.plan-tag { padding: 2px 7px; color: #875018; border: 1px solid #efd6ae; border-radius: 999px; background: #fff1d7; font-size: 9px; font-weight: 650; white-space: nowrap; }
.plan-desc { overflow: hidden; color: #81776b; font-size: 10px; line-height: 1.4; text-overflow: ellipsis; }
.plan-price { display: flex; flex-direction: column; text-align: end; white-space: nowrap; }
.plan-amount { color: #2e2923; font-size: 17px; font-weight: 750; letter-spacing: -.02em; }
.plan:has(input:checked) .plan-amount { color: #a95b18; }
.plan-amount .cur { margin-inline-start: 4px; color: #847a6d; font-size: 9px; font-weight: 500; }
.plan-unit { color: #8c8377; font-size: 9px; }
.btn-submit {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 11px;
  padding: 12px 16px;
  color: #2d2115;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(180deg,#ffc550,#eea02a);
  box-shadow: 0 3px 0 #bd7420, 0 7px 15px rgba(183,112,29,.11);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .18s, box-shadow .18s, background .18s;
}
.btn-submit:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 3px 0 #bd7420, 0 9px 18px rgba(183,112,29,.17); }
.btn-submit:disabled { color: #92897d; background: #e9e4da; box-shadow: none; cursor: not-allowed; transform: none; }
.btn-submit svg { width: 16px; height: 16px; flex: 0 0 auto; }
body[dir="rtl"] .btn-submit svg { transform: rotate(180deg); }
.order-mini {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto auto;
  align-items: center;
  gap: 16px;
  margin: 1px 0 18px;
  padding: 12px 14px;
  border: 1px solid #ebe3d6;
  border-radius: 12px;
  background: #f8f5ee;
}
.order-plan, .order-total { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.order-plan > span, .order-total > span { color: #786f63; font-size: 10px; }
.order-plan strong { overflow: hidden; color: #3b352d; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.order-total strong { color: #9e5317; font-size: 17px; white-space: nowrap; }
.order-total .cur { margin-inline-start: 4px; color: #776d61; font-size: 9px; font-weight: 600; }
.change-plan { padding: 5px 0; color: #a65b19; border: 0; border-bottom: 1px solid #dcb681; background: none; font: inherit; font-size: 10px; cursor: pointer; white-space: nowrap; }
.payment-instruction { margin: 0 0 10px; color: #62594d; font-size: 12px; font-weight: 650; }
.method-options { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 12px; }
.method-opt {
  position: relative;
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid #e9e2d7;
  border-radius: 12px;
  background: #fff;
  text-align: start;
  cursor: pointer;
  transition: border-color .18s, background .18s, box-shadow .18s;
}
.method-opt:hover { border-color: #d7b27e; background: #fffdfa; }
.method-opt input[type="radio"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.method-opt:has(input:checked) { border-color: #dba15b; background: #fff9ed; box-shadow: 0 0 0 1px rgba(223,137,31,.14); }
.method-opt-icon { display: grid; width: 32px; height: 32px; flex: 0 0 32px; place-items: center; color: #a9621e; border: 1px solid #eedbbf; border-radius: 9px; background: #fff5e5; }
.method-opt:has(input:checked) .method-opt-icon { color: #fff; border-color: #db912f; background: linear-gradient(145deg,#e49a35,#c97520); }
.method-opt-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.method-copy { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 2px; }
.method-copy b { color: #342e26; font-size: 11px; font-weight: 700; }
.method-copy > span { color: #82796d; font-size: 9px; line-height: 1.3; }
.method-radio { width: 15px; height: 15px; flex: 0 0 15px; border: 1.5px solid #c8bdae; border-radius: 50%; background: #fff; }
.method-opt:has(input:checked) .method-radio { border: 4px solid #d8811c; }
.gateway-notice { display: flex; align-items: flex-start; gap: 9px; margin: 0 0 13px; padding: 10px 12px; border: 1px solid #eee6d8; border-radius: 10px; background: #fbf8f1; }
.gateway-dot { width: 7px; height: 7px; flex: 0 0 7px; margin-top: 5px; border-radius: 50%; background: #d98524; }
.gateway-notice strong, .gateway-notice small { display: block; }
.gateway-notice strong { color: #66533d; font-size: 10px; font-weight: 650; }
.gateway-notice small { margin-top: 2px; color: #837a6e; font-size: 9px; }
.transfer-box { margin: 0 0 13px; padding: 9px 13px; border: 1px solid #ead9bd; border-radius: 11px; background: #fff8eb; }
.transfer-heading { padding: 1px 0 5px; color: #66533d; font-size: 10px; font-weight: 700; }
.transfer-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 11px; }
.transfer-row + .transfer-row { border-top: 1px solid #eddfc9; }
.transfer-label { flex: 0 0 auto; color: #756b5d; font-size: 10px; }
.transfer-value { display: flex; min-width: 0; align-items: center; gap: 7px; color: #8e5119; font-family: 'JetBrains Mono',monospace; font-size: 11px; font-weight: 700; }
.transfer-value > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy-btn { display: grid; width: 24px; height: 24px; flex: 0 0 24px; place-items: center; color: #915219; border: 1px solid #e9d1ac; border-radius: 6px; background: #fff; cursor: pointer; }
.copy-btn:hover { color: #fff; background: #d98524; }
.copy-btn.copied { color: #fff; border-color: #36845c; background: #36845c; }
.copy-btn svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; }
.transfer-hint { margin-top: 4px; padding-top: 7px; border-top: 1px solid #eddfc9; color: #756b5d; font-size: 9px; line-height: 1.45; }
.field { margin-bottom: 10px; }
.field label { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 5px; color: #544b40; font-size: 10px; font-weight: 650; }
.field label .req { color: #c46d20; }
.field label .opt { color: #887f73; font-size: 10px; font-weight: 450; }
.field-input { width: 100%; padding: 10px 12px; color: #29241e; border: 1px solid #ded6c8; border-radius: 9px; background: #fff; font-family: inherit; font-size: 12px; }
.field-input::placeholder { color: #aaa094; }
.field-input:focus { outline: none; border-color: #d58a34; background: #fffefa; box-shadow: 0 0 0 3px rgba(223,137,31,.12); }
.field-hint { display: block; margin-top: 4px; color: #887f73; font-size: 9px; }
.security-note { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 10px; color: #82796d; font-size: 9px; text-align: center; }
.security-note svg { width: 12px; height: 12px; flex: 0 0 12px; color: #4c8665; fill: none; stroke: currentColor; stroke-width: 2; }
.toast { color: #332d25; border-color: #e5ddcf; background: #fffefa; box-shadow: 0 12px 35px rgba(68,51,28,.16); }
.toast svg { color: #36845c; }

body[dir="rtl"] .plan-price, body[dir="rtl"] .order-total { text-align: start; }
body[dir="rtl"] .transfer-value { direction: ltr; }
body[dir="rtl"] .account-label { text-align: start; }

@media (max-width: 640px) {
  .container { padding-inline: 18px; }
  header.nav { padding: 7px 0; }
  .nav-inner { min-height: 44px; }
  .logo img { height: 29px !important; }
  .nav-btn { padding: 7px 11px; font-size: 11px; }
  section.header.checkout-heading { padding: 27px 0 16px; }
  h1 { font-size: clamp(28px,7vw,35px); }
  .header-sub { font-size: 12px; }
  section.checkout-flow-section { padding-bottom: 38px; }
  .account-bar { margin-bottom: 9px; padding: 9px 10px; }
  .step-trigger { grid-template-columns: 31px minmax(0,1fr) 18px; gap: 9px; padding: 13px 12px; }
  .step-index { width: 29px; height: 29px; }
  .step-copy strong { font-size: 13px; }
  .step-copy small { font-size: 10px; }
  .step-panel { padding: 0 11px 13px; }
  .plan { grid-template-columns: 17px minmax(0,1fr) auto; gap: 8px; padding: 10px 9px; }
  .plan-name { font-size: 12px; }
  .plan-desc { font-size: 9px; }
  .plan-amount { font-size: 15px; }
  .plan-amount .cur { font-size: 8px; }
  .plan-unit { font-size: 8px; }
  .plan-tag { padding: 2px 5px; font-size: 8px; }
  .order-mini { grid-template-columns: minmax(0,1fr) auto; gap: 8px; padding: 10px; }
  .change-plan { grid-column: 1 / -1; justify-self: start; }
  .method-options { grid-template-columns: 1fr; gap: 7px; }
  .method-opt { padding: 9px 10px; }
  .method-copy b { font-size: 11px; }
  .gateway-notice { margin-bottom: 10px; }
  .transfer-box { padding: 8px 10px; }
}
