/* ═══════════════════════════════════════════════════════════════
   HyperCloud Order Form — order.css  v3
   Sky-blue theme | Mobile-first | Lightweight
   ═══════════════════════════════════════════════════════════════ */

/* ── DESIGN TOKENS ────────────────────────────────────────────── */
:root {
  /* Brand — sky blue */
  --brand-500:      #38BDF8;
  --brand-600:      #0EA5E9;
  --brand-glow:     rgba(56,189,248,.13);
  --brand-glow2:    rgba(56,189,248,.22);
  --brand-dark:     #0284C7;

  /* Surface */
  --white:          #FFFFFF;
  --bg:             #F7F8FA;
  --card:           #FFFFFF;
  --text:           #1A1A2E;
  --muted:          #6B7280;
  --border:         #EAECEF;

  /* States */
  --success:        #10B981;
  --success-bg:     #ECFDF5;
  --success-bd:     #6EE7B7;
  --error:          #EF4444;
  --error-bg:       #FEF2F2;
  --error-bd:       #FCA5A5;

  /* Geometry */
  --radius:         16px;
  --radius-sm:      10px;
  --shadow:         0 2px 16px rgba(0,0,0,.06);
  --shadow-md:      0 8px 32px rgba(0,0,0,.09);
  --shadow-lg:      0 16px 48px rgba(0,0,0,.13);
  --transition:     .22s ease;
  --font:           'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── RESET ────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── HEADER ───────────────────────────────────────────────────── */
.hdr {
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 12px rgba(0,0,0,.07);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text);
}

.logo img { height: 36px; width: auto; object-fit: contain; }
.logo-text span { color: var(--brand-500); }

.hdr-secure {
  display: flex; align-items: center; gap: 6px;
  font-size: .78rem; color: var(--muted);
}

/* ── STEPPER ──────────────────────────────────────────────────── */
.stepper-wrap {
  max-width: 740px;
  margin: 1.75rem auto 0;
  padding: 0 1rem;
}

.stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.stepper::before {
  content: '';
  position: absolute;
  top: 19px; left: 8%; right: 8%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.stepper a {
    text-decoration: none;
    color: inherit;
}

.stepper::after {
  content: '';
  position: absolute;
  top: 19px; left: 8%;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-600), var(--brand-500));
  z-index: 0;
  width: var(--progress, 0%);
  transition: width .55s cubic-bezier(.4,0,.2,1);
}

.step-item {
  display: flex; flex-direction: column; align-items: center;
  gap: 6px; z-index: 1; flex: 1;
}

.step-bubble {
  width: 38px; height: 38px;
  border-radius: 50%;
  font-weight: 700; font-size: .85rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--white);
  border: 2px solid var(--border);
  color: var(--muted);
  transition: background var(--transition), border-color var(--transition),
              box-shadow var(--transition), transform var(--transition);
}

.step-item.active .step-bubble {
  background: linear-gradient(135deg, var(--brand-600), var(--brand-500));
  border-color: var(--brand-500);
  color: white;
  box-shadow: 0 0 0 5px var(--brand-glow2);
  transform: scale(1.1);
}

.step-item.done .step-bubble {
  background: var(--brand-600);
  border-color: var(--brand-600);
  color: white;
}

.step-item.done .step-bubble::after { content: '✓'; }
.step-item.done .step-bubble span   { display: none; }

.step-label {
  font-size: .66rem; font-weight: 600;
  color: var(--muted); text-align: center;
  white-space: nowrap; letter-spacing: .04em;
  text-transform: uppercase;
  transition: color var(--transition);
}

.step-item.active .step-label { color: var(--brand-600); }

@media (max-width: 380px) { .step-label { display: none; } }

/* ── MAIN LAYOUT ──────────────────────────────────────────────── */
.order-wrap {
  max-width: 960px;
  margin: 1.75rem auto;
  padding: 0 1rem 6rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 1.5rem;
  align-items: start;
}

.order-sidebar .card {
  position: sticky;
  top: 76px;
}

@media (max-width: 768px) {
  .order-wrap {
    grid-template-columns: 1fr;
    padding-bottom: 100px;
    gap: 1rem;
  }
  .order-sidebar { display: none; } /* replaced by mobile drawer */
}

/* ── CARD ─────────────────────────────────────────────────────── */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem;
  border: 1px solid var(--border);
  transition: box-shadow var(--transition), transform var(--transition);
  position: relative;
  overflow: hidden;
}

/* Glossy top highlight */
.card::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-600), var(--brand-500), transparent 80%);
  border-radius: var(--radius) var(--radius) 0 0;
  margin: -1.75rem -1.75rem 1.5rem;
  opacity: 0;
  transition: opacity var(--transition);
}

.card:hover::before { opacity: 1; }
.card:hover { box-shadow: var(--shadow-md); }

.card-title {
  font-size: 1.15rem; font-weight: 700;
  margin-bottom: 1.25rem; color: var(--text);
  letter-spacing: -.01em;
}

/* ── STEP LOADING OVERLAY ─────────────────────────────────────── */
.step-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(247,248,250,.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}

.step-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.step-overlay-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.step-overlay-spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--brand-500);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

.step-overlay-text {
  font-size: .9rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .01em;
}

@media (prefers-reduced-motion: reduce) {
  .step-overlay { backdrop-filter: none; -webkit-backdrop-filter: none; transition: none; }
  .step-overlay-spinner { animation: none; border-top-color: var(--brand-500); }
}

