/* ChatGPT shop — Steam Studio look, card grid */

body.cgpt-body { background: #171a21; }

.cgpt {
    --st-bg: #171a21;
    --st-fg: #f2f2f2;
    --st-muted: #8b96a8;
    --st-accent: #66c0f4;
    --st-accent-2: #1a9fff;
    --st-ink: #0b1a24;
    --st-display: 'Space Grotesk', 'Inter', sans-serif;
    --st-nav-bg: rgba(23, 26, 33, .78);
    --st-bg-2: #1b2838;
    position: relative;
    min-height: 100vh;
    color: var(--st-fg);
    font-family: var(--st-display);
}

.cgpt .st-aurora {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: #171a21;
    pointer-events: none;
}
.cgpt .st-aurora::before {
    content: '';
    position: absolute;
    inset: -10% -5% auto;
    height: 90vh;
    background: radial-gradient(ellipse at 50% 0%, rgba(102,192,244,.22), transparent 55%),
                radial-gradient(ellipse at 80% 20%, rgba(26,159,255,.12), transparent 40%);
    opacity: .9;
}
.cgpt .st-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .45;
}
.cgpt .st-orb--a { width: 420px; height: 420px; top: -80px; left: -60px; background: #1a9fff; }
.cgpt .st-orb--b { width: 360px; height: 360px; top: 120px; right: -80px; background: #66c0f4; }
.cgpt .st-orb--c { width: 280px; height: 280px; bottom: 10%; left: 30%; background: #2a475e; opacity: .35; }
.cgpt .st-noise {
    position: absolute;
    inset: 0;
    opacity: .04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.cgpt-wrap {
    position: relative;
    z-index: 1;
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
}

.cgpt-hero {
    padding: 2.5rem 0 1.25rem;
    text-align: center;
}
.cgpt-kicker {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: .78rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--st-accent);
    margin-bottom: .75rem;
}
.cgpt-kicker .st-dot {
    width: .45rem;
    height: .45rem;
    border-radius: 50%;
    background: var(--st-accent);
    box-shadow: 0 0 10px var(--st-accent);
}
.cgpt-h1 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -.02em;
    margin: 0 0 .6rem;
}
.cgpt-lead {
    max-width: 36rem;
    margin: 0 auto;
    color: var(--st-muted);
    font-size: 1.02rem;
    line-height: 1.5;
}

.cgpt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
    padding: .5rem 0 2.5rem;
}

.cgpt-card {
    display: flex;
    flex-direction: column;
    gap: .85rem;
    padding: 1.15rem 1.15rem 1.05rem;
    border-radius: 14px;
    background: linear-gradient(160deg, rgba(27,40,56,.92), rgba(23,26,33,.96));
    border: 1px solid rgba(102,192,244,.16);
    box-shadow: 0 12px 40px rgba(0,0,0,.28);
    transition: border-color .2s, transform .2s, box-shadow .2s;
    text-align: left;
}
.cgpt-card:hover {
    border-color: rgba(102,192,244,.42);
    transform: translateY(-2px);
    box-shadow: 0 16px 48px rgba(0,0,0,.36);
}
.cgpt-card.is-on {
    border-color: var(--st-accent);
    box-shadow: 0 0 0 1px rgba(102,192,244,.35), 0 16px 48px rgba(0,0,0,.4);
}

.cgpt-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
}
.cgpt-badge {
    font-size: .72rem;
    color: var(--st-accent);
    background: rgba(102,192,244,.12);
    border: 1px solid rgba(102,192,244,.22);
    border-radius: 999px;
    padding: .2rem .55rem;
    white-space: nowrap;
}
.cgpt-card-title {
    font-size: 1.02rem;
    font-weight: 650;
    line-height: 1.3;
    margin: 0;
    color: var(--st-fg);
}
.cgpt-card-seller {
    margin: .2rem 0 0;
    font-size: .78rem;
    color: var(--st-muted);
}

.cgpt-opts {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}
.cgpt-opt {
    border: 1px solid rgba(139,150,168,.28);
    background: rgba(0,0,0,.18);
    color: var(--st-muted);
    border-radius: 8px;
    padding: .28rem .55rem;
    font-size: .78rem;
    cursor: pointer;
}
.cgpt-opt.is-on {
    color: var(--st-ink);
    background: var(--st-accent);
    border-color: var(--st-accent);
    font-weight: 600;
}

