/* ====================================================
   AI University — Checkout Styles
   ==================================================== */

/* ── Nav ── */
.co-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 28px;
    background: rgba(10, 10, 15, 0.7);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.co-back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #9ca3af;
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
    cursor: none;
}
.co-back:hover { color: #fff; }

.co-logo {
    text-decoration: none;
    font-size: 1rem;
    cursor: none;
}

.co-secure {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #6ee7b7;
    letter-spacing: 0.04em;
}

@media (max-width: 480px) {
    .co-secure span:last-child { display: none; }
    .co-nav { padding: 14px 18px; }
}

/* ── Main wrapper ── */
.co-main {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 110px 20px 60px;
    position: relative;
    z-index: 10;
}

/* ── Step indicator ── */
.co-steps {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 36px;
}

.co-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    opacity: 0.35;
    transition: opacity 0.4s ease;
}

.co-step-active {
    opacity: 1;
}

.co-step-done {
    opacity: 0.7;
}

.co-step-num {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    color: #7C3AED;
}

.co-step-done .co-step-num { color: #22c55e; }
.co-step-active .co-step-num { color: #F59E0B; }

.co-step-lbl {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #d4d4d8;
}

.co-line {
    width: 60px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 8px;
    border-radius: 2px;
    transition: background 0.5s ease;
    flex-shrink: 0;
    margin-bottom: 20px;
}

.co-line-done {
    background: linear-gradient(90deg, #7C3AED, #F59E0B);
    box-shadow: 0 0 10px rgba(124, 58, 237, 0.5);
}

@media (max-width: 480px) {
    .co-line { width: 32px; }
}

/* ── Card ── */
.co-card {
    width: 100%;
    max-width: 620px;
    background: rgba(15, 15, 22, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 28px;
    padding: 40px 36px;
    box-shadow: 0 0 80px rgba(124, 58, 237, 0.12), 0 40px 80px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
}

.co-hidden { display: none; }

@media (max-width: 640px) {
    .co-card { padding: 28px 20px; border-radius: 20px; }
}

/* ── Tier header ── */
.co-tier-header {
    text-align: center;
    margin-bottom: 28px;
}

.co-tier-badge {
    display: inline-flex;
    padding: 6px 16px;
    border-radius: 999px;
    font-family: 'Inter', sans-serif;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.co-badge-purple {
    background: rgba(124, 58, 237, 0.18);
    border: 1px solid rgba(124, 58, 237, 0.55);
    color: #c4b5fd;
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.25);
}

.co-badge-gradient {
    background: linear-gradient(135deg, rgba(124,58,237,0.15), rgba(245,158,11,0.12));
    border: 1px solid rgba(168, 85, 247, 0.5);
    color: #e9d5ff;
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.2);
}

.co-badge-gold {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.55);
    color: #fcd34d;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.25);
}

.co-price {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: clamp(3.2rem, 10vw, 5rem);
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 8px;
}

.co-price-purple { color: #c4b5fd; }
.co-price-gradient {
    background: linear-gradient(135deg, #7C3AED 0%, #F59E0B 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.co-price-gold { color: #F59E0B; }

.co-price-note {
    font-size: 0.82rem;
    color: #71717a;
    letter-spacing: 0.04em;
}

/* ── Feature list ── */
.co-features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.co-feat {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9rem;
    color: #d4d4d8;
    line-height: 1.5;
}

.co-chk {
    font-weight: 800;
    flex-shrink: 0;
    margin-top: 1px;
}
.co-chk-purple  { color: #7C3AED; }
.co-chk-gradient { color: #a855f7; }
.co-chk-gold    { color: #F59E0B; }

/* ── Goal selector ── */
.co-goal-block {
    margin-bottom: 28px;
}

.co-goal-heading {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.88rem;
    color: #a1a1aa;
    margin-bottom: 12px;
    letter-spacing: 0.02em;
}

.co-goal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

@media (max-width: 480px) {
    .co-goal-grid { grid-template-columns: 1fr; }
}

.co-goal-opt {
    cursor: none;
}

.co-goal-opt input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.co-goal-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    text-align: center;
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
    cursor: none;
}

.co-goal-inner:hover {
    border-color: rgba(124, 58, 237, 0.4);
    background: rgba(124, 58, 237, 0.06);
}

.co-goal-selected .co-goal-inner {
    border-color: rgba(124, 58, 237, 0.8);
    background: rgba(124, 58, 237, 0.1);
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.25);
}

.co-goal-icon {
    font-size: 1.5rem;
    line-height: 1;
    filter: drop-shadow(0 0 6px rgba(124, 58, 237, 0.4));
}

.co-goal-txt {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.76rem;
    font-weight: 600;
    color: #d4d4d8;
    line-height: 1.3;
}

/* ── CTA Button ── */
.co-cta {
    width: 100%;
    padding: 16px 24px;
    border-radius: 18px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    margin-bottom: 12px;
}

.co-reassure {
    text-align: center;
    font-size: 0.78rem;
    color: #52525b;
    letter-spacing: 0.03em;
}

/* ── Step 2 ── */
.co-step-head {
    margin-bottom: 28px;
}

.co-eyebrow {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.35em;
    color: #7C3AED;
    margin-bottom: 10px;
}

.co-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 8px;
    color: #fff;
}

.co-subtitle {
    font-size: 0.9rem;
    color: #71717a;
    line-height: 1.6;
}

.co-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

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

.co-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #a1a1aa;
}

.co-input {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px 16px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    width: 100%;
}

.co-input::placeholder { color: #52525b; }

.co-input:focus {
    border-color: rgba(124, 58, 237, 0.7);
    background: rgba(124, 58, 237, 0.05);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15), 0 0 20px rgba(124, 58, 237, 0.2);
}

.co-input-err {
    border-color: rgba(239, 68, 68, 0.7) !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

/* Mini order */
.co-mini-order {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    margin-bottom: 20px;
}

.co-mini-label {
    font-size: 0.78rem;
    color: #71717a;
    font-weight: 500;
    flex: 1;
}

.co-mini-tier {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.88rem;
    color: #c4b5fd;
}

.co-mini-price {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 1.1rem;
    letter-spacing: -0.03em;
    color: #fff;
    margin-left: auto;
}

.co-back-btn {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 10px;
    background: transparent;
    border: none;
    color: #52525b;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: none;
    padding: 8px;
    transition: color 0.2s ease;
}

.co-back-btn:hover { color: #a1a1aa; }

/* ── Step 3 ── */
.co-spot-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.4);
    border-radius: 999px;
    padding: 7px 16px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #6ee7b7;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.2);
    margin-bottom: 20px;
}

.co-spot-check {
    font-size: 0.9rem;
}

/* Order summary */
.co-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    margin-bottom: 24px;
    gap: 16px;
}

.co-sum-tier {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: #e5e7eb;
    margin-bottom: 3px;
}

.co-sum-note {
    font-size: 0.78rem;
    color: #71717a;
}

.co-sum-price {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 2rem;
    letter-spacing: -0.04em;
    color: #fff;
    white-space: nowrap;
}

/* Payment methods */
.co-pay-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #71717a;
    margin-bottom: 12px;
}

.co-pay-methods {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 22px;
}

.co-pay-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border-radius: 16px;
    text-decoration: none;
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
    cursor: none;
}

.co-pay-btn:hover {
    transform: translateY(-2px);
}

.co-pay-card {
    background: rgba(124, 58, 237, 0.07);
    border: 1px solid rgba(124, 58, 237, 0.35);
}

.co-pay-card:hover {
    background: rgba(124, 58, 237, 0.14);
    border-color: rgba(124, 58, 237, 0.65);
    box-shadow: 0 8px 28px rgba(124, 58, 237, 0.25);
}

.co-pay-pp {
    background: rgba(245, 158, 11, 0.06);
    border: 1px solid rgba(245, 158, 11, 0.28);
}

.co-pay-pp:hover {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.55);
    box-shadow: 0 8px 28px rgba(245, 158, 11, 0.2);
}