/* ── PAGE-ENTER ANIMATION ─────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.page-enter {
  animation: fadeUp .4s cubic-bezier(.22,.68,0,1.2) both;
}

/* ── FORMS ────────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.1rem; }

label {
  display: block;
  font-size: .85rem; font-weight: 600;
  color: var(--text); margin-bottom: 5px;
}

.req { color: var(--brand-600); font-weight: 700; margin-left: 1px; }

input[type=text],
input[type=email],
input[type=password],
input[type=tel],
select, textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font); font-size: .925rem;
  color: var(--text); background: rgba(255,255,255,.92);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  outline: none;
  appearance: none; -webkit-appearance: none;
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--brand-500);
  box-shadow: 0 0 0 4px var(--brand-glow);
  background: var(--white);
}

/* Error state */
input.is-invalid, select.is-invalid {
  border-color: var(--error);
  background: var(--error-bg);
}

@keyframes shake {
  0%,100% { transform: translateX(0); }
  20%      { transform: translateX(-4px); }
  60%      { transform: translateX(4px); }
  80%      { transform: translateX(-2px); }
}

.field-err {
  color: var(--error); font-size: .76rem;
  margin-top: 4px;
  animation: fadeIn .2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 2-column responsive grid */
.grid-2, .reg-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 540px) {
  .grid-2, .reg-grid-2 { grid-template-columns: 1fr; }
}

/* ── BUTTONS ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-family: var(--font); font-size: .92rem; font-weight: 700;
  cursor: pointer; border: none;
  transition: transform var(--transition), box-shadow var(--transition),
              opacity var(--transition), background var(--transition);
  text-decoration: none; white-space: nowrap;
  min-height: 48px;
  user-select: none;
}

.btn-primary {
  background: linear-gradient(180deg, var(--brand-500) 0%, var(--brand-600) 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(14,165,233,.38), inset 0 1px 0 rgba(255,255,255,.25);
  letter-spacing: .01em;
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(14,165,233,.52), inset 0 1px 0 rgba(255,255,255,.25);
}

.btn-primary:active:not(:disabled) { transform: translateY(0); }

.btn-primary:disabled {
  background: linear-gradient(180deg, #D1D5DB 0%, #9CA3AF 100%);
  box-shadow: none;
  cursor: not-allowed;
  opacity: .7;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--brand-500);
  color: var(--brand-600);
}

.btn-outline:hover:not(:disabled) {
  background: var(--brand-glow);
  transform: translateY(-1px);
}

.btn-sm { padding: 8px 16px; font-size: .82rem; min-height: 36px; }
.btn-full { width: 100%; }

/* Mobile: full-width buttons */
@media (max-width: 540px) {
  .btn-mobile-full { width: 100%; }
}

/* ── BILLING CYCLE CARDS ──────────────────────────────────────── */
.cycle-selector {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.cycle-card {
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 14px 10px;
  cursor: pointer;
  text-align: center;
  transition: border-color var(--transition), background var(--transition),
              transform var(--transition), box-shadow var(--transition);
  position: relative;
}

.cycle-card:hover { border-color: var(--brand-500); transform: translateY(-2px); }
.cycle-card.selected {
  border-color: var(--brand-500);
  background: var(--brand-glow);
  box-shadow: 0 0 0 3px var(--brand-glow2);
}

.cycle-card input { display: none; }
.cycle-name { font-weight: 700; font-size: .95rem; }
.cycle-price { font-size: .88rem; font-weight: 700; color: var(--brand-600); margin-top: 2px; }
.cycle-badge {
  display: inline-block; margin-top: 5px;
  padding: 2px 9px;
  background: var(--brand-600); color: white;
  border-radius: 20px; font-size: .68rem; font-weight: 700;
}

/* ── PRODUCT DESCRIPTION ──────────────────────────────────────── */
.product-desc-card {
  background: linear-gradient(135deg, var(--brand-glow), rgba(14,165,233,.04));
  border: 1.5px solid rgba(56,189,248,.3);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.product-desc-text {
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.65;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
}

.product-desc-text.expanded {
  display: block;
  -webkit-line-clamp: unset;
  line-clamp: unset;
}

.desc-toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: .8rem;
  font-weight: 700;
  color: var(--brand-600);
  padding: 4px 0 0;
  text-decoration: underline;
  text-underline-offset: 2px;
  display: block;
  margin-top: 6px;
  font-family: var(--font);
}

/* ── DOMAIN SEGMENT CONTROL ───────────────────────────────────── */
.domain-segment {
  display: flex;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 4px;
  gap: 3px;
  margin-bottom: 1.25rem;
}

.domain-seg-opt { flex: 1; min-width: 0; }
.domain-seg-opt input[type=radio] { display: none; }
.domain-seg-opt label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 8px;
  border-radius: 9px;
  border: none;
  text-align: center;
  cursor: pointer;
  font-size: .82rem; font-weight: 600;
  color: var(--muted);
  transition: background var(--transition), color var(--transition),
              box-shadow var(--transition), transform var(--transition);
  margin-bottom: 0;
  line-height: 1.3;
  white-space: normal;
}

.domain-seg-opt input:checked + label {
  background: var(--white);
  color: var(--brand-600);
  box-shadow: 0 2px 10px rgba(0,0,0,.09);
  transform: scale(1.02);
}

.domain-seg-opt label .seg-icon {
  font-size: 1.05rem;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .domain-segment { flex-direction: column; }
  .domain-seg-opt { flex: none; }
}

/* ── DOMAIN INPUT ROW ─────────────────────────────────────────── */
.domain-input-row {
  display: grid;
  grid-template-columns: 1fr 130px auto;
  gap: 8px;
  align-items: stretch;
}

@media (max-width: 540px) {
  .domain-input-row {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
  }
  .domain-input-row .tld-select {
    grid-column: 2;
    grid-row: 1;
  }
  .domain-input-row .check-btn {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
  }
}

@media (max-width: 375px) {
  .domain-input-row {
    grid-template-columns: 1fr;
  }
  .domain-input-row .tld-select { grid-column: 1; grid-row: 2; }
  .domain-input-row .check-btn  { grid-column: 1; grid-row: 3; }
}

