/* ══════════════════════════════════════════════════════════════════════════
   COMMON.CSS — Shared styles across all pages
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Display ── */
.is-hidden { display: none !important; }
.d-none { display: none !important; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-inline-flex { display: inline-flex; }

/* ── Price formatting ── */
.save-pill .price { margin: 0 0.2em; }

/* ── Flexbox ── */
.flex-1 { flex: 1; }
.flex-wrap { flex-wrap: wrap; }
.flex-shrink-0 { flex-shrink: 0; }
.align-center { align-items: center; }
.align-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-start { justify-content: flex-start; }
.gap-4 { gap: 4px; }
.gap-6 { gap: 6px; }
.gap-8 { gap: 8px; }
.gap-10 { gap: 10px; }
.gap-12 { gap: 12px; }
.gap-14 { gap: 14px; }
.gap-16 { gap: 16px; }
.gap-18 { gap: 18px; }

/* ── Spacing ── */
.m-0 { margin: 0; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 2px; }
.mt-3 { margin-top: 3px; }
.mt-4 { margin-top: 4px; }
.mt-6 { margin-top: 6px; }
.mt-8 { margin-top: 8px; }
.mt-10 { margin-top: 10px; }
.mt-14 { margin-top: 14px; }
.mt-18 { margin-top: 18px; }
.mt-20 { margin-top: 20px; }
.mt-22 { margin-top: 22px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-36 { margin-top: 36px; }
.mt-40 { margin-top: 40px; }
.mt-48 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: 4px; }
.mb-6 { margin-bottom: 6px; }
.mb-8 { margin-bottom: 8px; }
.mb-14 { margin-bottom: 14px; }
.mb-18 { margin-bottom: 18px; }
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }
.mb-40 { margin-bottom: 40px; }
.p-0 { padding: 0; }
.py-6 { padding-top: 6px; padding-bottom: 6px; }

/* ── Width/Height ── */
.w-full { width: 100%; }
.w-40p { width: 40%; }
.min-w-0 { min-width: 0; }

/* ── Text ── */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-nowrap { white-space: nowrap; }
.text-dark { color: var(--dark); }
.text-soft { color: var(--text-soft); }
.text-muted { color: var(--text-muted); }
.text-red { color: var(--red); }
.text-mint-dark { color: var(--mint-dark); }
.font-500 { font-weight: 500; }
.font-600 { font-weight: 600; }
.font-700 { font-weight: 700; }
.font-800 { font-weight: 800; }
.text-11 { font-size: 11px; }
.text-12 { font-size: 12px; }
.text-13 { font-size: 13px; }
.text-14 { font-size: 14px; }
.text-15 { font-size: 15px; }
.text-17 { font-size: 17px; }
.text-18 { font-size: 18px; }
.text-20 { font-size: 20px; }
.text-22 { font-size: 22px; }
.text-24 { font-size: 24px; }
.text-26 { font-size: 26px; }
.text-28 { font-size: 28px; }
.leading-16 { line-height: 1.6; }
.tracking-tight { letter-spacing: -0.3px; }
.tracking-tighter { letter-spacing: -0.4px; }
.tracking-tightest { letter-spacing: -0.5px; }
.no-underline { text-decoration: none; }
.underline { text-decoration: underline; }

/* ── Links ── */
.link-red { color: var(--red); font-weight: 600; text-decoration: none; }
.link-muted { color: var(--text-muted); text-decoration: none; }
.link-soft { color: var(--text-soft); text-decoration: underline; }

/* ── Borders ── */
.border-t { border-top: 1px solid var(--border); }
.border-b { border-bottom: 1px solid var(--border); }
.border-b-0 { border-bottom: none; }
.divider { height: 1px; background: var(--border); }

/* ── Definition list utilities ── */
.kv-label { padding: 6px 0; color: var(--text-soft); }
.kv-value { padding: 6px 0; color: var(--dark); font-weight: 600; }

/* ── Picker containers (payment methods, etc.) ── */
.picker-dropdown { display: none; width: 100%; margin-top: 14px; }
.pay-method.selected .picker-dropdown { display: block; }

