:root{
  --bg:#f8fafc;
  --surface:#ffffff;
  --surface-soft:#f1f5f9;
  --text:#0f172a;
  --muted:#475569;
  --border:#dbe4ee;
  --accent:#0f766e;
  --accent-dark:#115e59;
  --accent-soft:#ecfeff;
  --warn:#fef3c7;
  --success:#ecfdf5;
  --danger:#fee2e2;
  --radius:22px;
  --shadow:0 20px 45px rgba(15,23,42,.08);
  --max:1160px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at top left, rgba(15,118,110,.12), transparent 26%),
    radial-gradient(circle at top right, rgba(59,130,246,.08), transparent 24%),
    var(--bg);
  line-height:1.6;
}
a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline}
img{max-width:100%;display:block}
.container{width:min(var(--max), calc(100% - 2rem));margin:0 auto}
.site-header{
  position:sticky; top:0; z-index:50;
  backdrop-filter:blur(10px);
  background:rgba(248,250,252,.84);
  border-bottom:1px solid rgba(219,228,238,.85);
}
.nav-shell{
  min-height:78px;
  display:flex; align-items:center; justify-content:space-between; gap:1rem;
}
.brand{display:flex; align-items:center; gap:.85rem; color:var(--text)}
.brand:hover{text-decoration:none}
.brand-mark{
  width:42px; height:42px; border-radius:14px;
  display:grid; place-items:center;
  color:#fff; font-weight:800; letter-spacing:.03em;
  background:linear-gradient(135deg, #0f172a, #0f766e);
  box-shadow:0 12px 24px rgba(15,118,110,.22);
}
.brand-copy{display:flex; flex-direction:column}
.brand-copy strong{font-size:1rem}
.brand-copy small{color:var(--muted)}
.nav-links{display:flex; align-items:center; gap:1rem; flex-wrap:wrap}
.nav-links a{
  color:var(--text); font-weight:600; padding:.55rem .8rem; border-radius:999px;
}
.nav-links a:hover{background:rgba(15,118,110,.08); text-decoration:none}
.nav-links a.is-active{background:rgba(15,118,110,.11); color:var(--accent-dark)}
.nav-links .nav-cta{
  background:var(--accent); color:#fff; box-shadow:0 12px 22px rgba(15,118,110,.2);
}
.nav-links .nav-cta:hover{background:var(--accent-dark); text-decoration:none}
.nav-toggle{
  display:none; border:1px solid var(--border); background:#fff; color:var(--text);
  width:52px; height:52px; border-radius:16px; padding:0; position:relative;
}
.nav-toggle span{
  display:block; width:20px; height:2px; background:var(--text); margin:5px auto;
}
.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden;
  clip:rect(0,0,0,0); white-space:nowrap; border:0;
}
.hero{padding:5.5rem 0 4rem}
.hero-grid{
  display:grid; grid-template-columns:minmax(0,1.15fr) minmax(300px,.85fr);
  gap:2rem; align-items:stretch;
}
.hero-copy, .hero-card, .surface-card{
  background:rgba(255,255,255,.86);
  border:1px solid rgba(219,228,238,.9);
  border-radius:32px;
  box-shadow:var(--shadow);
}
.hero-copy{padding:2.3rem}
.hero-kicker{
  display:inline-flex; gap:.5rem; align-items:center; padding:.4rem .85rem;
  border-radius:999px; background:var(--accent-soft); color:var(--accent-dark);
  font-weight:700; font-size:.92rem; margin-bottom:1rem;
}
h1,h2,h3{line-height:1.15; margin:0 0 1rem}
h1{font-size:clamp(2.2rem,4.1vw,4rem)}
h2{font-size:clamp(1.6rem,3vw,2.4rem)}
h3{font-size:1.1rem}
p{margin:0 0 1rem; color:var(--muted)}
.hero-copy p.lead{font-size:1.1rem; max-width:60ch}
.cta-row{display:flex; flex-wrap:wrap; gap:.9rem; margin-top:1.4rem}
.btn{
  appearance:none; border:none; cursor:pointer; font:inherit;
  display:inline-flex; align-items:center; justify-content:center; gap:.55rem;
  padding:.95rem 1.2rem; border-radius:18px; text-decoration:none; font-weight:700;
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover{text-decoration:none; transform:translateY(-1px)}
.btn-primary{background:var(--accent); color:#fff; box-shadow:0 14px 26px rgba(15,118,110,.25)}
.btn-primary:hover{background:var(--accent-dark)}
.btn-secondary{background:#fff; color:var(--text); border:1px solid var(--border)}
.btn-secondary:hover{background:var(--surface-soft)}
.btn-full{width:100%}
.hero-metrics{display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem; margin-top:1.6rem}
.metric{
  padding:1rem; border-radius:22px; background:#fff; border:1px solid var(--border);
}
.metric strong{display:block; font-size:1.35rem; margin-bottom:.25rem}
.hero-card{padding:2rem; display:flex; flex-direction:column; gap:1.1rem}
.card-stack{display:grid; gap:1rem}
.card{
  background:#fff; border:1px solid var(--border); border-radius:24px;
  padding:1.35rem; box-shadow:0 10px 24px rgba(15,23,42,.04);
}
.card p:last-child{margin-bottom:0}
.price{font-size:2rem; font-weight:800; color:var(--text); margin:.25rem 0 .7rem}
.checks{list-style:none; padding:0; margin:1rem 0 0; display:grid; gap:.55rem}
.checks li{position:relative; padding-left:1.4rem; color:var(--muted)}
.checks li::before{content:"✓"; position:absolute; left:0; color:var(--accent-dark); font-weight:800}
.section{padding:2.6rem 0}
.section-header{display:flex; align-items:end; justify-content:space-between; gap:1rem; margin-bottom:1.3rem}
.grid{display:grid; gap:1.1rem}
.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.band .surface-card{padding:2rem}
.notice, .flash, .status-box{
  border-radius:22px; padding:1rem 1.1rem; border:1px solid transparent;
}
.notice{background:var(--warn); border-color:#fcd34d}
.flash-success{background:var(--success); border-color:#86efac}
.flash-error{background:var(--danger); border-color:#fca5a5}
.small{font-size:.95rem}
.muted{color:var(--muted)}
.surface-card{padding:2rem}
.steps{counter-reset:step; display:grid; gap:1rem}
.step{
  position:relative; padding:1.15rem 1.2rem 1.15rem 4.1rem;
  background:#fff; border:1px solid var(--border); border-radius:24px;
}
.step::before{
  counter-increment:step; content:counter(step);
  position:absolute; left:1rem; top:1rem; width:2.3rem; height:2.3rem;
  border-radius:50%; display:grid; place-items:center;
  background:linear-gradient(135deg,#0f172a,#0f766e); color:#fff; font-weight:800;
}
.page-hero{padding:3.4rem 0 1.2rem}
.page-hero-inner{padding:2rem}
.faq-list{display:grid; gap:1rem}
.faq-item{
  background:#fff; border:1px solid var(--border); border-radius:22px; padding:1rem 1.2rem;
}
.faq-item summary{cursor:pointer; font-weight:700; color:var(--text)}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item[open]{box-shadow:0 12px 24px rgba(15,23,42,.05)}
.form-grid{display:grid; gap:1rem; grid-template-columns:repeat(2,minmax(0,1fr))}
.field{display:grid; gap:.45rem}
.field-full{grid-column:1 / -1}
label{font-weight:700; color:var(--text)}
input, select, textarea{
  width:100%; padding:.95rem 1rem; border:1px solid var(--border); border-radius:16px;
  background:#fff; color:var(--text); font:inherit;
}
textarea{min-height:150px; resize:vertical}
input:focus, select:focus, textarea:focus{
  outline:3px solid rgba(15,118,110,.15); border-color:rgba(15,118,110,.45);
}
.form-actions{display:flex; flex-wrap:wrap; gap:1rem; align-items:center}
.form-help{font-size:.92rem; color:var(--muted)}
.form-errors{
  margin:0 0 1rem; padding:1rem 1rem 1rem 1.25rem; border-radius:20px;
  background:var(--danger); border:1px solid #fca5a5; color:#7f1d1d;
}
.form-errors li + li{margin-top:.35rem}
.hidden-field{
  position:absolute !important; left:-9999px !important; width:1px !important;
  height:1px !important; overflow:hidden !important;
}
.split-callout{
  display:grid; grid-template-columns:minmax(0,1.1fr) minmax(260px,.9fr); gap:1rem;
}
.kpi{
  background:#fff; border:1px solid var(--border); border-radius:20px;
  padding:1rem;
}
.kpi .label{display:block; font-size:.9rem; color:var(--muted)}
.kpi strong{font-size:1.4rem}
.site-footer{
  margin-top:2rem; padding:2rem 0 2.4rem; border-top:1px solid rgba(219,228,238,.9);
}
.footer-grid{display:grid; grid-template-columns:1.2fr .9fr .9fr; gap:1.4rem}
.footer-grid h3{font-size:1rem; margin-bottom:.8rem}
.footer-grid p{margin-bottom:.55rem}
.footer-meta{
  display:flex; justify-content:space-between; gap:1rem; flex-wrap:wrap;
  padding-top:1rem; margin-top:1rem; border-top:1px solid rgba(219,228,238,.9);
}
.admin-shell{padding:2rem 0 3rem}
.admin-topbar{
  display:flex; align-items:center; justify-content:space-between; gap:1rem; flex-wrap:wrap;
  margin-bottom:1rem;
}
.badge{
  display:inline-flex; align-items:center; padding:.35rem .7rem; border-radius:999px;
  background:rgba(15,118,110,.1); color:var(--accent-dark); font-size:.85rem; font-weight:700;
}
.table-wrap{
  overflow:auto; border:1px solid var(--border); border-radius:24px; background:#fff;
}
table{width:100%; border-collapse:collapse}
th,td{padding:1rem; border-bottom:1px solid var(--border); text-align:left; vertical-align:top}
th{font-size:.94rem; color:var(--muted); background:#f8fafc}
td p:last-child{margin-bottom:0}
.empty-state{
  padding:2rem; text-align:center; background:#fff; border:1px dashed var(--border); border-radius:24px;
}
.admin-links{display:flex; gap:.7rem; flex-wrap:wrap}
.mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
.status-pill{
  display:inline-flex; align-items:center; padding:.35rem .7rem; border-radius:999px; font-size:.83rem;
  background:rgba(59,130,246,.12); color:#1d4ed8; font-weight:700;
}
.status-new{background:rgba(59,130,246,.12); color:#1d4ed8}
.status-reviewing{background:rgba(245,158,11,.16); color:#92400e}
.status-quoted{background:rgba(16,185,129,.16); color:#065f46}
.status-closed{background:rgba(100,116,139,.16); color:#334155}
.stat-grid{display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:1rem; margin-bottom:1rem}
.stat-card{
  background:#fff; border:1px solid var(--border); border-radius:24px; padding:1.2rem;
}
.stat-card strong{display:block; font-size:1.6rem; margin-top:.25rem}
.legal-copy .surface-card{padding:2rem 2rem 1.4rem}
.legal-copy h2{font-size:1.3rem; margin-top:1.4rem}
.legal-copy ul{padding-left:1.2rem; color:var(--muted)}
.legal-copy li + li{margin-top:.45rem}
.inline-form{display:flex; gap:.8rem; flex-wrap:wrap; align-items:center}
.inline-form .field{min-width:180px; flex:1}
.code-block{
  border-radius:18px; background:#0f172a; color:#e2e8f0; padding:1rem 1.1rem;
  overflow:auto; font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:.92rem;
}
label.inline-check{display:flex;gap:.5rem;align-items:center;font-weight:600}
input[type="checkbox"]{width:auto}
@media (max-width:980px){
  .hero-grid,.split-callout,.footer-grid,.grid-3,.grid-4,.stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:860px){
  .nav-toggle{display:block}
  .nav-links{
    position:absolute; right:1rem; top:78px; width:min(94vw,360px); padding:1rem;
    background:rgba(255,255,255,.98); border:1px solid var(--border); border-radius:24px;
    box-shadow:var(--shadow); display:none; flex-direction:column; align-items:stretch;
  }
  .nav-links.is-open{display:flex}
  .nav-links a{width:100%}
  .hero-metrics,.grid-2,.grid-3,.grid-4,.form-grid,.footer-grid,.split-callout,.stat-grid,.hero-grid{grid-template-columns:1fr}
  .nav-shell{position:relative}
}
@media (max-width:640px){
  .hero{padding-top:4.2rem}
  .hero-copy,.hero-card,.surface-card,.page-hero-inner{padding:1.35rem}
  .container{width:min(var(--max), calc(100% - 1rem))}
  .section{padding:2rem 0}
}



/* Checkout and payment management */
.checkout-page-hero .page-hero-inner,
.checkout-hero-inner{
  display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(280px,.9fr);
  gap:1rem;
  align-items:start;
}
.hero-contact-card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:24px;
  padding:1.2rem;
}
.hero-contact-card p:last-child{margin-bottom:0}
.checkout-layout{
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(340px,.95fr);
  gap:1rem;
  align-items:start;
}
.checkout-config-card,
.checkout-payment-card{
  position:relative;
}
.stack-gap{display:grid;gap:1rem}
.option-grid{
  display:grid;
  gap:.85rem;
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.option-grid.four{
  grid-template-columns:repeat(4,minmax(0,1fr));
}
.choice-pill{
  position:relative;
  display:flex;
  flex-direction:column;
  gap:.15rem;
  padding:1rem 1rem .95rem;
  border:1px solid var(--border);
  border-radius:18px;
  background:#fff;
  cursor:pointer;
  transition:border-color .15s ease, box-shadow .15s ease, background .15s ease, transform .15s ease;
}
.choice-pill:hover{transform:translateY(-1px); box-shadow:0 10px 20px rgba(15,23,42,.05)}
.choice-pill input{
  position:absolute;
  inset:0;
  opacity:0;
  cursor:pointer;
}
.choice-pill span{font-weight:700;color:var(--text)}
.choice-pill small{color:var(--muted)}
.choice-pill:has(input:checked){
  border-color:rgba(15,118,110,.55);
  background:var(--accent-soft);
  box-shadow:0 12px 26px rgba(15,118,110,.12);
}
.choice-pill.is-locked{
  opacity:.8;
  cursor:not-allowed;
}
.amount-pill{
  border:1px solid var(--border);
  background:#fff;
  color:var(--text);
  padding:.9rem 1rem;
  border-radius:16px;
  cursor:pointer;
  font-weight:700;
}
.amount-pill.active,
.amount-pill:hover{
  border-color:rgba(15,118,110,.5);
  background:var(--accent-soft);
}
.summary-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  margin-bottom:1rem;
}
.summary-label{
  display:block;
  color:var(--muted);
  font-size:.9rem;
  margin-bottom:.15rem;
}
.status-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:88px;
  padding:.5rem .8rem;
  border-radius:999px;
  background:#e2e8f0;
  color:#334155;
  font-weight:700;
  font-size:.9rem;
}
.status-chip.success{background:#dcfce7;color:#166534}
.status-chip.error{background:#fee2e2;color:#b91c1c}
.status-chip.loading{background:#dbeafe;color:#1d4ed8}
.card-inline-note{font-size:.95rem;color:var(--muted)}
.payment-shell{
  margin-top:1rem;
  background:#fff;
  border:1px solid var(--border);
  border-radius:24px;
  padding:1.2rem;
}
.payment-head{
  display:flex;
  align-items:start;
  justify-content:space-between;
  gap:1rem;
  margin-bottom:1rem;
}
.checkout-payment-grid{
  display:grid;
  gap:1rem;
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.stripe-field{
  background:#fff;
  border:1px solid var(--border);
  border-radius:16px;
  padding:1rem;
  min-height:54px;
  display:flex;
  align-items:center;
}
.stripe-field .__PrivateStripeElement,
.stripe-field .StripeElement{
  width:100%;
}
.stripe-field-fallback{color:#94a3b8;font-size:.95rem}
.stripe-payment-element{min-height:86px;align-items:stretch;padding:.85rem 1rem}
.stripe-payment-element .__PrivateStripeElement,.stripe-payment-element .StripeElement{width:100%}
.payment-security-note{
  margin:1rem 0;
  background:#f8fafc;
  border-color:#dbe4ee;
}
.error-text{
  min-height:1.4rem;
  color:#b91c1c;
  font-weight:600;
  margin-bottom:.9rem;
}
.small-note{font-size:.92rem}
.top-gap{margin-top:1rem}
.soft-note{background:#f8fafc;border-color:#dbe4ee}
.linked-request-card{
  margin-bottom:1rem;
  border:1px solid var(--border);
  border-radius:22px;
  background:#fff;
  padding:1.2rem;
}
.copy-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto auto;
  gap:.75rem;
  align-items:start;
}
.copy-input{min-height:52px}
.compact-stack .card{padding:1rem 1.1rem}
.stat-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.stat-grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.compact-inline-field{display:flex;flex-direction:column;gap:.45rem;min-width:190px}
.checkout-layout-card{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:1rem;
  flex-wrap:wrap;
  border:1px solid var(--border);
  border-radius:22px;
  padding:1.1rem;
  background:#fff;
}
.checkout-field-grid{
  display:grid;
  gap:1rem;
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.checkout-field-card{
  border:1px solid var(--border);
  border-radius:22px;
  padding:1rem 1.1rem;
  background:#fff;
  display:grid;
  gap:.7rem;
}
.order-meta-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:.8rem;
}
.summary-item{
  border:1px solid var(--border);
  border-radius:18px;
  padding:.9rem 1rem;
  background:#fff;
}
.summary-item span{
  display:block;
  color:var(--muted);
  font-size:.9rem;
  margin-bottom:.2rem;
}
.summary-item strong{font-size:1.05rem}
.status-active{background:rgba(16,185,129,.16);color:#065f46}
.status-disabled{background:rgba(245,158,11,.16);color:#92400e}
.status-used{background:rgba(100,116,139,.16);color:#334155}
.status-pending{background:rgba(59,130,246,.12);color:#1d4ed8}
.status-paid{background:rgba(16,185,129,.16);color:#065f46}
.status-failed{background:rgba(239,68,68,.16);color:#991b1b}
.status-canceled{background:rgba(245,158,11,.16);color:#92400e}
.status-refunded{background:rgba(148,163,184,.16);color:#334155}
.status-fulfilled{background:rgba(15,118,110,.16);color:#115e59}
.pill{
  display:inline-flex;
  align-items:center;
  padding:.35rem .75rem;
  border-radius:999px;
  background:var(--accent-soft);
  color:var(--accent-dark);
  font-weight:700;
  font-size:.85rem;
}
.support-schedule-shell{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(310px,.95fr);
  gap:1rem;
  padding:1.5rem;
  border-radius:28px;
  border:1px solid var(--border);
  background:linear-gradient(180deg, rgba(255,255,255,.96), rgba(241,245,249,.96));
  box-shadow:var(--shadow);
}
.support-schedule-copy h2{margin-top:.7rem}
.support-schedule-text{max-width:55ch}
.support-mini-points{
  display:flex;
  flex-wrap:wrap;
  gap:.6rem;
  margin-top:1rem;
}
.support-mini-points span{
  border:1px solid var(--border);
  background:#fff;
  border-radius:999px;
  padding:.45rem .75rem;
  color:var(--muted);
  font-size:.92rem;
}
.support-schedule-actions{
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.support-button-grid{
  display:grid;
  gap:.8rem;
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.support-frequency-btn{
  width:100%;
  flex-direction:column;
  align-items:flex-start;
  text-align:left;
  background:var(--accent);
  color:#fff;
}
.support-frequency-btn.secondary{
  background:#fff;
  color:var(--text);
  border:1px solid var(--border);
  box-shadow:none;
}
.support-frequency-btn span{font-size:1rem;font-weight:700}
.support-frequency-btn small{opacity:.85}
.inline-check{
  display:inline-flex;
  align-items:center;
  gap:.55rem;
  font-weight:700;
}

.inline-check input{width:auto}
.recaptcha-block{
  margin:.6rem 0 0;
  padding:.9rem 1rem;
  border:1px solid var(--border);
  border-radius:18px;
  background:#fff;
}
.recaptcha-help{
  margin-top:.55rem;
  color:var(--muted);
  font-size:.92rem;
}
.settings-panel{
  margin-top:1.25rem;
  padding:1.2rem;
  border:1px solid var(--border);
  border-radius:24px;
  background:#f8fafc;
}
.status-summary-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:1rem;
}
@media (max-width: 960px){
  .hero-grid,
  .checkout-layout,
  .split-callout,
  .checkout-page-hero .page-hero-inner,
  .checkout-hero-inner,
  .support-schedule-shell{
    grid-template-columns:1fr;
  }
  .grid-3,.grid-4,.stat-grid,.stat-grid-3,.stat-grid-4,.footer-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .option-grid.four,
  .support-button-grid,
  .checkout-payment-grid,
  .checkout-field-grid,
  .form-grid,
  .order-meta-grid{
    grid-template-columns:1fr;
  }
  .copy-row{
    grid-template-columns:1fr;
  }
}
@media (max-width: 720px){
  .hero-metrics,
  .grid-2,
  .grid-3,
  .grid-4,
  .stat-grid,
  .stat-grid-3,
  .stat-grid-4,
  .footer-grid{
    grid-template-columns:1fr;
  }
}

.brand-image-wrap{display:inline-flex;align-items:center;justify-content:center}
.brand-image{display:block;height:auto;max-width:220px;width:auto}
.brand-image-wrap + .brand-copy{margin-inline-start:.75rem}
.footer-logo-wrap{margin:0 0 .9rem}
.footer-logo{max-width:220px;height:auto;display:block}
.lang-switch{display:inline-flex;align-items:center;gap:.35rem;padding:.2rem;border:1px solid var(--border);border-radius:999px;background:#fff}
.lang-link{display:inline-flex;align-items:center;justify-content:center;padding:.35rem .7rem;border-radius:999px;color:var(--muted);font-size:.9rem;font-weight:700;text-decoration:none}
.lang-link.is-active{background:var(--accent);color:#fff}
.is-rtl{direction:rtl}
.is-rtl .hero-copy,.is-rtl .card,.is-rtl .surface-card,.is-rtl .legal-copy,.is-rtl .section,.is-rtl .page-hero-inner,.is-rtl .footer-grid,.is-rtl .admin-shell{text-align:right}
.is-rtl .nav-shell,.is-rtl .cta-row,.is-rtl .hero-metrics,.is-rtl .support-mini-points,.is-rtl .support-button-grid,.is-rtl .checkout-layout-card,.is-rtl .summary-bar,.is-rtl .payment-head,.is-rtl .admin-topbar,.is-rtl .admin-links{flex-direction:row-reverse}
.is-rtl .brand-image-wrap + .brand-copy{margin-inline-start:0;margin-inline-end:.75rem}
.mail-log-list{display:grid;gap:.9rem}
.mail-log-item{padding:1rem;border:1px solid var(--border);border-radius:18px;background:#fff}
.mail-log-meta{display:flex;flex-wrap:wrap;gap:.8rem;color:var(--muted);font-size:.92rem;margin-top:.45rem}
.inbox-preview-list{display:grid;gap:.75rem}
.inbox-preview-item{padding:.9rem 1rem;border:1px solid var(--border);border-radius:18px;background:#fff}
.brand-preview-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}
.brand-preview-card{padding:1rem;border:1px solid var(--border);border-radius:18px;background:#fff}
.brand-preview-card img{display:block;max-width:100%;height:auto;border-radius:14px}
.notice-list{display:grid;gap:.5rem;margin-top:.5rem;color:var(--muted);font-size:.94rem}
.invoice-actions{display:flex;flex-wrap:wrap;gap:.75rem;margin-top:1rem}
.inline-badge{display:inline-flex;align-items:center;gap:.4rem;padding:.3rem .6rem;border-radius:999px;background:#eff6ff;color:#0f172a;font-size:.84rem;font-weight:700}
@media (max-width: 960px){.brand-preview-grid{grid-template-columns:1fr}}


.payment-method-admin-card{display:grid;grid-template-columns:minmax(250px,340px) 1fr;gap:1rem;align-items:stretch}
.payment-method-admin-card__visual{position:relative;overflow:hidden;border-radius:24px;padding:1.25rem;background:linear-gradient(135deg,#12354b 0%,#1f6f67 55%,#f0b66c 100%);color:#fff;min-height:170px;display:flex;flex-direction:column;justify-content:space-between;box-shadow:0 16px 40px rgba(18,53,75,.16)}
.payment-method-admin-card__brand{display:inline-flex;align-self:flex-end;padding:.3rem .7rem;border-radius:999px;background:rgba(255,255,255,.18);font-size:.82rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase}
.payment-method-admin-card__number{font-size:1.2rem;letter-spacing:.18em;font-weight:700}
.payment-method-admin-card__meta{display:flex;justify-content:space-between;gap:1rem;font-size:.92rem;color:rgba(255,255,255,.92)}
.payment-method-admin-card__details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.85rem}
.payment-method-admin-card__details>div{border:1px solid var(--border);border-radius:18px;padding:.9rem 1rem;background:#fff}
.payment-method-admin-card__details .label{display:block;font-size:.78rem;color:var(--muted);margin-bottom:.2rem}
@media (max-width: 860px){.payment-method-admin-card{grid-template-columns:1fr}.payment-method-admin-card__details{grid-template-columns:1fr 1fr}}
@media (max-width: 560px){.payment-method-admin-card__details{grid-template-columns:1fr}.payment-method-admin-card__meta{flex-direction:column;align-items:flex-start}}


/* Responsive polish and mail improvements */
html{-webkit-text-size-adjust:100%}
body{overflow-x:hidden}
button,input,select,textarea{font:inherit}
input,select,textarea{font-size:16px}
.btn{min-height:50px}
.hero-contact-card a,.summary-item strong,.card,.surface-card,.hero-copy,.hero-card{overflow-wrap:anywhere}
.table-wrap td,.table-wrap th{word-break:break-word}
.checkout-inline-notice{margin-top:1rem}
.premium-payment-shell{padding:1rem 1rem 1.1rem}
.payment-head h3{margin-bottom:.35rem}
.payment-head p{margin-bottom:0}
.mail-compose-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,.95fr);gap:1rem;align-items:start}
.mail-preview-frame{width:100%;min-height:560px;border:1px solid var(--border);border-radius:22px;background:#fff;box-shadow:0 10px 24px rgba(15,23,42,.04)}
.mail-render-surface{border:1px solid var(--border);border-radius:22px;background:#fff;padding:0;overflow:hidden}
.mail-html-tabs{display:flex;flex-wrap:wrap;gap:.65rem;margin:.85rem 0 1rem}
.mail-html-tab{display:inline-flex;align-items:center;padding:.45rem .8rem;border-radius:999px;background:#f8fafc;border:1px solid var(--border);color:var(--text);font-size:.92rem;font-weight:700}
.mail-preview-note{font-size:.92rem;color:var(--muted);margin-top:.75rem}
.mail-plaintext-preview{margin:0;padding:1rem 1.1rem;border:1px solid var(--border);border-radius:18px;background:#fff;white-space:pre-wrap;word-break:break-word;max-height:440px;overflow:auto}
.mail-compose-actions .btn{min-width:180px}
.mail-log-item details summary{cursor:pointer;font-weight:700;color:var(--text)}
.mail-log-item pre{max-height:280px;overflow:auto;background:#f8fafc;border:1px solid var(--border);border-radius:14px;padding:.9rem 1rem}
@media (min-width: 961px){
  .checkout-payment-card{position:sticky;top:96px}
}
@media (max-width:960px){
  .mail-compose-grid,.checkout-layout,.checkout-page-hero .page-hero-inner,.checkout-hero-inner{grid-template-columns:1fr}
  .option-grid.four{grid-template-columns:repeat(2,minmax(0,1fr))}
  .table-wrap{border-radius:20px}
}
@media (max-width:720px){
  .container{width:min(var(--max), calc(100% - .85rem))}
  .site-header{padding-top:max(0px, env(safe-area-inset-top))}
  .nav-shell{min-height:70px}
  .brand-copy small{display:none}
  .brand-image{max-width:170px}
  .nav-links{left:.5rem;right:.5rem;top:70px;width:auto;max-height:calc(100vh - 84px);overflow:auto}
  body.nav-open{overflow:hidden}
  .cta-row,.form-actions,.admin-links,.invoice-actions{flex-direction:column;align-items:stretch}
  .cta-row .btn,.form-actions .btn,.admin-links .btn,.invoice-actions .btn,.mail-compose-actions .btn{width:100%}
  .summary-bar,.payment-head,.section-header,.footer-meta{flex-direction:column;align-items:flex-start}
  .support-button-grid,.option-grid.four{grid-template-columns:1fr 1fr}
  .checkout-payment-grid{gap:.85rem}
  .copy-row{grid-template-columns:1fr}
  .mail-preview-frame{min-height:420px}
}
@media (max-width:560px){
  .hero{padding:4rem 0 2rem}
  .hero-copy,.hero-card,.surface-card,.page-hero-inner,.payment-shell,.linked-request-card{padding:1rem}
  .card,.kpi,.summary-item,.stat-card,.choice-pill,.amount-pill,.checkout-field-card,.mail-log-item,.inbox-preview-item{padding:1rem}
  .option-grid,.support-button-grid,.checkout-payment-grid,.checkout-field-grid,.order-meta-grid,.brand-preview-grid,.mail-compose-grid{grid-template-columns:1fr}
  .hero-metrics .metric{padding:.9rem}
  .status-chip,.status-pill,.badge,.pill{font-size:.82rem}
  .payment-head{gap:.55rem}
  .table-wrap table,.table-wrap thead,.table-wrap tbody,.table-wrap tr,.table-wrap td{display:block;width:100%}
  .table-wrap thead{display:none}
  .table-wrap tr{border-bottom:1px solid var(--border)}
  .table-wrap tr:last-child{border-bottom:none}
  .table-wrap td{padding:.75rem 1rem;border-bottom:none;display:grid;grid-template-columns:minmax(100px,130px) 1fr;gap:.75rem;align-items:start}
  .table-wrap td::before{content:attr(data-label);font-weight:700;color:var(--muted)}
}
@media (max-width:420px){
  h1{font-size:2rem}
  h2{font-size:1.45rem}
  .brand-copy strong{font-size:.95rem}
  .choice-pill span,.amount-pill{font-size:.95rem}
  .btn{padding:.9rem 1rem;border-radius:16px}
  .table-wrap td{grid-template-columns:1fr}
}

/* Live privacy + mobile checkout polish */
.privacy-mini-note{
  margin-top:-.25rem;
  padding:.75rem .9rem;
  border:1px solid rgba(15,118,110,.18);
  background:linear-gradient(180deg,#f0fdfa,#ffffff);
  color:#31515a;
  border-radius:16px;
  font-size:.92rem;
  line-height:1.55;
}
.checkout-layout,.checkout-hero-inner,.checkout-page-hero .page-hero-inner{align-items:start}
.checkout-layout>*,.checkout-hero-inner>*,.checkout-page-hero .page-hero-inner>*,.checkout-payment-card,.checkout-config-card,.premium-payment-shell{min-width:0;max-width:100%}
.checkout-config-card .form-grid,.checkout-payment-card .form-grid{min-width:0}
.checkout-payment-grid .field,.checkout-payment-grid input,.checkout-payment-grid select,.checkout-payment-grid textarea{min-width:0;width:100%}
.stripe-card-element,.stripe-card-split,.payment-element-mount{max-width:100%;min-width:0}
#payment-notice{margin-top:.75rem;word-break:break-word}
#confirm-payment[disabled]{opacity:.78;cursor:wait;transform:none}
.checkout-summary,.payment-summary,.summary-card{min-width:0;overflow-wrap:anywhere}
@media (max-width:960px){
  .checkout-layout,.checkout-hero-inner,.checkout-page-hero .page-hero-inner{gap:1rem}
  .checkout-payment-card{position:static!important;top:auto!important;width:100%}
}
@media (max-width:720px){
  .checkout-page-hero,.page-hero{padding-top:2rem;padding-bottom:1.25rem}
  .checkout-page-hero .hero-copy,.checkout-page-hero .hero-card,.checkout-config-card,.checkout-payment-card{width:100%}
  .checkout-config-card,.checkout-payment-card,.premium-payment-shell{border-radius:22px;padding:1rem}
  .checkout-payment-grid{grid-template-columns:1fr!important}
  .checkout-layout .option-grid.four,.checkout-layout .support-button-grid,.checkout-config-card .option-grid.four{grid-template-columns:1fr!important}
  .choice-pill,.amount-pill{min-height:54px;justify-content:flex-start;text-align:left}
  [dir="rtl"] .choice-pill,[dir="rtl"] .amount-pill{text-align:right}
  .summary-bar{gap:.75rem}
  .summary-item{width:100%}
  input,select,textarea{min-height:52px}
  textarea{min-height:132px}
}
@media (max-width:480px){
  .container{width:min(var(--max), calc(100% - .65rem))}
  .checkout-config-card,.checkout-payment-card,.premium-payment-shell,.surface-card{padding:.9rem;border-radius:20px}
  .form-grid{gap:.85rem}
  .payment-head h3{font-size:1.2rem}
  .btn-full,#confirm-payment{width:100%;min-height:54px}
}

/* Mail Center pro preview upgrade */
.mail-center-section{margin-top:1rem}
.compact-section-header{margin-bottom:1rem}
.mail-status-grid .stat-card strong{display:block;word-break:break-word}
.mail-preview-card{position:sticky;top:94px}
.mail-viewer-head,.mail-panel-head,.mail-message-top,.mail-log-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem}
.mail-viewer-head h2,.mail-panel-head h2,.mail-message-top h3{margin:.35rem 0 .2rem}
.mail-device-pill{display:inline-flex;align-items:center;padding:.35rem .7rem;border:1px solid var(--border);border-radius:999px;background:#f8fafc;color:var(--muted);font-size:.86rem;font-weight:700;white-space:nowrap}
.mail-two-column{display:grid;grid-template-columns:minmax(0,1fr) minmax(360px,.9fr);gap:1rem;align-items:start}
.mail-render-surface--framed,.mail-render-surface--inbox,.mail-render-surface--sent{background:linear-gradient(180deg,#f8fafc,#eef2f7);padding:.75rem;border-radius:22px}
.mail-preview-frame--compose{min-height:620px}
.mail-preview-frame--reader{min-height:520px;background:#fff}
.mail-message-card{border:1px solid var(--border);border-radius:22px;background:#fff;padding:1rem;margin:1rem 0;box-shadow:0 12px 28px rgba(15,23,42,.04)}
.mail-message-card--selected{border-color:#cbd5e1;background:#fbfdff}
.mail-message-meta{display:flex;flex-wrap:wrap;gap:.5rem 1rem;color:var(--muted);font-size:.9rem;margin-top:.45rem}
.mail-status-pill{display:inline-flex;align-items:center;justify-content:center;padding:.26rem .6rem;border-radius:999px;border:1px solid var(--border);background:#f8fafc;color:var(--muted);font-size:.78rem;font-weight:800;text-transform:uppercase;letter-spacing:.04em;white-space:nowrap}
.mail-status-pill.is-unread{background:#ecfeff;border-color:#99f6e4;color:#115e59}
.mail-status-pill.is-seen{background:#f0fdf4;border-color:#bbf7d0;color:#166534}
.mail-status-pill.is-failed{background:#fef2f2;border-color:#fecaca;color:#991b1b}
.mail-attachment-row{display:flex;flex-wrap:wrap;gap:.5rem;margin:.85rem 0}
.mail-attachment-pill{display:inline-flex;align-items:center;padding:.35rem .65rem;border-radius:999px;background:#fff7ed;border:1px solid #fed7aa;color:#9a3412;font-size:.86rem;font-weight:700}
.mail-plain-details{margin-top:1rem}
.mail-plain-details summary{cursor:pointer;font-weight:800;color:var(--text);padding:.75rem 0}
.inbox-preview-list--rich,.mail-log-list--rich{display:grid;gap:.75rem;margin-top:1rem}
.inbox-preview-item--rich,.mail-log-item--rich{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:1rem;align-items:center;transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease}
.inbox-preview-item--rich:hover,.mail-log-item--rich:hover{border-color:#cbd5e1;box-shadow:0 12px 28px rgba(15,23,42,.05);transform:translateY(-1px)}
.inbox-preview-item--rich.is-unread{border-color:#99f6e4;background:#f0fdfa}
.inbox-message-main strong,.mail-log-title-row strong{display:block;margin-top:.35rem;color:var(--text)}
.inbox-message-actions,.mail-row-actions{display:flex;justify-content:flex-end;align-items:center}
.mail-log-excerpt{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;color:var(--muted);margin:.65rem 0 0;line-height:1.6}
.mail-invoice-attach-card{border:1px dashed var(--border);border-radius:18px;background:#f8fafc;padding:1rem}
.mail-invoice-attach-card input[type="text"],.mail-invoice-attach-card input:not([type]){margin-top:.75rem;background:#fff}
@media (max-width: 1100px){
  .mail-two-column{grid-template-columns:1fr}
  .mail-preview-card{position:static}
}
@media (max-width: 720px){
  .mail-viewer-head,.mail-panel-head,.mail-message-top,.mail-log-title-row{flex-direction:column;align-items:flex-start}
  .mail-device-pill{white-space:normal}
  .inbox-preview-item--rich,.mail-log-item--rich{grid-template-columns:1fr}
  .inbox-message-actions,.mail-row-actions{justify-content:stretch;width:100%}
  .inbox-message-actions .btn,.mail-row-actions .btn{width:100%}
  .mail-render-surface--framed,.mail-render-surface--inbox,.mail-render-surface--sent{padding:.45rem;border-radius:18px}
  .mail-preview-frame--compose,.mail-preview-frame--reader{min-height:460px;border-radius:16px}
  .mail-message-card{padding:.85rem;border-radius:18px}
}

/* 2026 live mail/Stripe polish */
.mail-center-section .surface-card{box-shadow:0 18px 42px rgba(15,23,42,.055)}
.mail-log-item--rich{border-radius:22px;background:linear-gradient(180deg,#fff,#fbfdff);border:1px solid #e2e8f0;padding:1rem}
.mail-log-item--rich.is-selected{border-color:#0f766e;box-shadow:0 18px 36px rgba(15,118,110,.10);background:linear-gradient(180deg,#ecfeff,#ffffff)}
.mail-log-title-row{min-width:0}
.mail-log-title-row strong{font-size:1rem;line-height:1.35;word-break:break-word}
.mail-log-meta span{display:inline-flex;align-items:center;max-width:100%;min-width:0;word-break:break-word}
.mail-log-excerpt{font-size:.94rem;line-height:1.55;color:#475569;background:#f8fafc;border:1px solid #e2e8f0;border-radius:16px;padding:.75rem .85rem;margin:.75rem 0 0;display:block;max-height:4.75rem;overflow:hidden;word-break:break-word}
.mail-log-feature-row{display:flex;flex-wrap:wrap;gap:.45rem;margin:.7rem 0 0}
.mail-log-feature-row span{display:inline-flex;align-items:center;padding:.3rem .55rem;border-radius:999px;background:#eef2ff;border:1px solid #c7d2fe;color:#3730a3;font-size:.78rem;font-weight:800}
.mail-render-surface--framed,.mail-render-surface--inbox,.mail-render-surface--sent{border:1px solid #dbe4ee;background:linear-gradient(180deg,#edf3f8,#f8fafc);box-shadow:inset 0 1px 0 rgba(255,255,255,.85)}
.mail-preview-frame{display:block;width:100%;background:#edf3f8;border-color:#dbe4ee}
.mail-message-card--selected{background:linear-gradient(180deg,#ffffff,#fbfdff);box-shadow:0 18px 40px rgba(15,23,42,.06)}
.mail-message-top{border-bottom:1px solid #e2e8f0;padding-bottom:.85rem;margin-bottom:.85rem}
.mail-message-meta span{background:#f8fafc;border:1px solid #e2e8f0;border-radius:999px;padding:.28rem .55rem}
.mail-plaintext-preview{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:.88rem;line-height:1.6;background:#0f172a;color:#e2e8f0;border-color:#0f172a}
@media (max-width:760px){
  .mail-two-column,.mail-compose-grid{grid-template-columns:1fr!important;gap:.85rem}
  .mail-center-section .surface-card{padding:1rem;border-radius:20px}
  .mail-preview-frame--compose,.mail-preview-frame--reader{min-height:520px;border-radius:14px}
  .mail-log-item--rich{padding:.9rem;border-radius:18px}
  .mail-log-meta{display:grid;gap:.4rem;font-size:.86rem}
  .mail-log-meta span{width:100%;border-radius:12px;background:#f8fafc;border:1px solid #e2e8f0;padding:.4rem .55rem}
  .mail-log-excerpt{font-size:.9rem;max-height:5.25rem}
  .mail-message-meta{display:grid;grid-template-columns:1fr;gap:.45rem}
  .mail-message-meta span{border-radius:12px}
  .mail-panel-head,.mail-viewer-head,.mail-message-top,.mail-log-title-row{gap:.65rem}
}
