/* ════════════════════════════════════════════════════════════
   Checkout page  —  ck-* namespace
   ════════════════════════════════════════════════════════════ */

/* ── Shell ─────────────────────────────────────────────────── */
.ck-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #F8FAFC;
    font-family: var(--font-sans, 'DM Sans', sans-serif);
}

/* ── Header ────────────────────────────────────────────────── */
.ck-header {
    background: #fff;
    border-bottom: 1px solid #E2E8F0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.ck-header-inner {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 64px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ck-header-secure {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #16A34A;
}

.ck-header-back {
    font-size: 13px;
    color: #64748B;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.15s;
}
.ck-header-back:hover { color: #1E293B; }

/* ── Loading ───────────────────────────────────────────────── */
.ck-loading {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #94A3B8;
}

/* ── Main ──────────────────────────────────────────────────── */
.ck-main {
    flex: 1;
    max-width: 720px;
    width: 100%;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 4rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* ── Plan Card ─────────────────────────────────────────────── */
.ck-plan-card {
    background: #0F172A;
    border-radius: 16px;
    padding: 1.5rem 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.ck-plan-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ck-plan-icon {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #93C5FD;
    flex-shrink: 0;
}

.ck-plan-name {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px;
    font-family: var(--font-display, 'Space Grotesk', sans-serif);
}

.ck-plan-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ck-plan-chip {
    display: inline-block;
    background: rgba(255,255,255,0.1);
    color: #CBD5E1;
    border-radius: 20px;
    padding: 2px 10px;
    font-size: 12px;
    font-weight: 500;
}

.ck-plan-price-block {
    text-align: right;
    flex-shrink: 0;
}

.ck-plan-price {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 4px;
    font-family: var(--font-display, 'Space Grotesk', sans-serif);
    line-height: 1;
}

.ck-plan-price-currency {
    font-size: 14px;
    font-weight: 600;
    color: #94A3B8;
    margin-right: 4px;
    vertical-align: middle;
}

.ck-plan-change {
    font-size: 12px;
    color: #93C5FD;
    text-decoration: none;
    transition: color 0.15s;
}
.ck-plan-change:hover { color: #BFDBFE; text-decoration: underline; }

/* ── Section Title ─────────────────────────────────────────── */
.ck-section-title {
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0;
}

/* ── Payment Methods ───────────────────────────────────────── */
.ck-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.ck-method-card {
    background: #fff;
    border: 2px solid #E2E8F0;
    border-radius: 14px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.ck-method-card--recommended {
    border-color: #3B82F6;
    box-shadow: 0 0 0 4px rgba(59,130,246,0.08);
}

.ck-method-card--active {
    border-color: #F97316;
    box-shadow: 0 0 0 4px rgba(249,115,22,0.08);
}

.ck-method-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ck-method-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.ck-method-icon--blue  { background: #EFF6FF; color: #2563EB; }
.ck-method-icon--orange { background: #FFF7ED; color: #EA580C; }

.ck-method-badge {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 20px;
    padding: 3px 10px;
}

.ck-method-badge--blue  { background: #DBEAFE; color: #1D4ED8; }
.ck-method-badge--amber { background: #FEF3C7; color: #92400E; }

.ck-method-title {
    font-size: 16px;
    font-weight: 700;
    color: #0F172A;
    margin: 0;
}

.ck-method-desc {
    font-size: 13px;
    color: #64748B;
    margin: 0;
    line-height: 1.5;
}

.ck-method-points {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.ck-method-point {
    font-size: 12.5px;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 7px;
}

.ck-method-point .fa-check  { color: #16A34A; font-size: 11px; }
.ck-method-point .fa-clock  { color: #D97706; font-size: 11px; }

/* ── Stripe Button ─────────────────────────────────────────── */
.ck-stripe-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
    color: #fff;
    border-radius: 10px;
    padding: 0.8rem 1.25rem;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.15s, transform 0.15s;
    margin-top: auto;
}
.ck-stripe-btn:hover { opacity: 0.92; transform: translateY(-1px); color: #fff; }

/* ── InstaPay Toggle Button ────────────────────────────────── */
.ck-instapay-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    border: 1.5px solid #E2E8F0;
    color: #475569;
    border-radius: 10px;
    padding: 0.75rem 1.25rem;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    margin-top: auto;
}

.ck-instapay-btn:hover {
    border-color: #F97316;
    color: #EA580C;
    background: #FFF7ED;
}

.ck-instapay-btn--active {
    background: #FFF7ED;
    border-color: #F97316;
    color: #EA580C;
}

/* ── InstaPay Details ──────────────────────────────────────── */
.ck-instapay-details {
    background: #fff;
    border: 1.5px solid #E2E8F0;
    border-radius: 14px;
    overflow: hidden;
}

.ck-instapay-header {
    background: #FFF7ED;
    border-bottom: 1px solid #FED7AA;
    padding: 1rem 1.5rem;
    font-size: 14px;
    font-weight: 600;
    color: #92400E;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ── Bank Details ──────────────────────────────────────────── */
.ck-bank-details {
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ck-bank-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.625rem 0;
    border-bottom: 1px solid #F1F5F9;
}
.ck-bank-row:last-child { border-bottom: none; }

.ck-bank-label {
    font-size: 12.5px;
    font-weight: 600;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.ck-bank-value {
    font-size: 14px;
    font-weight: 600;
    color: #1E293B;
    text-align: right;
}

.ck-account-number {
    font-family: var(--font-mono, 'DM Mono', monospace);
    font-size: 16px;
    font-weight: 700;
    color: #1E293B;
    letter-spacing: 0.05em;
}

/* ── Divider ───────────────────────────────────────────────── */
.ck-instapay-divider {
    height: 1px;
    background: #F1F5F9;
    margin: 0 1.5rem;
}

/* ── Instructions ──────────────────────────────────────────── */
.ck-instructions {
    padding: 1.25rem 1.5rem;
}

.ck-instructions-title {
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    margin: 0 0 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ck-instructions-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ck-instructions-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13.5px;
    color: #475569;
    line-height: 1.5;
}

.ck-instructions-list .num {
    width: 22px;
    height: 22px;
    min-width: 22px;
    background: #0F172A;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}

/* ── Contact Actions ───────────────────────────────────────── */
.ck-contact-actions {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.5rem 0;
    flex-wrap: wrap;
}

.ck-contact-btn {
    flex: 1;
    min-width: 140px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.7rem 1.25rem;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.15s, transform 0.15s;
}
.ck-contact-btn:hover { opacity: 0.9; transform: translateY(-1px); }

.ck-contact-btn--whatsapp {
    background: #25D366;
    color: #fff;
}

.ck-contact-btn--email {
    background: #EFF6FF;
    color: #1D4ED8;
    border: 1.5px solid #BFDBFE;
}

/* ── Activation Notice ─────────────────────────────────────── */
.ck-activation-notice {
    margin: 1rem 1.5rem 1.5rem;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 0.875rem 1rem;
    font-size: 12.5px;
    color: #64748B;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.5;
}

.ck-activation-notice .fa-clock { color: #D97706; margin-top: 2px; }

/* ── Enterprise Note ───────────────────────────────────────── */
.ck-enterprise-note {
    font-size: 13px;
    color: #64748B;
    text-align: center;
    margin: 0;
}
.ck-enterprise-note a {
    color: var(--color-primary, #2563EB);
    font-weight: 600;
    text-decoration: none;
}
.ck-enterprise-note a:hover { text-decoration: underline; }

/* ── Footer ────────────────────────────────────────────────── */
.ck-footer {
    text-align: center;
    padding: 1.25rem 1.5rem;
    font-size: 12px;
    color: #94A3B8;
    border-top: 1px solid #E2E8F0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ck-footer .fa-lock { color: #16A34A; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 600px) {
    .ck-methods {
        grid-template-columns: 1fr;
    }

    .ck-plan-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .ck-plan-price-block {
        text-align: left;
    }

    .ck-header-inner {
        padding: 0 1rem;
    }

    .ck-main {
        padding: 1.5rem 1rem 3rem;
    }

    .ck-bank-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .ck-bank-value {
        text-align: left;
    }
}