/* ── Icon sizes ── */
.icon-16 { width: 16px; height: 16px; }
.icon-18 { width: 18px; height: 18px; }
.icon-20 { width: 20px; height: 20px; }
.icon-22 { width: 22px; height: 22px; }

/* ── Banner components ── */
.banner-heading { margin-top: 0; font-size: 17px; font-weight: 800; color: var(--mint-dark); }
.banner-mint { background: var(--mint); border: 2px solid rgba(45,159,127,.22); border-radius: 14px; padding: 22px 26px; margin: 20px 0; }
.banner-mint-lg { background: var(--mint); border: 2px solid rgba(45,159,127,.28); border-radius: 16px; padding: 22px 26px; margin: 24px 0; }

/* ── Tutorial images ── */
.tutorial-img { display: block; max-width: 100%; height: auto; border: 1px solid var(--border); border-radius: 14px; cursor: zoom-in; }
.tutorial-logo { width: 56px; height: 56px; object-fit: contain; flex-shrink: 0; }

/* ── Tutorial quick info box ── */
.tut-qi {
  display: flex; align-items: center; gap: 18px;
  padding: 18px 22px; background: var(--card);
  border: 1px solid var(--border); border-radius: 14px;
  margin-bottom: 24px;
}
.tut-qi-title {
  font-family: 'Sora', sans-serif; font-size: 18px;
  font-weight: 800; color: var(--dark);
}
.tut-qi-sub { font-size: 13px; color: var(--text-soft); margin-top: 2px; }

/* ── Tutorial server settings table ── */
.tut-settings { width: 100%; font-size: 14px; border-collapse: collapse; }
.tut-settings td { padding: 6px 0; }
.tut-settings td:first-child { color: var(--text-soft); width: 40%; }
.tut-settings td:last-child { color: var(--dark); font-weight: 600; }

/* ── Figcaption styling ── */
.figcaption { font-size: 13px; color: var(--text-soft); margin-top: 10px; text-align: center; }

/* ── Small primary button ── */
.btn-primary-sm {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 16px; background: var(--red); color: white;
  border-radius: 10px; font: 600 13px 'Outfit', sans-serif;
  text-decoration: none; box-shadow: inset 0 -3px 0 rgba(0,0,0,.22);
}
.btn-primary-sm:hover { background: var(--red-hover); }

/* ── Section dividers ── */
.section-border-top { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); }

/* ── Image lightbox ── */
.lightbox { display: none; position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,.9); cursor: zoom-out; }
.lightbox.is-open { display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: 95vw; max-height: 95vh; border-radius: 8px; box-shadow: 0 8px 32px rgba(0,0,0,.5); }
.lightbox-close { position: absolute; top: 20px; right: 24px; color: white; font-size: 32px; font-weight: 300; cursor: pointer; opacity: .8; }
.lightbox-close:hover { opacity: 1; }
.js-lightbox { cursor: zoom-in; }

/* ── Navigation extras ── */
.logo-img { height: 26px; display: block; }
.nav-promo { color: var(--red); font-weight: 700; margin-left: 2px; }

/* ── Member dropdown (nav-mx) ── */
.nav-mx { position: relative; }
.btn-mx {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600;
  padding: 9px 16px; border-radius: 9px;
  border: 1.5px solid var(--red);
  background: transparent;
  color: var(--text-soft);
  text-decoration: none; transition: all 0.2s;
  line-height: 1.4;
}
.btn-mx:hover { background: var(--red); color: white; }
.btn-mx svg { width: 14px; height: 14px; }
.btn-mx .chev { opacity: .7; transition: transform .2s; }
.nav-mx:hover .btn-mx { background: var(--red); color: white; }
.nav-mx:hover .btn-mx .chev { transform: rotate(180deg); }
.nav-mx-drop {
  position: absolute; top: 100%; right: 0;
  padding-top: 10px;
  opacity: 0; pointer-events: none; transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease;
  z-index: 220;
}
.nav-mx-drop-inner {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; box-shadow: var(--shadow-lg);
  padding: 6px; min-width: 200px;
  display: flex; flex-direction: column; gap: 2px;
}
.nav-mx-drop a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 8px;
  font-size: 14px; font-weight: 500; color: var(--text-soft);
  text-decoration: none; transition: background .15s, color .15s;
}
.nav-mx-drop a:hover { background: var(--red-soft); color: var(--red); }
.nav-mx-drop a.logout { color: var(--text-muted); border-top: 1px solid var(--border); margin-top: 4px; padding-top: 12px; border-radius: 0 0 8px 8px; }
.nav-mx-drop a svg { width: 16px; height: 16px; flex-shrink: 0; }
@media (hover: hover) {
  .nav-mx:hover .nav-mx-drop {
    opacity: 1; pointer-events: auto; transform: translateY(0);
  }
}
.nav-mx.is-open .nav-mx-drop { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* ── Responsive: nav-mx ── */
@media (max-width: 900px) {
  .nav-mx { order: 2; margin-left: auto; }
}
@media (max-width: 480px) {
  .btn-mx { white-space: nowrap; padding: 8px 12px !important; font-size: 12px !important; gap: 4px !important; }
}

/* ── Reveal animation delays ── */
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }
.reveal-delay-4 { transition-delay: .32s; }