.cgpt-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-top: auto;
}
.cgpt-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}
.cgpt-buy {
    appearance: none;
    border: 0;
    border-radius: 10px;
    padding: .65rem 1rem;
    font-weight: 650;
    font-size: .92rem;
    color: var(--st-ink);
    background: linear-gradient(180deg, #66c0f4, #1a9fff);
    cursor: pointer;
    white-space: nowrap;
}
.cgpt-buy:hover { filter: brightness(1.06); }
.cgpt-buy:disabled { opacity: .55; cursor: wait; }

.cgpt-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1rem;
    color: var(--st-muted);
    border: 1px dashed rgba(139,150,168,.3);
    border-radius: 14px;
}

.cgpt-faq {
    padding: 0 0 3.5rem;
}
.cgpt-faq h2 {
    font-size: 1.35rem;
    margin: 0 0 1rem;
}
.cgpt-faq details {
    border: 1px solid rgba(102,192,244,.14);
    background: rgba(27,40,56,.55);
    border-radius: 12px;
    padding: .85rem 1rem;
    margin-bottom: .55rem;
}
.cgpt-faq summary {
    cursor: pointer;
    font-weight: 600;
    list-style: none;
}
.cgpt-faq summary::-webkit-details-marker { display: none; }
.cgpt-faq p {
    margin: .55rem 0 0;
    color: var(--st-muted);
    line-height: 1.45;
    font-size: .95rem;
}