/* ── EPP SLIDE-DOWN ───────────────────────────────────────────── */
@keyframes slideDown {
  from { opacity: 0; max-height: 0; transform: translateY(-6px); }
  to   { opacity: 1; max-height: 200px; transform: translateY(0); }
}

@keyframes slideUp {
  from { opacity: 1; max-height: 200px; }
  to   { opacity: 0; max-height: 0; }
}

.epp-group { overflow: hidden; }

.epp-group.epp-visible {
  animation: slideDown .28s cubic-bezier(.4,0,.2,1) forwards;
}

.epp-group.epp-hidden {
  animation: slideUp .22s ease forwards;
  pointer-events: none;
}

/* ── AVAILABILITY RESULT STATES ───────────────────────────────── */
.avail-result {
  margin-top: 10px;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 500;
  opacity: 0;
  transition: opacity .22s ease, transform .22s ease;
  transform: translateY(-4px);
  min-height: 0;
}

.avail-result.visible {
  opacity: 1;
  transform: translateY(0);
}

.avail-result.checking {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: #F3F4F6; border: 1px solid var(--border);
  color: var(--muted);
}

.avail-result.available {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px;
  background: var(--success-bg);
  border: 1.5px solid var(--success-bd);
  color: #065F46;
}

.avail-result.unavailable {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px;
  background: var(--error-bg);
  border: 1.5px solid var(--error-bd);
  color: #991B1B;
}

.avail-result.error-state {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: var(--brand-glow);
  border: 1px solid rgba(56,189,248,.35);
  color: #0369A1;
}

.avail-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  font-size: .8rem; font-weight: 700; flex-shrink: 0; margin-top: 1px;
}

.avail-result.available   .avail-badge { background: var(--success); color: white; }
.avail-result.unavailable .avail-badge { background: var(--error);   color: white; }

/* Spinner */
@keyframes spin { to { transform: rotate(360deg); } }
.spinner {
  width: 16px; height: 16px;
  border: 2px solid var(--border);
  border-top-color: var(--brand-500);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  flex-shrink: 0;
}

/* ── SLD HINT ─────────────────────────────────────────────────── */
.sld-hint {
  display: none;
  margin-top: 4px;
  font-size: .75rem;
  color: var(--brand-dark);
  background: var(--brand-glow);
  border: 1px solid rgba(56,189,248,.28);
  border-radius: 6px;
  padding: 4px 9px;
  animation: fadeIn .18s ease;
}

/* ── OLD DOMAIN OPTS (backward compat) ───────────────────────── */
.domain-opts { display: flex; gap: 10px; margin-bottom: 1rem; flex-wrap: wrap; }
.domain-opt { flex: 1; min-width: 100px; }
.domain-opt input[type=radio] { display: none; }
.domain-opt label {
  display: block; padding: 12px;
  border: 2px solid var(--border); border-radius: var(--radius-sm);
  text-align: center; cursor: pointer; font-weight: 600; font-size: .85rem;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
  margin-bottom: 0;
}
.domain-opt input:checked + label {
  border-color: var(--brand-500);
  background: var(--brand-glow);
  color: var(--brand-600);
}

/* ── AUTH TABS ────────────────────────────────────────────────── */
.auth-tabs {
  display: flex;
  margin-bottom: 1.5rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid var(--border);
}

.auth-tab {
  flex: 1; padding: 11px 10px;
  text-align: center; font-weight: 600; font-size: .88rem;
  cursor: pointer;
  background: var(--bg); color: var(--muted);
  border: none; transition: background var(--transition), color var(--transition);
  font-family: var(--font);
}

.auth-tab.active {
  background: linear-gradient(180deg, var(--brand-500) 0%, var(--brand-600) 100%);
  color: white;
}

.auth-panel { display: none; }
.auth-panel.active {
  display: block;
  animation: fadeIn .22s ease;
}

/* ── PRODUCT HIGHLIGHT BOX ────────────────────────────────────── */
.product-highlight {
  background: linear-gradient(135deg, var(--brand-glow), rgba(14,165,233,.06));
  border: 1.5px solid rgba(56,189,248,.4);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  margin-bottom: 1rem;
}

.product-highlight .pname { font-weight: 700; font-size: 1.05rem; }
.product-highlight .pid   { color: var(--muted); font-size: .82rem; margin-top: 3px; }

/* ── SUMMARY SIDEBAR ──────────────────────────────────────────── */
.summary-title {
  font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); margin-bottom: .9rem;
}

.summary-item {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 8px 0; font-size: .88rem;
  border-bottom: 1px solid var(--border);
}

.summary-item:last-of-type { border-bottom: none; }
.summary-label { color: var(--muted); padding-right: 8px; }
.summary-value { font-weight: 600; text-align: right; }

.summary-total {
  margin-top: .9rem; padding-top: .9rem;
  border-top: 2px solid var(--brand-500);
  display: flex; justify-content: space-between;
  font-weight: 700; font-size: 1.05rem;
}

.summary-total .amount { color: var(--brand-600); font-size: 1.2rem; }

.secure-badge {
  display: flex; align-items: center; gap: 7px;
  font-size: .76rem; color: var(--muted);
  margin-top: .9rem; padding-top: .9rem;
  border-top: 1px solid var(--border);
}

.secure-badge svg { color: var(--success); }

/* ── MOBILE SUMMARY DRAWER ────────────────────────────────────── */
.drawer-trigger {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  background: var(--white);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(0,0,0,.10);
  padding: .85rem 1.25rem;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.drawer-trigger .dt-label { font-size: .82rem; color: var(--muted); font-weight: 500; }
.drawer-trigger .dt-toggle {
  display: flex; align-items: center; gap: 6px;
  font-size: .85rem; font-weight: 700; color: var(--brand-600);
}

.drawer-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 300;
  opacity: 0;
  transition: opacity .28s ease;
}
.drawer-overlay.visible { opacity: 1; }