/* ── Form group utilities ── */
.form-group-tight { padding: 0; }
.form-group-last { margin-bottom: 0; padding: 0; }

/* ── Payment method wrappers ── */
.pay-method-wrap { flex-wrap: wrap; }

/* ── FAQ section styling ── */
.faq-section {
  padding: 80px 0 100px;
  background: radial-gradient(circle, rgba(0,0,0,.055) 1px, transparent 1px) var(--bg);
  background-size: 22px 22px;
  border-top: 1px solid var(--border);
}
.faq-heading {
  font-size: 28px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 40px;
  text-align: center;
}
.faq-item-last { border-bottom: none; }

/* ── Money-back guarantee badge ── */
.money-back-wrap { text-align: center; margin-top: 36px; }
.money-back-badge,
.guarantee-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.money-back-badge svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  stroke: var(--mint-dark);
}
.money-back-badge span {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
}

/* ── Checkout terms text ── */
.co-terms {
  margin: 24px 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-soft);
  text-align: left;
}
.co-terms a { color: var(--red); text-decoration: none; font-weight: 600; }

/* ── Hero highlight text ── */
.hero-highlight { color: var(--dark); }

/* ── Plan card utilities ── */
.plan-static { cursor: default; }
.plan-narrow-wrap { max-width: 366px; margin: 0 auto; }

/* ── Dashboard hint link (cancellation) ── */
.sp-hint {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 22px 24px;
  background: var(--mint);
  border: 2px solid rgba(45,159,127,.28);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  transition: background .2s, border-color .2s;
}
.sp-hint-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: white;
  color: var(--mint-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sp-hint-body { flex: 1; min-width: 0; }
.sp-hint-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 4px;
  letter-spacing: -.3px;
}
.sp-hint-desc {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.55;
  margin-bottom: 10px;
}
.sp-hint-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--red);
}

/* ── Cancel step titles ── */
.cn-step-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.4px;
  text-align: center;
  margin-bottom: 6px;
}
.cn-step-title-lg {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.5px;
  text-align: center;
  margin: 24px 0 10px;
}
.cn-step-title-xl {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.5px;
  margin-bottom: 8px;
}
.cn-step-subtitle {
  text-align: center;
  font-size: 14.5px;
  color: var(--text-soft);
  margin-bottom: 22px;
}
.cn-step-subtitle-lg {
  text-align: center;
  font-size: 14.5px;
  color: var(--text-soft);
  margin-bottom: 56px;
}

/* ── FAQ link styling ── */
.faq-link { color: var(--red); text-decoration: none; }

/* ── Section header description ── */
.ms-head-desc {
  font-size: 15px;
  color: var(--text-soft);
  max-width: 640px;
  margin-top: 8px;
}

/* ── Font weight 400 ── */
.font-400 { font-weight: 400; }

/* ── Icon size 14px ── */
.icon-14 { width: 14px; height: 14px; }

/* ── Checkout grid background section ── */
.checkout-grid-section {
  padding: 60px 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(0,0,0,.025) 39px, rgba(0,0,0,.025) 40px),
              repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(0,0,0,.025) 39px, rgba(0,0,0,.025) 40px),
              var(--cream);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ── Warning banner (yellow/amber) ── */
