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

:root {
  --red: #FF3B3B;
  --red-glow: rgba(255,59,59,0.35);
  --red-dim: rgba(255,59,59,0.08);
  --bg: #000;
  --panel: rgba(10,10,10,0.85);
  --border: rgba(255,255,255,0.07);
  --border-red: rgba(255,59,59,0.22);
  --text: #fff;
  --muted: rgba(255,255,255,0.42);
  --font: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --radius: 14px;
}

html { height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Particles ────────────────────────────────────────────────── */
#co-particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ── Nav ──────────────────────────────────────────────────────── */
.co-nav {
  position: relative;
  z-index: 20;
  height: 58px;
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(20px);
}

.co-nav-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 28px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}

.co-nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 15px;
  flex: 1;
  transition: opacity .2s;
}
.co-nav-logo:hover { opacity: 0.75; }
.co-nav-logo img { width: 26px; height: 26px; object-fit: contain; }

.co-nav-secure {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.co-nav-back {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color .2s;
  white-space: nowrap;
}
.co-nav-back:hover { color: var(--text); }

/* ── Main ─────────────────────────────────────────────────────── */
.co-main {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 58px);
  padding: 44px 24px 72px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.co-grid {
  width: 100%;
  max-width: 1020px;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 20px;
  align-items: start;
}

/* ── Panel ────────────────────────────────────────────────────── */
.co-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.co-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.co-panel-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}

.co-stripe-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 5px 10px;
}

/* ── Label ────────────────────────────────────────────────────── */
.co-label, .co-field label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

/* ── Field ────────────────────────────────────────────────────── */
.co-field { margin-bottom: 22px; }

.co-field label { display: block; }

.req { color: var(--red); }

.co-input-wrap {
  position: relative;
}

.co-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.co-input-wrap input {
  width: 100%;
  padding: 13px 14px 13px 42px;
}

input[type="email"],
input[type="text"] {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 14px;
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  outline: none;
  transition: border-color .2s, background .2s, box-shadow .2s;
}

input[type="email"]:focus,
input[type="text"]:focus {
  border-color: var(--border-red);
  background: rgba(255,59,59,0.04);
  box-shadow: 0 0 0 3px rgba(255,59,59,0.07);
}

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

.co-field-hint {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 7px;
}

/* ── Payment Method ───────────────────────────────────────────── */
.co-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.co-method {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 11px;
  color: var(--muted);
  font-family: var(--font);
  cursor: pointer;
  transition: all .2s;
  text-align: left;
  position: relative;
}

.co-method:hover {
  border-color: var(--border-red);
  background: rgba(255,59,59,0.04);
  color: var(--text);
}

.co-method.active {
  border-color: var(--red);
  background: rgba(255,59,59,0.07);
  color: var(--text);
}

.co-method-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .2s;
}

.co-method.active .co-method-icon {
  background: rgba(255,59,59,0.15);
}

.co-method-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.co-method-name {
  font-size: 13px;
  font-weight: 600;
  color: inherit;
}

.co-method-sub {
  font-size: 10px;
  color: var(--muted);
}

.co-method-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0;
  transition: all .2s;
}

.co-method.active .co-method-check {
  border-color: var(--red);
  background: var(--red);
  opacity: 1;
}

/* ── Payment Element ──────────────────────────────────────────── */
#card-section { margin-top: 4px; }

#payment-element {
  min-height: 100px;
}

/* ── Pay Button ───────────────────────────────────────────────── */
.co-btn-pay {
  width: 100%;
  padding: 15px 24px;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background .2s, transform .15s, box-shadow .2s;
  text-decoration: none;
  letter-spacing: 0.01em;
  margin-top: 16px;
  position: relative;
  overflow: hidden;
}

.co-btn-pay::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.co-btn-pay:hover:not(:disabled) {
  background: #e82d2d;
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(255,59,59,0.45);
}

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

.co-btn-pay:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

#btn-inner {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: co-spin .6s linear infinite;
}

@keyframes co-spin { to { transform: rotate(360deg); } }

.co-btn-discord {
  background: #5865F2;
  margin-top: 12px;
}
.co-btn-discord:hover:not(:disabled) {
  background: #4752c4;
  box-shadow: 0 8px 28px rgba(88,101,242,0.4);
}

/* ── Message ──────────────────────────────────────────────────── */
.co-message {
  display: none;
  padding: 12px 15px;
  border-radius: 9px;
  font-size: 13px;
  margin-top: 12px;
  line-height: 1.5;
}

.co-message.error {
  background: rgba(255,59,59,0.08);
  border: 1px solid rgba(255,59,59,0.25);
  color: #ff8080;
  display: block;
}

/* ── Secure Note ──────────────────────────────────────────────── */
.co-secure-note {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  margin-top: 20px;
}

/* ── Crypto ───────────────────────────────────────────────────── */
.crypto-notice {
  display: flex;
  gap: 11px;
  background: rgba(255,59,59,0.05);
  border: 1px solid rgba(255,59,59,0.14);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 4px;
  margin-bottom: 20px;
}