.drawer-panel {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 400;
  background: var(--white);
  border-radius: 20px 20px 0 0;
  padding: 1.25rem 1.5rem 2rem;
  box-shadow: 0 -10px 40px rgba(0,0,0,.15);
  transform: translateY(100%);
  transition: transform .32s cubic-bezier(.32,.72,0,1);
  max-height: 80vh;
  overflow-y: auto;
}
.drawer-panel.open { transform: translateY(0); }

.drawer-handle {
  width: 40px; height: 4px;
  background: var(--border);
  border-radius: 4px;
  margin: 0 auto .9rem;
}

.drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1rem;
}

.drawer-close {
  background: none; border: none; cursor: pointer;
  color: var(--muted); font-size: 1.4rem; line-height: 1; padding: 4px;
}

@media (max-width: 768px) { .drawer-trigger { display: flex; } }

/* ── ALERTS ───────────────────────────────────────────────────── */
.alert {
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  margin-bottom: 1rem;
  display: flex; gap: 9px; align-items: flex-start;
}

.alert-error   { background: var(--error-bg); border: 1px solid var(--error-bd); color: var(--error); }
.alert-success { background: var(--success-bg); border: 1px solid var(--success-bd); color: #065F46; }
.alert-info    { background: var(--brand-glow); border: 1px solid rgba(56,189,248,.35); color: #0369A1; }

/* ── REVIEW ROWS ──────────────────────────────────────────────── */
.review-row {
  display: flex; justify-content: space-between;
  padding: 9px 0; border-bottom: 1px solid var(--border);
  font-size: .9rem;
}
.review-row:last-child { border: none; }
.review-row .key { color: var(--muted); }
.review-row .val { font-weight: 600; }

/* ── ERROR MSG ────────────────────────────────────────────────── */
.error-msg {
  color: var(--error); font-size: .8rem;
  margin-top: 4px; display: flex; align-items: center; gap: 4px;
}

/* ── PAYMENT NOTICE ───────────────────────────────────────────── */
.payment-notice {
  background: var(--brand-glow);
  border: 1.5px solid rgba(56,189,248,.4);
  border-radius: var(--radius-sm);
  padding: .9rem 1rem;
  margin-bottom: 1rem;
  font-size: .85rem;
}

/* ── PREFS: REDUCED MOTION ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* ── FOCUS VISIBILITY ─────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--brand-500);
  outline-offset: 2px;
}




.checkout-block {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,.72);
  padding: 1rem;
  margin-top: 1rem;
}

.checkout-block-title {
  font-size: .92rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: .85rem;
}

.checkout-help {
  color: var(--muted);
  font-size: .8rem;
  margin-top: 6px;
}

/* ═══════════════════════════════════════════════════════════════
   Checkout UI v4 — shared modern card system for every order step
   ═══════════════════════════════════════════════════════════════ */
:root {
  --brand-700:      #0369A1;
  --text-dark:      #0F172A;
  --text-muted:     #64748B;
  --orange:         #0EA5E9;
  --orange-light:   #38BDF8;
  --bg:             #F3F7FB;
  --card:           rgba(255,255,255,.96);
  --text:           #0F172A;
  --muted:          #64748B;
  --border:         #DCE6F1;
  --surface-soft:   #F8FBFF;
  --surface-blue:   #EFF9FF;
  --radius:         24px;
  --radius-sm:      13px;
  --shadow:         0 18px 48px rgba(15,23,42,.075);
  --shadow-md:      0 24px 64px rgba(15,23,42,.11);
}

body {
  background:
    radial-gradient(1000px 520px at -8% -12%, rgba(56,189,248,.19), transparent 62%),
    radial-gradient(900px 480px at 108% 5%, rgba(14,165,233,.12), transparent 64%),
    linear-gradient(180deg, #F8FBFE 0%, #EFF5FA 100%);
  background-attachment: fixed;
}

.hdr {
  height: 70px;
  padding: 0 clamp(1rem, 4vw, 3rem);
  background: rgba(255,255,255,.86);
  border-bottom-color: rgba(148,163,184,.2);
  box-shadow: 0 8px 30px rgba(15,23,42,.045);
}

.logo img { height: 40px; }

.stepper-wrap {
  max-width: 880px;
  margin-top: 2rem;
}

.stepper {
  padding: 14px 18px 12px;
  border: 1px solid rgba(203,213,225,.72);
  border-radius: 22px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 12px 36px rgba(15,23,42,.055);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.stepper::before,
.stepper::after {
  top: 33px;
  left: 10%;
  right: 10%;
}

.step-bubble {
  width: 40px;
  height: 40px;
  background: #F8FAFC;
  border-color: #D6E1ED;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95);
}

.step-item.active .step-bubble {
  box-shadow: 0 0 0 6px rgba(56,189,248,.14), 0 8px 18px rgba(14,165,233,.26);
}

.step-label {
  font-size: .68rem;
  font-weight: 750;
  letter-spacing: .07em;
}

.order-wrap {
  max-width: 1180px;
  margin-top: 2rem;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
}

.card {
  border-radius: var(--radius);
  padding: clamp(1.35rem, 3vw, 2rem);
  border: 1px solid rgba(203,213,225,.72);
  background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(250,253,255,.93));
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.card::before {
  height: 4px;
  margin: calc(clamp(1.35rem, 3vw, 2rem) * -1) calc(clamp(1.35rem, 3vw, 2rem) * -1) 1.5rem;
  opacity: 1;
  background: linear-gradient(90deg, var(--brand-700), var(--brand-500) 48%, rgba(56,189,248,.08) 92%);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.checkout-card {
  overflow: hidden;
}

.card-heading {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-bottom: 1.35rem;
  margin-bottom: 1.35rem;
  border-bottom: 1px solid var(--border);
}

.card-heading-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-700), var(--brand-500));
  box-shadow: 0 10px 24px rgba(14,165,233,.25), inset 0 1px 0 rgba(255,255,255,.24);
}

.card-heading-icon svg {
  width: 23px;
  height: 23px;
}

.card-heading-copy { min-width: 0; }

.card-eyebrow {
  margin-bottom: 3px;
  color: var(--brand-700);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.card-title {
  margin: 0;
  color: var(--text-dark);
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.25;
}

.card-subtitle {
  margin-top: 5px;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.55;
}

.form-section {
  padding: 1.25rem;
  margin-top: 1rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(248,251,255,.96), rgba(255,255,255,.94));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95);
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
}

.section-heading-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  color: var(--brand-700);
  background: rgba(56,189,248,.13);
}

