.karakey-credit-page {
    --kk-bg: #071014;
    --kk-panel: #0d1a20;
    --kk-panel-strong: #11242a;
    --kk-line: rgba(112, 190, 197, .2);
    --kk-text: #f3f8f8;
    --kk-muted: #9fb4b7;
    --kk-accent: #4de0cf;
    --kk-accent-strong: #9af3e1;
    width: min(1240px, calc(100% - 40px));
    margin: 0 auto;
    padding: clamp(38px, 6vw, 84px) 0 96px;
    color: var(--kk-text);
}

.karakey-credit-page :is(h1, h2, h3, p) { margin-top: 0; }
.karakey-credit-page .section-kicker { margin: 0 0 12px; color: var(--kk-accent); font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }

.karakey-credit-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, .55fr);
    gap: clamp(28px, 6vw, 80px);
    align-items: center;
    min-height: 470px;
    padding: clamp(32px, 6vw, 72px);
    overflow: hidden;
    border: 1px solid var(--kk-line);
    border-radius: 24px;
    background:
        radial-gradient(circle at 88% 12%, rgba(77, 224, 207, .18), transparent 33%),
        linear-gradient(135deg, #0d1c22 0%, #071014 67%);
}

.karakey-credit-hero::after { content: ""; position: absolute; inset: auto -90px -170px auto; width: 380px; height: 380px; border: 1px solid rgba(77, 224, 207, .16); border-radius: 50%; box-shadow: 0 0 0 44px rgba(77, 224, 207, .025), 0 0 0 90px rgba(77, 224, 207, .018); pointer-events: none; }
.karakey-credit-hero-copy { position: relative; z-index: 1; }
.karakey-credit-product-mark { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 32px; color: #d9e8e8; font-size: .84rem; font-weight: 750; letter-spacing: .04em; }
.karakey-credit-product-mark img { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; }
.karakey-credit-hero h1 { max-width: 760px; margin-bottom: 22px; font-size: clamp(2.4rem, 5.3vw, 5.35rem); line-height: .98; letter-spacing: -.055em; text-wrap: balance; }
.karakey-credit-lead { max-width: 720px; margin-bottom: 30px; color: #b8cacc; font-size: clamp(1rem, 1.45vw, 1.17rem); line-height: 1.78; }
.karakey-credit-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.karakey-credit-pack-preview { position: relative; z-index: 1; padding: 32px; border: 1px solid rgba(133, 230, 218, .24); border-radius: 20px; background: rgba(14, 31, 36, .86); box-shadow: 0 30px 80px rgba(0, 0, 0, .28); backdrop-filter: blur(18px); }
.karakey-credit-region { display: inline-flex; padding: 6px 9px; border: 1px solid rgba(77, 224, 207, .25); border-radius: 999px; color: var(--kk-accent-strong); font-size: .68rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.karakey-credit-pack-count { display: flex; align-items: baseline; gap: 10px; margin: 46px 0 4px; }
.karakey-credit-pack-count strong { font-size: clamp(3.2rem, 6vw, 5.5rem); line-height: .9; letter-spacing: -.07em; }
.karakey-credit-pack-count span { color: var(--kk-muted); font-weight: 650; }
.karakey-credit-pack-price { margin-top: 24px; color: var(--kk-accent-strong); font-size: 1.55rem; font-weight: 780; }
.karakey-credit-pack-preview p { margin: 8px 0 0; color: var(--kk-muted); font-size: .86rem; }

.karakey-credit-alert { display: flex; gap: 8px 18px; align-items: baseline; margin-top: 20px; padding: 17px 20px; border: 1px solid rgba(255, 145, 145, .28); border-radius: 12px; background: rgba(89, 28, 38, .36); color: #ffcaca; }
.karakey-credit-alert span { color: #e8b8bd; }

.karakey-credit-balance,
.karakey-credit-purchase,
.karakey-credit-how { margin-top: 24px; padding: clamp(24px, 4vw, 46px); border: 1px solid var(--kk-line); border-radius: 20px; background: var(--kk-panel); }
.karakey-credit-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.karakey-credit-section-heading h2 { margin: 0; font-size: clamp(1.65rem, 3vw, 2.4rem); letter-spacing: -.035em; }
.karakey-credit-refresh { color: var(--kk-accent-strong); font-size: .86rem; font-weight: 700; text-decoration: none; }
.karakey-credit-refresh:hover { text-decoration: underline; }

.karakey-credit-balance-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.karakey-credit-metric { min-width: 0; padding: clamp(22px, 3vw, 32px); border: 1px solid rgba(143, 198, 203, .16); border-radius: 16px; background: #0a161b; }
.karakey-credit-metric.is-paid { background: linear-gradient(135deg, rgba(77, 224, 207, .1), #0a161b 64%); }
.karakey-credit-metric-label { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: #c9d8d9; font-size: .78rem; font-weight: 760; letter-spacing: .055em; text-transform: uppercase; }
.karakey-credit-metric-label small { color: var(--kk-muted); font-size: .66rem; }
.karakey-credit-metric > strong { display: block; margin: 28px 0 16px; font-size: clamp(2.8rem, 5vw, 4.6rem); line-height: .9; letter-spacing: -.065em; }
.karakey-credit-metric > strong span { color: #718a8e; font-size: .38em; letter-spacing: -.02em; }
.karakey-credit-metric p { margin: 12px 0 0; color: var(--kk-muted); font-size: .82rem; line-height: 1.6; }
.karakey-credit-progress { height: 6px; overflow: hidden; border-radius: 999px; background: #1b3035; }
.karakey-credit-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #2fb5cf, var(--kk-accent)); }
.karakey-credit-debt { display: inline-block; margin-top: 14px; color: #ffc0b7; font-size: .78rem; line-height: 1.5; }

.karakey-credit-purchase { display: grid; grid-template-columns: minmax(0, 1fr) minmax(330px, .72fr); gap: clamp(30px, 6vw, 72px); align-items: center; }
.karakey-credit-purchase-copy h2 { max-width: 600px; margin-bottom: 18px; font-size: clamp(2rem, 4vw, 3.45rem); line-height: 1.04; letter-spacing: -.05em; }
.karakey-credit-purchase-copy > p { max-width: 650px; color: var(--kk-muted); line-height: 1.75; }
.karakey-credit-benefits { display: grid; gap: 10px; margin: 26px 0 0; padding: 0; list-style: none; }
.karakey-credit-benefits li { display: flex; gap: 11px; align-items: center; color: #d4e1e2; font-size: .9rem; }
.karakey-credit-benefits li span { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; background: rgba(77, 224, 207, .12); color: var(--kk-accent); font-size: .72rem; }

.karakey-credit-checkout-card { padding: clamp(24px, 4vw, 36px); border: 1px solid rgba(77, 224, 207, .25); border-radius: 18px; background: var(--kk-panel-strong); }
.karakey-credit-checkout-topline { display: flex; justify-content: space-between; gap: 15px; color: #85a3a6; font-size: .64rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.karakey-credit-checkout-amount { display: flex; align-items: baseline; gap: 9px; margin: 38px 0 12px; }
.karakey-credit-checkout-amount strong { font-size: clamp(2.6rem, 5vw, 4.2rem); line-height: .92; letter-spacing: -.06em; }
.karakey-credit-checkout-amount span { color: var(--kk-muted); font-size: .82rem; }
.karakey-credit-checkout-card > p { color: var(--kk-muted); font-size: .82rem; line-height: 1.6; }
.karakey-credit-buy-form { display: grid; gap: 14px; margin-top: 24px; }
.karakey-credit-buy-button { display: inline-flex; justify-content: center; width: 100%; margin-top: 22px; }
.karakey-credit-buy-form .karakey-credit-buy-button { margin-top: 0; }
.karakey-credit-buy-button:disabled { cursor: not-allowed; filter: grayscale(.6); opacity: .46; }
.karakey-credit-checkout-card > small { display: block; margin-top: 12px; color: #789095; font-size: .72rem; line-height: 1.5; text-align: center; }
.karakey-credit-buy-form .turnstile-shell { display: flex; justify-content: center; overflow: hidden; }

.karakey-credit-inline-state { display: flex; gap: 12px; align-items: center; padding: 16px; border: 1px solid rgba(255, 205, 126, .22); border-radius: 11px; background: rgba(100, 72, 25, .2); color: #f5d7a0; }
.karakey-credit-inline-state span { display: grid; flex: 0 0 auto; width: 28px; height: 28px; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-weight: 800; }
.karakey-credit-inline-state :is(p, strong) { margin: 0; }
.karakey-credit-inline-state p { color: inherit; font-size: .8rem; line-height: 1.55; }
.karakey-credit-checkout-card .karakey-credit-inline-state { margin-top: 18px; }

.karakey-credit-how { background: transparent; }
.karakey-credit-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.karakey-credit-steps li { display: grid; grid-template-columns: auto 1fr; gap: 16px; min-width: 0; padding: 22px; border: 1px solid var(--kk-line); border-radius: 14px; background: rgba(13, 26, 32, .7); }
.karakey-credit-steps li > span { color: var(--kk-accent); font-size: .7rem; font-weight: 800; letter-spacing: .08em; }
.karakey-credit-steps strong { display: block; margin-bottom: 8px; }
.karakey-credit-steps p { margin: 0; color: var(--kk-muted); font-size: .82rem; line-height: 1.65; }

.karakey-credit-note { display: flex; justify-content: space-between; gap: 30px; align-items: center; margin-top: 20px; padding: 24px 28px; border-left: 2px solid var(--kk-accent); background: rgba(77, 224, 207, .045); }
.karakey-credit-note strong { display: block; margin-bottom: 5px; }
.karakey-credit-note p { max-width: 780px; margin: 0; color: var(--kk-muted); font-size: .84rem; line-height: 1.6; }
.karakey-credit-note a { flex: 0 0 auto; color: var(--kk-accent-strong); font-weight: 700; text-decoration: none; }

@media (max-width: 900px) {
    .karakey-credit-hero { grid-template-columns: 1fr; min-height: 0; }
    .karakey-credit-pack-preview { max-width: 520px; }
    .karakey-credit-purchase { grid-template-columns: 1fr; }
    .karakey-credit-steps { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .karakey-credit-page { width: min(100% - 24px, 1240px); padding-top: 22px; }
    .karakey-credit-hero,
    .karakey-credit-balance,
    .karakey-credit-purchase,
    .karakey-credit-how { border-radius: 15px; }
    .karakey-credit-hero { padding: 26px 22px; }
    .karakey-credit-product-mark { margin-bottom: 24px; }
    .karakey-credit-hero-actions { align-items: stretch; flex-direction: column; }
    .karakey-credit-balance-grid { grid-template-columns: 1fr; }
    .karakey-credit-section-heading { align-items: flex-start; flex-direction: column; }
    .karakey-credit-checkout-topline { align-items: flex-start; flex-direction: column; }
    .karakey-credit-note { align-items: flex-start; flex-direction: column; }
    .karakey-credit-alert { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    .karakey-credit-page * { scroll-behavior: auto !important; }
}