.crypto-notice svg { flex-shrink: 0; margin-top: 2px; }
.crypto-notice strong { color: var(--text); }

.crypto-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.crypto-tab {
  padding: 8px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all .18s;
}

.crypto-tab:hover, .crypto-tab.active {
  border-color: var(--red);
  background: rgba(255,59,59,0.08);
  color: var(--text);
}

.crypto-address-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 11px;
  overflow: hidden;
  margin-bottom: 14px;
}

.crypto-addr-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}

.crypto-network {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.crypto-amount-due {
  font-size: 12px;
  color: var(--muted);
}

.crypto-amount-due strong {
  color: var(--red);
  font-family: var(--mono);
}

.crypto-addr-body {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
}

.crypto-addr {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text);
  word-break: break-all;
  flex: 1;
  line-height: 1.6;
}

.crypto-copy-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--muted);
  font-family: var(--font);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all .18s;
  white-space: nowrap;
  flex-shrink: 0;
}

.crypto-copy-btn:hover { color: var(--text); border-color: rgba(255,255,255,0.14); }
.crypto-copy-btn.copied { color: #28C840; border-color: rgba(40,200,64,0.3); background: rgba(40,200,64,0.06); }

/* ── Order Summary Panel ──────────────────────────────────────── */
.co-summary-panel .co-panel-title {
  margin-bottom: 20px;
}

/* ── Plan Selector ────────────────────────────────────────────── */
.co-plans {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}

.co-plan {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px 17px;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border);
  border-radius: 11px;
  cursor: pointer;
  transition: border-color .18s, background .18s;
  user-select: none;
}

.co-plan:hover {
  border-color: rgba(255,59,59,0.3);
  background: rgba(255,59,59,0.04);
}

.co-plan.active {
  border-color: var(--red);
  background: rgba(255,59,59,0.07);
}

.co-plan-badge {
  position: absolute;
  top: -9px;
  left: 13px;
  background: var(--red);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 2px 8px;
  border-radius: 100px;
}

.co-plan-radio {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.15);
  flex-shrink: 0;
  transition: all .18s;
  position: relative;
}

.co-plan.active .co-plan-radio {
  border-color: var(--red);
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(255,59,59,0.2);
}

.co-plan.active .co-plan-radio::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px; right: 3px; bottom: 3px;
  border-radius: 50%;
  background: #fff;
}

.co-plan-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.co-plan-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.co-plan-desc {
  font-size: 11px;
  color: var(--muted);
}

.co-plan-price {
  font-size: 20px;
  font-weight: 800;
  font-family: var(--mono);
  color: var(--text);
  transition: color .18s;
}

.co-plan.active .co-plan-price { color: var(--red); }

/* ── Discount ─────────────────────────────────────────────────── */
.co-discount-wrap {
  margin-bottom: 22px;
}

.co-discount-row {
  display: flex;
  gap: 8px;
}

.co-discount-row input {
  flex: 1;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 11px 13px;
  border-radius: 9px;
}

.co-discount-btn {
  padding: 11px 17px;
  background: rgba(255,59,59,0.1);
  border: 1px solid rgba(255,59,59,0.22);
  border-radius: 9px;
  color: var(--red);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all .18s;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.co-discount-btn:hover {
  background: rgba(255,59,59,0.18);
  border-color: var(--red);
}

.co-discount-msg {
  font-size: 12px;
  margin-top: 8px;
  min-height: 16px;
  font-weight: 500;
}

.co-discount-msg.success { color: #3ddf5a; }
.co-discount-msg.error   { color: #ff7070; }

/* ── Order Lines ──────────────────────────────────────────────── */
.co-order-lines {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 15px 16px;
  margin-bottom: 20px;
}

.co-order-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  padding: 3px 0;
}

.co-discount-val { color: #3ddf5a; font-weight: 600; }
.co-tax-val      { color: rgba(255,255,255,0.55); font-weight: 500; }

.co-order-divider {
  height: 1px;
  background: var(--border);
  margin: 10px 0 8px;
}

.co-order-total {
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  padding-top: 2px;
}

/* ── Features ─────────────────────────────────────────────────── */
.co-includes {
  margin-bottom: 18px;
}

.co-includes-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.co-includes-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.co-include {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  color: rgba(255,255,255,0.65);
}

/* ── Trust Bar ────────────────────────────────────────────────── */
.co-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  background: rgba(255,59,59,0.04);
  border: 1px solid rgba(255,59,59,0.1);
  border-radius: 9px;
  font-size: 11px;
  color: var(--muted);
  flex-wrap: wrap;
}

.co-trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.co-trust-sep {
  width: 3px;
  height: 3px;
  background: var(--border-red);
  border-radius: 50%;
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 800px) {
  .co-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
  }
  .co-summary-panel { order: -1; }
  .co-panel { padding: 24px; }
  .co-nav-secure { display: none; }
}

@media (max-width: 480px) {
  .co-main { padding: 24px 16px 56px; }
  .co-panel { padding: 20px; }
  .co-methods { grid-template-columns: 1fr; }
}
