/*!
 * Copyright (c) 2026 Daki.cc — Niclas Specht. All rights reserved.
 * Proprietary and confidential.
 */

/* Shared pricing layout for the product pages: centred pricing header with
   segmented product/location controls, then plan cards with a spec list,
   included perks and a configure button. */
:root {
    --pl-surface: #171419;
    --pl-surface-2: #1d1921;
    --pl-border: #2f2934;
    --pl-border-strong: #4a3a52;
    --pl-text: #e9e2ed;
    --pl-muted: #a99eb0;
    --pl-accent: #c026d3;
    --pl-accent-soft: #e29bf0;
}

.pl-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.pl-ico { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ── Pricing header ────────────────────────────────────────────── */
.pl-head { max-width: 780px; margin: 0 auto; text-align: center; }
.pl-head .page-title { margin-bottom: 14px; }
.pl-head .page-title .page-kicker { display: flex; justify-content: center; margin-bottom: 14px; font-family: 'Work Sans', sans-serif; letter-spacing: 0.14em; line-height: 1.2; }
.pl-head .page-subtitle { font-size: 1.05rem; line-height: 1.65; }
.pl-head .page-subtitle strong { color: #fff; font-weight: 600; }
.pl-head .pl-sub { display: block; min-height: 0; }
.pl-head .pl-typed { margin-top: 10px; font-size: 1rem; }

.pl-controls { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 14px 22px; margin-top: 30px; }
.pl-control { display: flex; flex-direction: column; align-items: center; gap: 9px; }
.pl-control-label { margin: 0; color: #d8cadd; font: 700 11px/1 'Work Sans', sans-serif; letter-spacing: 0.12em; text-transform: uppercase; }
.pl-segment { display: inline-flex; gap: 4px; padding: 5px; border: 1px solid var(--pl-border); border-radius: 14px; background: rgba(18, 14, 21, 0.75); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03); }
.pl-segment a,
.pl-segment span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 10px;
    color: var(--pl-muted);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: color .2s ease, background .2s ease;
}
.pl-segment a:hover { color: #fff; background: rgba(255, 255, 255, 0.04); }
.pl-segment .is-active { color: #fff; background: #2a2230; box-shadow: inset 0 0 0 1px #3d3244, 0 4px 14px -6px rgba(0, 0, 0, 0.6); }
.pl-segment .pl-ico { width: 17px; height: 17px; }
.pl-segment .is-active .pl-ico { color: var(--pl-accent-soft); }
.pl-flag { width: 20px; height: 14px; border-radius: 3px; flex-shrink: 0; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12); }

.pl-note { margin: 16px 0 0; color: var(--pl-muted); font-size: 12.5px; line-height: 1.5; text-align: center; }
.pl-note::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 8px; vertical-align: 1px; border-radius: 50%; background: var(--pl-accent); box-shadow: 0 0 8px rgba(192, 38, 211, 0.7); }
.pl-note b { color: #e8deed; font-weight: 600; }

/* ── Plan grid ─────────────────────────────────────────────────── */
.pl-grid { --pl-cols: 3; --pl-gap: 20px; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--pl-gap); padding-top: 14px; }
.pl-grid > .plan { flex: 0 0 calc((100% - (var(--pl-cols) - 1) * var(--pl-gap)) / var(--pl-cols)); }
.pl-grid--narrow { max-width: 1120px; margin-left: auto; margin-right: auto; }
@media (min-width: 1400px) { .pl-grid--five { --pl-cols: 5; --pl-gap: 16px; } }
@media (max-width: 991.98px) { .pl-grid { --pl-cols: 2; } }
@media (max-width: 575.98px) { .pl-grid { --pl-cols: 1; } }

/* ── Plan card ─────────────────────────────────────────────────── */
.plan {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 24px 22px 22px;
    border: 1px solid var(--pl-border);
    border-radius: 16px;
    background: radial-gradient(120% 60% at 50% 0%, rgba(118, 9, 145, 0.07), transparent 70%), var(--pl-surface);
    transition: border-color .25s ease, box-shadow .25s ease, transform .3s ease;
}
.plan:hover { transform: translateY(-4px); border-color: var(--pl-border-strong); box-shadow: 0 16px 36px -18px rgba(192, 38, 211, 0.45); }
.plan--featured { border: 2px solid var(--pl-accent); padding: 23px 21px 21px; background: radial-gradient(120% 60% at 50% 0%, rgba(192, 38, 211, 0.16), transparent 70%), var(--pl-surface); box-shadow: 0 0 40px -12px rgba(192, 38, 211, 0.45); }
.plan--featured:hover { border-color: #d24be4; box-shadow: 0 18px 44px -14px rgba(192, 38, 211, 0.6); }
.plan-flag {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -55%);
    padding: 5px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, #8c10ae, #c026d3);
    color: #fff;
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 6px 18px -4px rgba(192, 38, 211, 0.6);
}

.plan-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.plan-icon { display: grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0; border: 1px solid rgba(192, 38, 211, 0.3); border-radius: 11px; background: rgba(192, 38, 211, 0.14); color: #d65fe6; font-size: 18px; }
.plan-title { margin: 0; color: #fff; font: 600 1.4rem/1.2 'Poppins', sans-serif; letter-spacing: -0.02em; }

.plan-price { display: flex; align-items: baseline; gap: 6px; margin: 0 0 18px; }
.plan-price strong { color: #fff; font: 700 2.2rem/1 'Poppins', sans-serif; letter-spacing: -0.03em; }
.plan-price span { color: var(--pl-muted); font-size: 14px; }

.plan-list { margin: 0; padding: 18px 0 0; border-top: 1px solid rgba(255, 255, 255, 0.08); list-style: none; }
.plan-list + .plan-list { margin-top: 14px; }
.plan-list li { display: flex; align-items: center; gap: 11px; padding: 6px 0; color: var(--pl-text); font-size: 15px; line-height: 1.35; }
.plan-list .pl-ico { color: var(--pl-accent-soft); opacity: .9; }
.plan-specs li { font-weight: 600; color: #fff; }
.plan-specs li.is-light { font-weight: 500; color: var(--pl-text); }
.plan-perks { flex-grow: 1; margin-bottom: 22px; }
.plan-perks li { font-weight: 400; }
.plan-amd { width: 18px; height: 18px; flex-shrink: 0; fill: #ed1c24; }

.plan-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    border: 1px solid #3a3140;
    border-radius: 11px;
    background: #241e29;
    color: #f2edf5;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.plan-cta .pl-ico { width: 16px; height: 16px; transition: transform .2s ease; }
.plan-cta:hover { border-color: transparent; background: linear-gradient(135deg, #6b0882 0%, #8c10ae 100%); color: #fff; box-shadow: 0 6px 18px rgba(118, 9, 145, 0.4); }
.plan-cta:hover .pl-ico { transform: translateX(3px); }
.plan--featured .plan-cta { border-color: transparent; background: linear-gradient(135deg, #8c10ae 0%, #c026d3 100%); color: #fff; box-shadow: 0 6px 20px -4px rgba(192, 38, 211, 0.55); }
.plan--featured .plan-cta:hover { background: linear-gradient(135deg, #9e12c6 0%, #d03ae2 100%); }

/* 5-up game cards are narrower: tighten the type a little */
@media (min-width: 1400px) {
    .pl-grid--five .plan { padding: 22px 18px 18px; }
    .pl-grid--five .plan--featured { padding: 21px 17px 17px; }
    .pl-grid--five .plan-list li { font-size: 14px; gap: 9px; }
    .pl-grid--five .plan-price strong { font-size: 2rem; }
}


/* ── Custom plans CTA ──────────────────────────────────────────── */
.pl-custom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; text-align: left !important; }
.pl-custom h4 { margin-bottom: 4px !important; }
.pl-custom-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pl-custom-actions .plan-cta { padding: 10px 18px; font-size: 14px; }
.pl-custom-actions .plan-cta--primary { border-color: transparent; background: linear-gradient(135deg, #8c10ae 0%, #c026d3 100%); color: #fff !important; }
.pl-custom-actions .plan-cta:not(.plan-cta--primary) { color: #f2edf5 !important; }
@media (max-width: 767.98px) { .pl-custom { flex-direction: column; text-align: center !important; } }

@media (prefers-reduced-motion: reduce) {
    .plan, .plan-cta, .plan-cta .pl-ico { transition: none; }
    .plan:hover { transform: none; }
}

@media (max-width: 575.98px) { .games-grid .game-card { flex: 0 0 calc(50% - 4px); } }
