/* Store page styles */

.store-game {
    margin-bottom: 10px;
    position: relative;
}

.store-game-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px 16px;
    margin-top: 30px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #00b09c;
}

.store-game-header {
    margin: 0;
}

.store-game-link {
    font-size: 14px;
    font-weight: 600;
    color: #00806f;
}

.store-game-link:hover {
    color: #005f52;
}

/* still frame from the game's video, fading into the page behind the cards */
.store-banner {
    position: relative;
    height: 260px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: -60px;
    background: #0a1f11;
}

.store-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

/* muted looping video (store-video.js), scaled to cover the banner; fades in over the still frame */
.store-banner iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    min-width: 462px; /* 16:9 of the 260px banner height */
    aspect-ratio: 16 / 9;
    height: auto;
    border: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.store-banner iframe.is-playing {
    opacity: 0.85;
}

.store-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(245, 245, 245, 0.97) 100%);
}

.store-login-btn {
    display: block;
    margin-top: 12px;
    padding: 10px 16px;
    border-radius: 8px;
    background: #00b09c;
    color: #fff;
    font-weight: 600;
    text-align: center;
}

.store-login-btn:hover,
.store-login-btn:focus {
    background: #00806f;
    color: #fff;
    text-decoration: none;
}

.store-card {
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    padding: 20px;
    margin-bottom: 24px;
    border-top: 4px solid #ccc;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: box-shadow 0.2s ease;
}

.store-card:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.store-card.bronze {
    border-top-color: #a46628;
}

.store-card.silver {
    border-top-color: #adb5bd;
}

.store-card.gold {
    border-top-color: #ffc107;
}

.store-card-ribbon {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #e6f7f5;
    color: #00806f;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 999px;
}

/* Tier-colored game box logo - decorative badge (icon only, no real box art). */
.store-box-logo {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    font-size: 28px;
    color: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 3px 8px rgba(0, 0, 0, 0.25);
}