.co-pay-ico {
    font-size: 1.7rem;
    line-height: 1;
    flex-shrink: 0;
}

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

.co-pay-name {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
}

.co-pay-detail {
    font-size: 0.75rem;
    color: #71717a;
}

.co-pay-arr {
    font-size: 1.1rem;
    color: #52525b;
    transition: color 0.2s ease, transform 0.2s ease;
}

.co-pay-btn:hover .co-pay-arr {
    color: #fff;
    transform: translateX(4px);
}

/* Trust / guarantee */
.co-trust {
    padding: 18px 20px;
    margin-bottom: 16px;
}

.co-trust-row {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: #a1a1aa;
}

.co-trust-note {
    text-align: center;
    font-size: 0.78rem;
    color: #52525b;
    line-height: 1.6;
    margin: 0;
}

/* ── Withdrawal-right consent checkbox ── */
.co-consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 4px 0 22px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: border-color 0.25s ease, background 0.25s ease;
}
.co-consent:hover { border-color: rgba(124, 58, 237, 0.4); }

/* visually hide the native checkbox, keep it accessible */
.co-consent input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.co-consent-box {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    border-radius: 6px;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    position: relative;
}
.co-consent input:checked + .co-consent-box {
    background: linear-gradient(135deg, #7C3AED, #A855F7);
    border-color: #A855F7;
    box-shadow: 0 0 14px rgba(124, 58, 237, 0.5);
}
.co-consent input:checked + .co-consent-box::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.co-consent input:focus-visible + .co-consent-box {
    outline: 2px solid rgba(124, 58, 237, 0.8);
    outline-offset: 2px;
}

.co-consent-text {
    font-size: 0.82rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.65);
}
.co-consent-text a { color: #C4B5FD; text-decoration: underline; text-underline-offset: 2px; }
.co-consent-text a:hover { color: #fff; }

/* error / nudge state when user tries to pay without consenting */
.co-consent-err {
    border-color: rgba(239, 68, 68, 0.7);
    background: rgba(239, 68, 68, 0.06);
    animation: co-consent-shake 0.4s ease;
}
@keyframes co-consent-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

/* pay buttons locked until consent is given */
.co-pay-methods.co-pay-locked .co-pay-btn {
    opacity: 0.45;
    filter: grayscale(0.4);
}

/* ── Mobile cursor reset ── */
@media (max-width: 768px) {
    .co-back, .co-back-btn, .co-pay-btn, .co-goal-opt, .co-goal-inner { cursor: pointer; }
}