.section-heading-icon svg { width: 17px; height: 17px; }

.section-title {
  color: var(--text-dark);
  font-size: .98rem;
  font-weight: 780;
}

.section-note {
  margin-top: 2px;
  color: var(--muted);
  font-size: .77rem;
  line-height: 1.45;
}

.form-group { margin-bottom: 1.15rem; }
.form-group:last-child { margin-bottom: 0; }

label {
  margin-bottom: 7px;
  font-size: .82rem;
  font-weight: 700;
}

input[type=text],
input[type=email],
input[type=password],
input[type=tel],
select,
textarea {
  min-height: 50px;
  padding: 12px 14px;
  border-color: #D4E0EC;
  border-radius: 13px;
  background: rgba(255,255,255,.96);
  box-shadow: inset 0 1px 2px rgba(15,23,42,.025);
}

input:hover:not(:disabled), select:hover:not(:disabled), textarea:hover:not(:disabled) {
  border-color: #B9CDDF;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--brand-500);
  box-shadow: 0 0 0 4px rgba(56,189,248,.13), 0 8px 22px rgba(14,165,233,.07);
}

input:disabled {
  color: #475569;
  background: #F1F5F9;
}

.btn {
  min-height: 50px;
  padding: 12px 22px;
  border-radius: 13px;
  font-size: .88rem;
  box-shadow: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-700), var(--brand-600) 55%, var(--brand-500));
  box-shadow: 0 10px 24px rgba(14,165,233,.25), inset 0 1px 0 rgba(255,255,255,.24);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(14,165,233,.33), inset 0 1px 0 rgba(255,255,255,.28);
}

.btn-outline {
  color: #334155;
  border: 1.5px solid #CBD9E7;
  background: rgba(255,255,255,.82);
}

.btn-outline:hover:not(:disabled) {
  color: var(--brand-700);
  border-color: var(--brand-500);
  background: var(--surface-blue);
}

.btn-sm { min-height: 40px; padding: 8px 15px; }

.action-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 1.25rem;
}

.action-row .btn-primary { flex: 1; }

.action-row--outside {
  flex-wrap: wrap;
  margin-top: .85rem;
}

.product-highlight {
  position: relative;
  padding: 1.2rem 1.25rem 1.2rem 1.35rem;
  border: 1px solid rgba(56,189,248,.3);
  border-radius: 18px;
  background:
    radial-gradient(300px 120px at 100% 0%, rgba(56,189,248,.16), transparent 70%),
    linear-gradient(145deg, #F0FAFF, #F8FCFF);
  overflow: hidden;
}

.product-highlight::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--brand-700), var(--brand-500));
}

.product-highlight .pname {
  color: var(--text-dark);
  font-size: 1.08rem;
  font-weight: 800;
}

.product-desc-card {
  border-radius: 16px;
  background: #F8FBFE;
  border-color: #D9EAF6;
}

.domain-segment {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
}

.domain-seg-opt label {
  min-height: 94px;
  padding: 14px 10px;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
}

.domain-seg-opt input:checked + label {
  color: var(--brand-700);
  border-color: var(--brand-500);
  background: linear-gradient(145deg, #F0FAFF, #FFF);
  box-shadow: 0 0 0 3px rgba(56,189,248,.11), 0 12px 24px rgba(14,165,233,.09);
}

.domain-seg-opt label .seg-icon { font-size: 1.25rem; }

.auth-tabs {
  gap: 6px;
  padding: 5px;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #F1F6FA;
}

.auth-tab {
  min-height: 44px;
  border-radius: 11px;
  background: transparent;
}

.auth-tab.active {
  color: var(--brand-700);
  background: #fff;
  box-shadow: 0 7px 18px rgba(15,23,42,.08);
}

.auth-panel.active {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(145deg, #F8FBFE, #FFF);
}

.review-list {
  padding: .3rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface-soft);
}

.review-row {
  gap: 16px;
  padding: 14px 0;
}

.review-row .key {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .025em;
}

.review-row .val {
  max-width: 68%;
  text-align: right;
  word-break: break-word;
}

.promo-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.promo-row input { flex: 1; min-width: 210px; }

.payment-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background: linear-gradient(145deg, #EFF9FF, #F7FCFF);
}

.payment-notice-icon {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: var(--brand-700);
  background: rgba(56,189,248,.14);
}

.checkout-block {
  border-radius: 17px;
  background: #FAFCFE;
  border-color: #D9E4EF;
}

.checkout-block-title { color: var(--text-dark); }

.summary-card {
  padding: 1.5rem;
  border-color: rgba(186,205,222,.78);
  background:
    radial-gradient(260px 130px at 100% 0%, rgba(56,189,248,.12), transparent 72%),
    linear-gradient(145deg, rgba(255,255,255,.98), rgba(247,252,255,.96));
}

.summary-card::before {
  margin: -1.5rem -1.5rem 1.3rem;
}

.summary-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1rem;
  color: #334155;
  font-size: .72rem;
  letter-spacing: .1em;
}

.summary-title::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-500);
  box-shadow: 0 0 0 4px rgba(56,189,248,.12);
}