.banner-warning {
  background: #FFF8E6;
  border: 2px solid rgba(220,150,20,.28);
  border-radius: 16px;
  padding: 22px 26px;
  margin: 0 0 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.banner-warning-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: white;
  color: #B47B0B;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.banner-warning-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 6px;
  letter-spacing: -.3px;
}
.banner-warning-body {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.6;
  margin-bottom: 0;
}

/* ── FAQ container (narrower width) ── */
.fq-container { max-width: 860px; }

/* ── Stretched link (makes parent clickable) ── */
.stretched-link::after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  content: "";
}

/* ══════════════════════════════════════════════════════════════════════════
   SHARED CHECKOUT STYLES
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Checkout Section ── */
.checkout-section {
  padding: 80px 0 100px;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(0,0,0,.018) 39px, rgba(0,0,0,.018) 40px),
    var(--cream);
  border-top: 1px solid var(--border);
}
.narrow { max-width: 600px; margin: 0 auto; }
.narrow:has(.faq-item) { max-width: 560px; }
.co-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 20px; padding: 40px 40px 36px;
  box-shadow: 0 2px 0 rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
}
@media (max-width: 640px) {
  .checkout-section { padding: 48px 0 64px; }
  .checkout-section .container { padding: 0 12px; }
  .co-card { padding: 24px 18px 22px; border-radius: 16px; }
}

.checkout-section h2 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 32px;
  text-align: center;
}

.checkout-section h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  margin-top: 40px;
}

.checkout-section h3:first-of-type {
  margin-top: 0;
}

.co-sub {
  font-size: 14px;
  color: var(--text-soft);
  margin-top: -24px;
  margin-bottom: 32px;
  text-align: center;
}

/* ── Payment Tabs ── */
.payment-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.pay-tab {
  border: none;
  background: none;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px 0;
  margin-right: 12px;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.pay-tab.active {
  color: var(--dark);
  border-bottom-color: var(--dark);
}

.pay-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 20px;
  text-align: left;
  line-height: 1.5;
}

/* ── Payment Methods ── */
.pay-method {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border: 2px solid var(--border);
  border-radius: 14px;
  background: var(--card);
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.pay-method:hover {
  border-color: var(--text-muted);
  box-shadow: var(--shadow-sm);
}

.pay-method.selected {
  border-color: var(--mint-dark);
  background: var(--mint);
}

.pay-method .pay-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pay-method .pay-radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.pay-method.selected .pay-radio {
  border-color: var(--mint-dark);
  background: var(--mint-dark);
}

.pay-method.selected .pay-radio::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: white;
}

.pay-icons {
  display: flex;
  gap: 6px;
  align-items: center;
}

.pay-icon {
  height: 24px;
  border-radius: 4px;
  background: var(--cream-deep);
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--dark);
  display: flex;
  align-items: center;
}

/* ── Order Summary ── */
.order-summary {
  background: var(--cream);
  border: none;
  border-radius: var(--radius);
  padding: 28px;
  margin-top: 32px;
}

.order-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 14px;
}

.order-line.total {
  border-top: 2px solid var(--border);
  padding-top: 16px;
  margin-top: 8px;
  font-weight: 700;
  font-size: 18px;
  color: var(--dark);
}

.order-line .label { color: var(--text-soft); }
.order-line .value { color: var(--dark); font-weight: 600; }

/* ── Checkout Button ── */
.btn-checkout {
  display: block;
  width: 100%;
  padding: 18px;
  border-radius: 14px;
  font-size: 17px;
  font-weight: 700;
  background: var(--red);
  color: white;
  border: none;
  cursor: pointer;
  margin-top: 0;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.22);
  transition: background .3s ease, color .3s ease, box-shadow .3s ease, transform .25s cubic-bezier(.34,1.25,.64,1);
  font-family: 'Outfit', sans-serif;
}

.btn-checkout:hover:not(.is-disabled) {
  background: var(--red-hover);
  transform: translateY(-2px);
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.28);
}