.store-box-logo.bronze {
    background: linear-gradient(135deg, #d08a4f, #8c5522);
}

.store-box-logo.silver {
    background: linear-gradient(135deg, #f0f0f0, #a3a9ad);
    color: #495057;
}

.store-box-logo.gold {
    background: linear-gradient(135deg, #ffe27a, #d4a017);
    color: #5c4400;
}

.store-trust-strip {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #eee;
    font-size: 11px;
    color: #6c757d;
}

.store-card-tier {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #6c757d;
    margin-bottom: 6px;
}

.store-card-description {
    color: #6c757d;
    font-size: 14px;
    min-height: 40px;
}

.store-feature-list {
    list-style: none;
    padding: 0;
    margin: 10px 0;
    flex: 1;
}

.store-feature-list li {
    padding: 4px 0;
    font-size: 14px;
}

.store-feature-list li:before {
    content: "\2713";
    color: #00b09c;
    font-weight: 700;
    margin-right: 8px;
}

.store-interval-options {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 10px 0;
    font-size: 14px;
}

.store-interval-option {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: normal;
    cursor: pointer;
}

/* Plan picker: a selectable row per billing option (radio, name, price on the right). */
.store-plans {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 12px 0 4px;
}

.store-plan {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 9px 12px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 14px;
    font-weight: normal;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.store-plan:hover {
    border-color: #adb5bd;
}

.store-plan.is-picked {
    border-color: #00b09c;
    background: #f2fbfa;
    box-shadow: inset 0 0 0 1px #00b09c;
}

.store-plan input {
    margin: 0;
    accent-color: #00b09c;
}

.store-plan-name {
    flex: 1 1 auto;
    color: #212529;
}

.store-plan-name em {
    font-style: normal;
    font-size: 12px;
    color: #868e96;
    margin-left: 4px;
}

.store-plan-price {
    white-space: nowrap;
    text-align: right;
}

.store-plan-price b {
    font-weight: 600;
    color: #212529;
}

.store-plan-price small {
    color: #868e96;
    font-size: 12px;
}

/* Checkout: price-led primary button (no text shouting), quiet Bitcoin alternative underneath. */
.store-buy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin: 12px 0 0;
    padding: 12px 16px;
    border: 0;
    border-radius: 8px;
    background: #00b09c;
    color: #fff;
    font-size: 15px;
    text-transform: none;
    letter-spacing: 0;
    box-shadow: none;
    transition: background-color 0.15s ease;
}

.store-buy-btn:hover,
.store-buy-btn:focus {
    background: #00806f;
    color: #fff;
    box-shadow: none;
}

.store-buy-btn em {
    font-style: normal;
    font-weight: 600;
}

.store-buy-total {
    font-weight: 400;
    opacity: 0.85;
}

.store-buy-total:not(:empty)::before {
    content: "\00B7";
    margin-right: 8px;
}

.store-btc-btn {
    width: 100%;
    margin: 8px 0 0;
    padding: 10px 16px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: #fff;
    color: #495057;
    font-size: 14px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    box-shadow: none;
}

.store-btc-btn i {
    color: #f7931a;
}

.store-btc-btn:hover,
.store-btc-btn:focus {
    border-color: #adb5bd;
    background: #f8f9fa;
    color: #212529;
    box-shadow: none;
}

.store-price-preview {
    margin-top: 10px;
    color: #6c757d;
}

.store-lifetime-preview {
    display: block;
    font-size: 13px;
}


/* ---- sales (see PricingService / /admin/sales) ---- */








.store-card-save {
    margin-left: 6px;
    padding: 1px 7px;
    border-radius: 999px;
    background: #fdecea;
    color: #b3261e;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

.store-was {
    color: #adb5bd;
    font-size: 0.85em;
    margin-right: 3px;
}

.store-now {
    font-weight: inherit;
}

.store-now.is-sale,
.store-plan-price .store-now.is-sale {
    color: #b3261e;
}

.store-card-timer {
    margin-top: 10px;
    color: #868e96;
    font-size: 12px;
    text-align: center;
}

.store-card-timer b {
    font-variant-numeric: tabular-nums;
}


.store-autorenew {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 6px 0 0;
    font-size: 13px;
    font-weight: normal;
    cursor: pointer;
}

.store-autorenew input {
    accent-color: #00b09c;
}

.store-autorenew b {
    font-weight: 600;
}

.store-autorenew em {
    font-style: normal;
    color: #868e96;
    font-size: 12px;
}

.store-autorenew.is-hidden {
    display: none;
}

/* ---- owners: their plan, what it includes, upgrade offers (see UpgradeService) ---- */

.store-card.is-upgrade {
    box-shadow: 0 0 0 2px #00b09c, 0 6px 18px rgba(0, 176, 156, 0.14);
}

.store-card.is-included {
    opacity: 0.72;
}

.store-card-ribbon.is-mine {
    background: #212529;
    color: #fff;
}

.store-card-ribbon.is-included {
    background: #f1f3f5;
    color: #6c757d;
}

.store-card-ribbon.is-upgrade {
    background: #00b09c;
    color: #fff;
}

.store-owned-note {
    margin: 4px 0 8px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #f1f3f5;
    color: #495057;
    font-size: 14px;
}

.store-owned-note i {
    color: #00b09c;
}

.store-owned-note a {
    display: block;
    margin-top: 4px;
    font-weight: 600;
    color: #00806f;
}

.store-upgrade-note {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 4px 0 6px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #e6f7f5;
    color: #1d4d45;
    font-size: 13px;
}

.store-upgrade-note > b {
    font-size: 14px;
    color: #00806f;
}

.store-plan-price .store-now.is-upgrade {
    color: #00806f;
}

.store-buy-btn.is-upgrade {
    background: #00806f;
}

.store-buy-btn.is-upgrade:hover,
.store-buy-btn.is-upgrade:focus {
    background: #005f52;
}
