/**
 * OctoPrime Light Theme CSS
 * Clean white background, no dark theme, no header/footer bars.
 */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --ink: #17251e;
  --muted: #58675e;
  --line: #edf0e8;
  --border: #dedfd9;
  --bg-page: #ffffff;
  --bg-aside: #fbfaf7;
  --accent: #ca6c3d;
  --accent-hover: #a9532b;
  --green: #059669;
  --green-bg: #ecfdf5;
  --green-border: rgba(167, 243, 208, 0.85);
}
body.co-body {
  background: #ffffff;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
.hide { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* 2-Column Responsive Layout */
.co-main {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  background: #ffffff;
}
@media (min-width: 1024px) {
  .co-main {
    flex-direction: row;
  }
}

/* LEFT COLUMN: Payment */
.co-pay-col {
  width: 100%;
  order: 2;
  background: #ffffff;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
@media (min-width: 1024px) {
  .co-pay-col {
    width: 58.333333%;
    order: 1;
    padding: 56px 56px;
  }
}
.co-pay-wrap {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}
@media (min-width: 1024px) {
  .co-pay-wrap {
    margin-left: auto;
    margin-right: 0;
  }
}

.co-pay-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  margin-bottom: 20px;
}
.co-pay-head h1 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}
.co-secure-msg {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}
.co-ic-lock {
  width: 14px;
  height: 14px;
  color: var(--accent);
  flex-shrink: 0;
}

/* Payment badges row */
.co-badges-row {
  margin-bottom: 24px;
}
.pay-badges {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.pay-badges .pb {
  height: 28px;
  width: 42px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease;
}
.pay-badges .pb:hover {
  transform: scale(1.05);
}
.pay-badges .pb svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Email Form Card */
.co-email-card {
  border: 1px solid var(--border);
  background: var(--bg-aside);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  margin-bottom: 24px;
}
.co-email-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}
.co-email-card p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 16px;
}
.co-field-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}
.co-field input {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #ffffff;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  margin-bottom: 16px;
}
.co-field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(202, 108, 61, 0.2);
}
.co-btn-primary {
  width: 100%;
  padding: 14px 20px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  border-radius: 12px;
  border: 0;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: background-color 0.15s ease;
}
.co-btn-primary:hover {
  background: var(--accent-hover);
}
.co-btn-primary.is-loading {
  opacity: 0.7;
  pointer-events: none;
}

/* Who email strip */
.co-who {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-aside);
  font-size: 13px;
  color: var(--ink);
  margin-bottom: 16px;
}
.co-who span {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.co-who button {
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--accent);
  font-weight: 600;
  font-size: 13px;
}

/* Whop Host */
.co-host {
  min-height: 380px;
  position: relative;
  background: #ffffff;
}
.co-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}
.co-notready {
  border: 1px dashed var(--border);
  border-radius: 14px;
  padding: 24px;
  text-align: center;
  background: var(--bg-aside);
}
.co-notready h2 {
  font-size: 15px;
  margin-bottom: 8px;
}
.co-notready p {
  font-size: 13px;
  color: var(--muted);
}
.co-dev {
  margin-top: 14px;
}

/* RIGHT COLUMN: Order Summary & Trust */
.co-sum-col {
  width: 100%;
  order: 1;
  background: var(--bg-aside);
  border-bottom: 1px solid var(--border);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
@media (min-width: 1024px) {
  .co-sum-col {
    width: 41.666667%;
    order: 2;
    border-bottom: 0;
    border-left: 1px solid var(--border);
    padding: 56px 48px;
  }
}
.co-sum-wrap {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}
@media (min-width: 1024px) {
  .co-sum-wrap {
    margin-left: 0;
    margin-right: auto;
  }
}

/* Summary Card (White) */
.co-order-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  margin-bottom: 16px;
}

