.link-btn { color: inherit; text-decoration: none; font-weight: 500; margin-inline-end: 12px; }
.wrap.narrow { max-width: 620px; }
.plan-form { margin: 0; }
.plan-form button, a.plan-link { width: 100%; display: inline-flex; justify-content: center; align-items: center; text-decoration: none; }
.own-side a.plan-link { width: auto; }
.picked { outline: 2px solid currentColor; outline-offset: 3px; }
.notice.show { display: block; }
.notice.error { background: #fdecea; color: #8a1c12; }

.form-card { background: #fff; border: 1px solid rgba(28, 23, 18, .1); border-radius: 22px; padding: 28px; display: grid; gap: 16px; }
.form-card.center { text-align: center; justify-items: center; }
.form-card .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.f { display: grid; gap: 6px; font-weight: 500; }
.f input { font: inherit; padding: 12px 14px; border: 1px solid rgba(28, 23, 18, .18); border-radius: 12px; background: #fff; width: 100%; box-sizing: border-box; }
.f input:focus { outline: 2px solid #1c1712; outline-offset: 1px; }
.sub-input { display: flex; align-items: center; border: 1px solid rgba(28, 23, 18, .18); border-radius: 12px; overflow: hidden; }
.sub-input input { border: 0; border-radius: 0; }
.sub-input em { font-style: normal; color: #7a7066; padding: 0 12px; white-space: nowrap; }
.err { color: #b42318; font-weight: 400; }
.btn.block { width: 100%; justify-content: center; border: 0; cursor: pointer; font: inherit; padding: 14px; }
.muted { color: #7a7066; text-align: center; margin: 0; }

.sub-state { display: flex; justify-content: space-between; align-items: center; gap: 20px; background: #fff; border: 1px solid rgba(28, 23, 18, .1); border-inline-start: 6px solid #9aa0a6; border-radius: 18px; padding: 22px 26px; margin-bottom: 28px; }
.sub-state.active { border-inline-start-color: #1f8a4c; }
.sub-state.expired, .sub-state.suspended { border-inline-start-color: #b42318; }
.sub-state h1 { font-size: 24px; margin: 6px 0; }
.sub-state p { margin: 0; color: #5c544b; }

.f select { font: inherit; padding: 12px 14px; border: 1px solid rgba(28, 23, 18, .18); border-radius: 12px; background: #fff; width: 100%; }
.f select:focus { outline: 2px solid #1c1712; outline-offset: 1px; }
.phone-input { display: flex; border: 1px solid rgba(28, 23, 18, .18); border-radius: 12px; overflow: hidden; background: #fff; }
.phone-input:focus-within { outline: 2px solid #1c1712; outline-offset: 1px; }
.phone-input select { width: auto; border: 0; border-radius: 0; border-inline-end: 1px solid rgba(28, 23, 18, .12); padding-inline: 10px; background: #f6f6f4; outline: none; }
.phone-input input { border: 0; border-radius: 0; outline: none; }
.phone-input input:focus { outline: none; }

.actions { display: flex; align-items: center; gap: 10px; }
.actions a { white-space: nowrap; }
.region { position: relative; }
.region summary { list-style: none; display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; font-size: 14px; font-weight: 600; white-space: nowrap; }
.region summary::-webkit-details-marker { display: none; }
.region[open] summary { border-color: var(--ink); }
.region[open] summary svg { transform: rotate(180deg); }
.region-code { font-size: 11px; font-weight: 700; letter-spacing: .04em; color: var(--ink-soft); }
.region-dot { color: var(--ink-soft); }
.region-menu { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; width: 220px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px rgba(0, 0, 0, .1); z-index: 30; }
.region-title { margin: 6px 10px 4px; font-size: 12px; color: var(--ink-soft); font-weight: 600; }
.region-menu a { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; border-radius: 10px; font-size: 14.5px; }
.region-menu a:hover { background: var(--paper); }
.region-menu a.on { background: #e8f5ee; color: var(--brass-deep); font-weight: 700; }
.region-menu a.on .region-code { color: var(--brass-deep); }
.locale-en, .locale-fr { --serif: "IBM Plex Sans Arabic", "Segoe UI", sans-serif; }

@media (max-width: 640px) {
  .actions { gap: 6px; }
  .actions .link-btn { margin: 0; font-size: 13px; }
  .actions .btn { padding-inline: 12px; font-size: 13px; }
  .region summary > span:not(.region-code):not(.region-dot) { display: none; }
  .form-card .two { grid-template-columns: 1fr; }
  .sub-state { flex-direction: column; align-items: flex-start; }
}

/* payment methods */
.pay-methods { display: grid; gap: 18px; margin-bottom: 18px; }
.pay-card h2 { margin: 0; font-size: 20px; }
.pay-card .muted { margin: 0; }
.pay-steps { margin: 0; padding-inline-start: 20px; display: grid; gap: 6px; color: var(--ink-soft); line-height: 1.8; }
.pay-account { display: inline-block; padding: 2px 10px; border-radius: 8px; background: #f3efe6; color: var(--ink); font-size: 17px; letter-spacing: .04em; user-select: all; }