/* Pay modal reuses ag-* from apple-gift when available; steam-tinted fallbacks */
.cgpt .ag-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(7,11,18,.72);
    backdrop-filter: blur(8px);
}
.cgpt .ag-modal-card {
    width: min(420px, 100%);
    border-radius: 16px;
    padding: 1.25rem 1.25rem 1.1rem;
    background: #1b2838;
    border: 1px solid rgba(102,192,244,.22);
    color: var(--st-fg);
    position: relative;
}
.cgpt .ag-modal-x {
    position: absolute;
    top: .7rem;
    right: .8rem;
    border: 0;
    background: transparent;
    color: var(--st-muted);
    font-size: 1.1rem;
    cursor: pointer;
}
.cgpt .ag-modal-kicker { color: var(--st-accent); font-size: .78rem; margin: 0 0 .35rem; text-transform: uppercase; letter-spacing: .06em; }
.cgpt .ag-modal-title { margin: 0 0 .35rem; font-size: 1.15rem; line-height: 1.3; }
.cgpt .ag-modal-login { margin: 0 0 .75rem; color: var(--st-muted); font-size: .88rem; }
.cgpt .ag-modal-sum { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 1rem; }
.cgpt .ag-modal-sum b { font-size: 1.35rem; }
.cgpt .ag-pay-rows { display: grid; gap: .5rem; margin-bottom: .9rem; }
.cgpt .ag-pay-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: .7rem;
    align-items: center;
    text-align: left;
    width: 100%;
    padding: .7rem .8rem;
    border-radius: 12px;
    border: 1px solid rgba(139,150,168,.25);
    background: rgba(0,0,0,.2);
    color: inherit;
    cursor: pointer;
}
.cgpt .ag-pay-row.is-on { border-color: var(--st-accent); background: rgba(102,192,244,.1); }
.cgpt .ag-pay-row b { display: block; font-size: .95rem; }
.cgpt .ag-pay-row small { color: var(--st-muted); font-size: .75rem; }
.cgpt .ag-pay-radio {
    width: .9rem; height: .9rem; border-radius: 50%;
    border: 2px solid var(--st-muted);
}
.cgpt .ag-pay-row.is-on .ag-pay-radio {
    border-color: var(--st-accent);
    box-shadow: inset 0 0 0 3px var(--st-accent);
}
.cgpt .ag-pay-email { margin-bottom: .9rem; }
.cgpt .ag-pay-email.is-bad input { border-color: #e35d6a; }
.cgpt .ag-pay-email-head { display: flex; gap: .55rem; align-items: center; margin-bottom: .45rem; }
.cgpt .ag-pay-email-head b { display: block; font-size: .9rem; }
.cgpt .ag-pay-email-head small { color: var(--st-muted); font-size: .75rem; }
.cgpt .ag-pay-email-field input {
    width: 100%;
    border-radius: 10px;
    border: 1px solid rgba(139,150,168,.35);
    background: rgba(0,0,0,.25);
    color: #fff;
    padding: .7rem .8rem;
}
.cgpt .ag-cta {
    appearance: none;
    border: 0;
    border-radius: 10px;
    padding: .8rem 1rem;
    font-weight: 650;
    color: var(--st-ink);
    background: linear-gradient(180deg, #66c0f4, #1a9fff);
    cursor: pointer;
}
.cgpt .ag-cta--wide { width: 100%; }
.cgpt .ag-pay-status, .cgpt .ag-pay-error { margin: .55rem 0 0; font-size: .88rem; }
.cgpt .ag-pay-error { color: #ff8f9a; }

.cgpt-return {
    position: relative;
    z-index: 1;
    min-height: 70vh;
    display: grid;
    place-items: center;
    padding: 2rem 1rem 3rem;
}
.cgpt-return-card {
    width: min(440px, 100%);
    border-radius: 16px;
    padding: 1.4rem 1.3rem 1.2rem;
    background: linear-gradient(160deg, rgba(27,40,56,.96), rgba(23,26,33,.98));
    border: 1px solid rgba(102,192,244,.2);
}
.cgpt-return-kicker { color: var(--st-accent); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 .5rem; }
.cgpt-return-title { margin: 0 0 .5rem; font-size: 1.4rem; }
.cgpt-return-text { color: var(--st-muted); line-height: 1.45; margin: 0 0 1rem; }
.cgpt-return-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    background: rgba(0,0,0,.28);
    border-radius: 10px;
    padding: .85rem;
    margin: 0 0 .55rem;
    white-space: pre-wrap;
    word-break: break-word;
    font-size: .92rem;
}
.cgpt-return-meta { display: grid; gap: .45rem; margin: 1rem 0; color: var(--st-muted); font-size: .88rem; }
.cgpt-return-meta b { color: var(--st-fg); }
.cgpt-return-back { color: var(--st-accent); text-decoration: none; font-size: .92rem; }
.cgpt-return-loader { display: flex; align-items: center; gap: .6rem; color: var(--st-muted); margin: .75rem 0; }
.cgpt-spin {
    width: 1rem; height: 1rem; border-radius: 50%;
    border: 2px solid rgba(102,192,244,.25);
    border-top-color: var(--st-accent);
    animation: cgpt-spin .7s linear infinite;
}
@keyframes cgpt-spin { to { transform: rotate(360deg); } }

@media (max-width: 640px) {
    .cgpt-card-foot { flex-direction: column; align-items: stretch; }
    .cgpt-buy { width: 100%; }
}

/* Tabs like Apple countries */
.cgpt-shell {
    display: grid;
    grid-template-columns: minmax(140px, 200px) minmax(0, 1fr);
    gap: 1.1rem;
    align-items: start;
    margin-bottom: 2rem;
}
.cgpt-tabs {
    display: flex;
    flex-direction: column;
    gap: .55rem;
    position: sticky;
    top: 5.5rem;
}
.cgpt-tab {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .15rem;
    width: 100%;
    text-align: left;
    border-radius: 14px;
    padding: .85rem 1rem;
    border: 1px solid rgba(102,192,244,.16);
    background: rgba(27,40,56,.72);
    color: var(--st-fg);
    cursor: pointer;
    transition: border-color .15s, background .15s, transform .15s;
}
.cgpt-tab b {
    font-size: 1rem;
    font-weight: 700;
}
.cgpt-tab em {
    font-style: normal;
    color: var(--st-muted);
    font-size: .78rem;
}
.cgpt-tab:hover {
    border-color: rgba(102,192,244,.4);
    background: rgba(27,40,56,.9);
}
.cgpt-tab.is-on {
    border-color: rgba(102,192,244,.7);
    background: linear-gradient(160deg, rgba(26,159,255,.22), rgba(27,40,56,.95));
    box-shadow: 0 0 0 1px rgba(102,192,244,.18);
}
.cgpt-panel { min-width: 0; }

@media (max-width: 860px) {
    .cgpt-shell {
        grid-template-columns: 1fr;
    }
    .cgpt-tabs {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
    }
    .cgpt-tab {
        flex: 1 1 140px;
    }
}