.co-discount-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 8px;
}
.co-promo-box {
  margin-bottom: 16px;
}
.co-promo-form {
  display: flex;
  gap: 8px;
}
.co-promo-input-wrap {
  position: relative;
  flex: 1;
}
.co-promo-tag-ic {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #809087;
  pointer-events: none;
}
.co-promo-form input {
  width: 100%;
  text-transform: uppercase;
  font-size: 12px;
  padding: 10px 12px 10px 36px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-aside);
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s, background-color 0.15s;
}
.co-promo-form input:focus {
  border-color: var(--accent);
  background: #ffffff;
}
.co-btn-apply {
  padding: 10px 18px;
  background: #8e95a2;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 12px;
  border: 0;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.15s;
}
.co-btn-apply:hover {
  background: #64748b;
}
.co-btn-apply:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.co-promo-ok {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--green-bg);
  color: #065f46;
  border: 1px solid var(--green-border);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 12px;
}
.co-promo-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}
.co-promo-ok button {
  background: none;
  border: 0;
  cursor: pointer;
  color: #047857;
  font-weight: 600;
  font-size: 12px;
  text-decoration: underline;
}

/* Price lines */
.co-price-lines {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}
.co-line-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.co-subtotal-val {
  font-weight: 600;
  color: var(--ink);
}
.co-disc-val {
  font-weight: 700;
  color: var(--green);
}
.co-free-del {
  font-weight: 700;
  font-size: 11px;
  color: var(--green);
  letter-spacing: 0.03em;
}

/* Total Row */
.co-total-row {
  border-top: 1px solid var(--line);
  margin-top: 14px;
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.co-total-lbl {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.co-total-box {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.co-curr-code {
  font-size: 12px;
  font-weight: 600;
  color: #809087;
}
.co-total-amount {
  font-size: 24px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}

/* Trust Stack */
.co-trust-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.co-trust-ssl {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border-radius: 12px;
  background: var(--green-bg);
  border: 1px solid var(--green-border);
}
.co-ssl-ic {
  color: var(--green);
  flex-shrink: 0;
  margin-top: 1px;
}
.co-trust-mail {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--border);
}
.co-mail-ic {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 1px;
}
.co-trust-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
}
.co-trust-sub {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}

/* Spinner */
.co-spin {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  animation: co-spin .85s linear infinite;
  display: inline-block;
}
.co-spin.sm {
  width: 28px;
  height: 28px;
  border-width: 2.5px;
}
@keyframes co-spin {
  to { transform: rotate(360deg); }
}

/* Overlay Modal */
.co-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(251, 250, 247, 0.85);
  backdrop-filter: blur(6px);
  padding: 16px;
  transition: opacity 0.3s;
}
.co-overlay.fade {
  opacity: 0;
}
.co-overlay-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
  text-align: center;
  max-width: 420px;
  width: 100%;
}
.co-overlay-card h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin: 16px 0 14px;
}
.co-ov-bar {
  width: 100%;
  height: 12px;
  border-radius: 99px;
  background: var(--line);
  overflow: hidden;
  margin-bottom: 12px;
}
.co-ov-bar i {
  display: block;
  height: 100%;
  background: var(--accent);
  width: 35%;
  border-radius: 99px;
  transition: width 0.7s ease;
}
.co-overlay-card p {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.co-err {
  color: #dc2626;
  font-size: 12px;
  margin-top: 6px;
}

/* Completion / Thank You Page */
.co-done-page {
  min-height: 100vh;
  background: var(--bg-aside);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
}
.co-done-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 32px;
  max-width: 600px;
  width: 100%;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
  text-align: center;
}
.co-done-emoji {
  font-size: 42px;
  margin-bottom: 12px;
}
.co-done-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.co-done-lead {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 24px;
}
.co-done-alert {
  background: var(--green-bg);
  border: 1px solid var(--green-border);
  border-radius: 14px;
  padding: 20px;
  text-align: left;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 24px;
}
.co-done-alert-ic {
  color: var(--green);
  flex-shrink: 0;
  margin-top: 2px;
}
.co-done-alert-strong {
  display: block;
  color: var(--ink);
  font-size: 13.5px;
  margin-bottom: 4px;
}
.co-done-alert-text {
  font-size: 13px;
  color: #065f46;
  line-height: 1.45;
  margin-bottom: 4px;
}
.co-done-alert-sub {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}
.co-done-actions {
  margin: 24px 0 16px;
}
.co-btn-lg {
  padding: 16px 28px;
  font-size: 15px;
}
.co-done-help {
  font-size: 12.5px;
  color: var(--muted);
}
.co-done-help a {
  color: var(--accent);
  text-decoration: underline;
}