.summary-item {
  padding: 11px 0;
  border-bottom-color: #E5EDF5;
}

.summary-label { font-size: .78rem; }
.summary-value { color: #1E293B; font-size: .84rem; }

.secure-badge {
  padding: .75rem .85rem;
  margin-top: 1rem;
  border: 1px solid #D8EEE5;
  border-radius: 12px;
  background: #F4FBF7;
}

.status-card {
  max-width: 660px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3rem);
  text-align: center;
}

.status-icon {
  width: 82px;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.4rem;
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-700), var(--brand-500));
  box-shadow: 0 18px 36px rgba(14,165,233,.27);
}

.status-icon--success {
  background: linear-gradient(135deg, #059669, #34D399);
  box-shadow: 0 18px 36px rgba(16,185,129,.24);
}

.status-icon svg { width: 38px; height: 38px; }

.status-title {
  margin-bottom: .6rem;
  color: var(--text-dark);
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 850;
  letter-spacing: -.03em;
}

.status-copy {
  max-width: 520px;
  margin: 0 auto 1.4rem;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.7;
}

.status-detail {
  padding: 1rem 1.1rem;
  margin: 1.2rem 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-soft);
}

.status-actions {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.alert {
  padding: 13px 15px;
  border-radius: 15px;
  box-shadow: 0 8px 22px rgba(15,23,42,.04);
}

.drawer-trigger {
  padding: 1rem 1.25rem;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(14px);
}

.drawer-panel {
  border-radius: 26px 26px 0 0;
  background: linear-gradient(180deg, #FFF, #F8FBFE);
}

@media (max-width: 900px) {
  .order-wrap {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 18px;
  }
}

@media (max-width: 768px) {
  .stepper-wrap { margin-top: 1.25rem; }

  .stepper {
    padding: 11px 5px 10px;
    border-radius: 18px;
  }

  .stepper::before,
  .stepper::after { top: 30px; }

  .order-wrap {
    grid-template-columns: 1fr;
    margin-top: 1.25rem;
  }

  .domain-segment { grid-template-columns: 1fr; }
  .domain-seg-opt label { min-height: 58px; flex-direction: row; }
}

@media (max-width: 540px) {
  .hdr { height: 62px; }
  .logo img { height: 34px; }
  .hdr-secure { display: none; }

  .step-bubble { width: 36px; height: 36px; }
  .stepper::before,
  .stepper::after { top: 28px; }

  .card-heading-icon {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    border-radius: 13px;
  }

  .card-subtitle { font-size: .8rem; }
  .form-section { padding: 1rem; }

  .action-row {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .action-row .btn { width: 100%; }

  .review-row { flex-direction: column; gap: 4px; }
  .review-row .val { max-width: 100%; text-align: left; }

  .promo-row { flex-direction: column; }
  .promo-row input, .promo-row .btn { width: 100%; min-width: 0; }
}

/* ==============================================================
   Checkout UI v5 — flat order flow inspired by the supplied
   HelloGov reference. Deliberately quiet: no gradients or glow.
   ============================================================== */
:root {
  --brand-500: #3C969A;
  --brand-600: #147E84;
  --brand-700: #045967;
  --brand-dark: #045967;
  --brand-glow: rgba(60, 150, 154, .09);
  --brand-glow2: rgba(60, 150, 154, .14);
  --bg: #EFF3F6;
  --card: #FFFFFF;
  --surface-soft: #F8FAFB;
  --surface-blue: #F2FAFA;
  --text: #070C0E;
  --text-dark: #070C0E;
  --muted: #68767B;
  --text-muted: #68767B;
  --border: #D8E0E3;
  --success: #1B6345;
  --success-bg: #ECFBF2;
  --success-bd: #B5EFCE;
  --radius: 10px;
  --radius-sm: 7px;
  --shadow: none;
  --shadow-md: none;
  --shadow-lg: none;
}

body {
  background: #EFF3F6;
  background-image: none;
}

.hdr {
  width: min(calc(100% - 40px), 1100px);
  height: 58px;
  margin: 36px auto 0;
  padding: 0 22px;
  position: relative;
  top: auto;
  border: 1px solid var(--border);
  border-radius: 12px 12px 0 0;
  background: #FFFFFF;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.logo img { height: 34px; }

.stepper-wrap {
  max-width: 820px;
  margin-top: 22px;
  padding: 0 20px;
}

.stepper {
  gap: 24px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.stepper::before,
.stepper::after { display: none; }

.step-item {
  min-width: 0;
  padding: 0 4px 12px;
  flex-direction: row;
  justify-content: center;
  gap: 3px;
  border-bottom: 2px solid #D9E0E2;
}

.step-bubble,
.step-item.active .step-bubble,
.step-item.done .step-bubble {
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  color: var(--text);
  background: transparent;
  box-shadow: none;
  transform: none;
  font-size: .73rem;
  font-weight: 700;
}

.step-bubble::before { content: 'Step '; }
.step-bubble::after,
.step-item.done .step-bubble::after { content: ':'; }
.step-item.done .step-bubble span { display: inline; }

.step-label {
  color: var(--text);
  font-size: .73rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.step-item.active { border-bottom-color: var(--brand-500); }
.step-item.active .step-bubble,
.step-item.active .step-label { color: var(--brand-700); }
.step-item.done .step-bubble,
.step-item.done .step-label { color: #557176; }

.order-wrap {
  max-width: 1040px;
  margin: 28px auto;
  grid-template-columns: minmax(0, 1fr) 292px;
  gap: 22px;
}

.card,
.summary-card {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #FFFFFF;
  background-image: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.card::before,
.summary-card::before { display: none; }
.card:hover { box-shadow: none; }

.card-heading {
  display: block;
  padding: 0;
  margin: 0 0 20px;
  border: 0;
}

.card-heading-icon,
.card-eyebrow { display: none; }

.card-title {
  margin: 0 0 5px;
  color: var(--text);
  font-size: 1.16rem;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.35;
}

.card-subtitle {
  max-width: 600px;
  margin: 0;
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.55;
}

.form-section {
  padding: 16px;
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #FFFFFF;
  background-image: none;
  box-shadow: none;
}

.section-heading {
  display: block;
  margin-bottom: 13px;
}

.section-heading-icon { display: none; }

.section-title,
.server-config-title {
  color: var(--text);
  font-size: .9rem;
  font-weight: 700;
}

.section-note,
.server-config-note {
  color: var(--muted);
  font-size: .73rem;
}

.form-group { margin-bottom: 14px; }
.form-group:last-child { margin-bottom: 0; }

label {
  margin-bottom: 6px;
  color: var(--text);
  font-size: .75rem;
  font-weight: 600;
}

input[type=text],
input[type=email],
input[type=password],
input[type=tel],
select,
textarea {
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid #C9D3D6;
  border-radius: 6px;
  color: var(--text);
  background: #FFFFFF;
  box-shadow: none;
  font-size: .84rem;
}

input:hover:not(:disabled),
select:hover:not(:disabled),
textarea:hover:not(:disabled) { border-color: #9EADB1; }

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand-500);
  background: #FFFFFF;
  box-shadow: 0 0 0 2px rgba(60, 150, 154, .12);
}

input:disabled { background: #F2F5F6; }

.btn {
  min-height: 42px;
  padding: 9px 18px;
  border-radius: 6px;
  font-size: .82rem;
  font-weight: 600;
  box-shadow: none;
}

.btn-primary,
.btn-primary:disabled {
  color: #FFFFFF;
  background: #159BA1;
  background-image: none;
  box-shadow: none;
}

.btn-primary:hover:not(:disabled) {
  background: #0E858B;
  transform: none;
  box-shadow: none;
}

.btn-primary:disabled { background: #9BAEB1; }

.btn-outline {
  color: #334448;
  border: 1px solid #C9D3D6;
  background: #FFFFFF;
}

.domain-seg-opt .seg-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  flex: 0 0 18px;
  color: var(--brand-500);
}

.domain-seg-opt .seg-icon svg { width: 18px; height: 18px; }

.btn-outline:hover:not(:disabled) {
  color: var(--brand-700);
  border-color: var(--brand-500);
  background: #F4FBFB;
  transform: none;
}

.btn-sm { min-height: 36px; padding: 7px 13px; }

.action-row {
  justify-content: flex-end;
  gap: 9px;
  margin-top: 18px;
}

.action-row .btn-primary { flex: 0 1 220px; }

.product-highlight {
  padding: 14px 16px;
  margin-bottom: 16px;
  border: 1px solid #9FCBCD;
  border-radius: 8px;
  background: #F4FBFB;
  background-image: none;
}

.product-highlight::before { display: none; }
.product-highlight .pname { font-size: .94rem; font-weight: 700; }
.product-highlight .pid { font-size: .72rem; }

.product-desc-card {
  padding: 14px 16px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #FAFBFB;
  background-image: none;
}

.cycle-selector {
  gap: 9px !important;
}

.cycle-card {
  min-height: 112px !important;
  padding: 16px 10px 12px !important;
  border: 1px solid #CDD6D9 !important;
  border-radius: 8px !important;
  background: #FFFFFF !important;
  box-shadow: none !important;
  transform: none !important;
}

.cycle-card:hover { border-color: #82BFC2 !important; }

.cycle-card.selected,
.cycle-card:has(input:checked) {
  border-color: var(--brand-500) !important;
  background: #F2FAFA !important;
  background-image: none !important;
  box-shadow: inset 0 0 0 1px var(--brand-500) !important;
}

.cycle-card.has-discount { padding-top: 24px !important; }

.discount-ribbon {
  top: 7px !important;
  right: 7px !important;
  width: auto !important;
  padding: 2px 6px !important;
  border-radius: 999px;
  transform: none !important;
  background: #B5EFCE !important;
  color: #1B6345 !important;
  font-size: .58rem !important;
  box-shadow: none !important;
}

.discount-ribbon::before,
.discount-ribbon::after { display: none !important; }

.cycle-name { margin-bottom: 5px !important; font-size: .8rem !important; }
.cycle-price { color: var(--brand-700) !important; font-size: .88rem !important; }
.cycle-price-old { font-size: .7rem !important; }
.cycle-saving { margin-top: 5px !important; color: #1B6345 !important; font-size: .66rem !important; }
.cycle-subnote { font-size: .62rem !important; }

.domain-segment {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.domain-seg-opt label {
  min-height: 52px;
  padding: 10px 12px;
  flex-direction: row;
  justify-content: flex-start;
  border: 1px solid #CDD6D9;
  border-radius: 7px;
  color: #35454A;
  background: #FFFFFF;
}

.domain-seg-opt input:checked + label {
  color: var(--brand-700);
  border-color: var(--brand-500);
  background: #F2FAFA;
  background-image: none;
  box-shadow: inset 0 0 0 1px var(--brand-500);
  transform: none;
}

.auth-tabs {
  gap: 10px;
  padding: 0;
  margin-bottom: 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.auth-tab {
  min-height: 44px;
  border: 1px solid #CDD6D9;
  border-radius: 7px;
  color: #35454A;
  background: #FFFFFF;
}

.auth-tab.active {
  color: var(--brand-700);
  border-color: var(--brand-500);
  background: #F2FAFA;
  background-image: none;
  box-shadow: inset 0 0 0 1px var(--brand-500);
}

.auth-panel.active {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #FFFFFF;
  background-image: none;
}

.review-list {
  padding: 2px 16px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #FFFFFF;
}

.review-row { padding: 12px 0; }
.review-row .key { font-size: .74rem; font-weight: 500; }
.review-row .val { font-size: .8rem; }

.payment-notice,
.secure-badge {
  border: 1px solid #B5EFCE;
  border-radius: 7px;
  background: #ECFBF2;
  background-image: none;
  box-shadow: none;
}

.payment-notice-icon {
  border-radius: 5px;
  color: #1B6345;
  background: #D8F7E5;
}

.checkout-block {
  border-radius: 9px;
  border-color: var(--border);
  background: #FFFFFF;
}

.summary-card { padding: 18px; }

.summary-title {
  display: block;
  margin-bottom: 12px;
  color: var(--text);
  font-size: .72rem;
  letter-spacing: .04em;
}

.summary-title::before { display: none; }
.summary-item { padding: 9px 0; border-bottom-color: #E5EAEC; }
.summary-label { font-size: .73rem; }
.summary-value { color: var(--text); font-size: .76rem; }
.summary-total { border-top-color: var(--brand-500); }

.alert {
  padding: 11px 13px;
  border-radius: 7px;
  box-shadow: none;
}

.status-layout {
  display: block;
  max-width: 680px;
}

.status-card {
  max-width: 640px;
  padding: 34px;
}

.status-icon,
.status-icon--success {
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  border-radius: 50%;
  color: var(--brand-700);
  border: 1px solid #9FCBCD;
  background: #F2FAFA;
  background-image: none;
  box-shadow: none;
}

.status-icon--success {
  color: #1B6345;
  border-color: #B5EFCE;
  background: #ECFBF2;
}

.status-icon svg { width: 28px; height: 28px; }
.status-title { font-size: 1.35rem; font-weight: 700; }
.status-copy { font-size: .82rem; }

.status-detail {
  border-radius: 8px;
  background: #F8FAFB;
}

.drawer-trigger {
  background: #FFFFFF;
  backdrop-filter: none;
}

.drawer-panel {
  border-radius: 14px 14px 0 0;
  background: #FFFFFF;
  background-image: none;
}

@media (max-width: 900px) {
  .order-wrap {
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .hdr {
    width: 100%;
    margin-top: 0;
    border-width: 0 0 1px;
    border-radius: 0;
  }

  .stepper {
    gap: 8px;
  }

  .order-wrap {
    grid-template-columns: 1fr;
    margin-top: 20px;
  }

  .domain-segment { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .hdr { height: 56px; padding: 0 14px; }
  .logo img { height: 31px; }

  .stepper-wrap {
    margin-top: 17px;
    padding: 0 12px;
    overflow-x: auto;
  }

  .stepper { min-width: 0; }
  .step-label { display: none; }

  .cycle-selector {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .card,
  .summary-card { padding: 17px; }

  .card-title { font-size: 1.05rem; }
  .form-section { padding: 14px; }

  .action-row {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .action-row .btn,
  .action-row .btn-primary { width: 100%; flex-basis: auto; }

  .review-row { flex-direction: column; gap: 3px; }
  .review-row .val { max-width: 100%; text-align: left; }
}

@media (max-width: 340px) {
  .cycle-selector { grid-template-columns: 1fr !important; }
}

/* v5.1 — continuous checkout surface and structured product specs */
.checkout-surface {
  width: min(calc(100% - 40px), 1100px);
  min-height: calc(100vh - 94px);
  margin: 0 auto 36px;
  padding: 22px 0 1px;
  border: 1px solid #E2E8EA;
  border-top: 0;
  border-radius: 0 0 12px 12px;
  background: linear-gradient(90deg, #FFFFFF 0 46px, #FCFDFD 46px 100%);
}

.checkout-surface .stepper-wrap { margin-top: 0; }

.product-spec-card {
  padding: 13px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #FAFBFB;
}

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

.product-spec-item {
  min-width: 0;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  border: 1px solid #DCE4E6;
  border-radius: 7px;
  color: #26363A;
  background: #FFFFFF;
  font-size: .78rem;
  font-weight: 500;
  line-height: 1.4;
}

.product-spec-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #147E84;
  background: #E7F7F4;
}

.product-spec-icon svg { width: 15px; height: 15px; }

@media (max-width: 768px) {
  .checkout-surface {
    width: 100%;
    min-height: calc(100vh - 56px);
    margin-bottom: 0;
    padding-top: 17px;
    border: 0;
    border-radius: 0;
    background: #FCFDFD;
  }
}

@media (max-width: 540px) {
  .product-spec-grid { grid-template-columns: 1fr; }
  .product-spec-item { min-height: 40px; }
}

/* v5.2 — narrow-phone containment and iOS focus zoom prevention */
.recaptcha-group {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.recaptcha-widget {
  width: 304px;
  max-width: none;
  transform-origin: top left;
}

@media (max-width: 540px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .checkout-surface,
  .order-wrap,
  .order-main,
  .checkout-card,
  .card-heading,
  .card-heading-copy,
  .auth-tabs,
  .auth-panel,
  .auth-panel form,
  .checkout-block,
  .review-list,
  .review-row,
  .promo-row,
  .payment-notice {
    min-width: 0;
    max-width: 100%;
  }

  .auth-tab {
    min-width: 0;
    padding-inline: 8px;
    white-space: normal;
  }

  .review-row .val,
  .checkout-block label span,
  .payment-notice > div,
  .status-detail {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  input[type=text],
  input[type=email],
  input[type=password],
  input[type=tel],
  select,
  textarea {
    max-width: 100%;
    font-size: 16px;
  }

  .auth-panel.active { padding: 12px; }

  .recaptcha-widget {
    transform: scale(.9);
    margin-bottom: -8px;
  }
}

@media (max-width: 350px) {
  .order-wrap { padding-inline: 8px; }

  .card,
  .summary-card { padding: 14px; }

  .auth-panel.active { padding: 10px; }

  .recaptcha-widget {
    transform: scale(.75);
    margin-bottom: -20px;
  }
}