.btn-checkout.is-disabled {
  background: #E5E2DE;
  color: #A8A29B;
  cursor: not-allowed;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.05);
  pointer-events: none;
}

/* Pulse when transitioning from disabled → enabled */
@keyframes btnEnablePulse {
  0%   { transform: scale(1);   box-shadow: inset 0 -3px 0 rgba(0,0,0,.22), 0 0 0 0 rgba(230,57,70,.45); }
  40%  { transform: scale(1.025); box-shadow: inset 0 -3px 0 rgba(0,0,0,.22), 0 0 0 10px rgba(230,57,70,0); }
  100% { transform: scale(1);    box-shadow: inset 0 -3px 0 rgba(0,0,0,.22), 0 0 0 0 rgba(230,57,70,0); }
}
.btn-checkout.just-enabled { animation: btnEnablePulse .7s ease-out; }

.checkout-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-muted);
}

.checkout-secure svg {
  width: 14px;
  height: 14px;
  color: var(--mint-dark);
}

/* ── Form Inputs ── */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-soft);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-size: 15px;
  font-family: 'Outfit', sans-serif;
  background: var(--card);
  color: var(--dark);
  transition: border-color 0.2s;
  outline: none;
}

.form-input:focus {
  border-color: var(--mint-dark);
}

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

.form-select {
  appearance: none;
  background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%233A3A3C' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 14px center;
  padding-right: 44px;
  cursor: pointer;
}

.form-check {
  display: flex;
  align-items: flex-start;
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.5;
  margin-top: 12px;
}

.form-check input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.form-check label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.form-check label::before {
  content: '';
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 1.5px solid var(--text-muted);
  border-radius: 5px;
  background: var(--card);
  transition: all 0.2s;
  margin-top: 1px;
}

.form-check input[type="checkbox"]:checked + label::before {
  background: var(--red);
  border-color: var(--red);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10' fill='none'%3E%3Cpolyline points='1 5 4.5 8.5 11 1' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 11px 9px;
}

.form-check a {
  color: var(--red);
  text-decoration: none;
}

/* ── Error modal ── */
.em-modal {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,.4);
  display: none; align-items: center; justify-content: center;
  padding: 24px;
}
.em-modal.is-open { display: flex; animation: emFade .2s ease-out; }
@keyframes emFade { from { opacity: 0; } to { opacity: 1; } }
.em-card {
  background: var(--card); border-radius: 18px;
  padding: 44px 44px 36px;
  max-width: 500px; width: 100%;
  box-shadow: var(--shadow-lg);
  position: relative;
  animation: emPop .25s ease-out;
}
@keyframes emPop { from { transform: translateY(8px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.em-card h2 { font-size: 22px; font-weight: 800; letter-spacing: -.4px; margin-bottom: 16px; }
.em-card p { color: var(--text-soft); line-height: 1.5; margin: 0; }
.em-close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px; border-radius: 8px;
  border: none; background: transparent; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-soft);
}
.em-close:hover { background: var(--bg); color: var(--dark); }
.em-close svg { width: 18px; height: 18px; }
.em-cta-row { display: flex; justify-content: flex-end; gap: 10px; margin-top: 28px; }
.em-btn-cancel {
  padding: 11px 22px; border-radius: 10px;
  border: 1.5px solid var(--text-muted); color: var(--text-soft); background: transparent;
  font: 700 14px 'Outfit', sans-serif; cursor: pointer; transition: all .2s;
}
.em-btn-cancel:hover { border-color: var(--dark); color: var(--dark); }
.em-btn-save {
  padding: 11px 24px; border-radius: 10px;
  border: none; background: var(--red); color: white;
  font: 700 14px 'Outfit', sans-serif; cursor: pointer; box-shadow: inset 0 -3px 0 rgba(0,0,0,.22);
  transition: background .2s, transform .2s; text-decoration: none;
}
.em-btn-save:hover { background: var(--red-hover); transform: translateY(-2px); box-shadow: inset 0 -3px 0 rgba(0,0,0,.28); }
.em-error-icon { text-align: center; margin-bottom: 20px; color: var(--red); }
.em-error-icon svg { width: 48px; height: 48px; }
