/* =============================================================================
   SHOP PAGE — Netflix-Style Unified Layout
   Light theme, hero banner, horizontal scroll rows
   ============================================================================= */

/* ── Light Theme Scope ── */
.shop-light {
    background: #f5f5f7;
    color: #1d1d1f;
    min-height: 100%;
    flex: 1;
}

.shop-page {
    padding: 0;
}

/* Force light background on the main-area when shop is loaded */
.main-area:has(.shop-light) {
    background: #f5f5f7;
}

/* Also override the main-area__content so no dark bg peeks through */
.main-area__content:has(.shop-light) {
    background: #f5f5f7;
}

/* =============================================================================
   HERO BANNER
   ============================================================================= */
.nf-hero {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
}

.nf-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.nf-hero__fade {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(245, 245, 247, 0) 40%,
        rgba(245, 245, 247, 0.4) 70%,
        rgba(245, 245, 247, 0.8) 100%
    );
}

.nf-hero__content {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
}

.nf-hero__badge {
    display: inline-block;
    padding: 3px 10px;
    background: #10b981;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.shop-light .nf-hero__title {
    font-size: 32px;
    font-weight: 800;
    color: #ffe400 !important;
    margin: 0 0 4px;
    line-height: 0.9;
    letter-spacing: -0.03em;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
}

.nf-hero__title-sub {
    letter-spacing: 0.1em;
}

.nf-hero__subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    margin: 10px 0 16px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.nf-hero__actions {
    display: flex;
    gap: 10px;
}

.nf-hero__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s;
    border: none;
}

.nf-hero__btn:hover {
    transform: translateY(-1px);
}

.nf-hero__btn--primary {
    background: #1d1d1f;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.nf-hero__btn--primary:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.nf-hero__btn--ghost {
    background: rgba(255, 255, 255, 0.85);
    color: #1d1d1f;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.nf-hero__btn--ghost:hover {
    background: #ffffff;
}


/* =============================================================================
   FEATURED BOOK CARD — cap width on desktop
   ============================================================================= */
.nf-book-card {
    max-width: 480px;
}

/* =============================================================================
   NETFLIX ROW — Section title + horizontal scroll rail
   ============================================================================= */
.nf-row {
    padding: 16px 0 8px;
}

.nf-row__header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 20px 10px;
}

.nf-row__title {
    font-size: 18px;
    font-weight: 700;
    color: #1d1d1f;
    margin: 0;
}

.nf-row__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    background: rgba(0, 0, 0, 0.06);
    color: #636366;
    font-size: 12px;
    font-weight: 600;
    border-radius: 11px;
}

.nf-row__scroll {
    display: flex;
    gap: 12px;
    padding: 8px 20px 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.nf-row__scroll::-webkit-scrollbar {
    display: none;
}

/* =============================================================================
   CARDS — Base
   ============================================================================= */
.nf-card {
    position: relative;
    flex-shrink: 0;
    scroll-snap-align: start;
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.nf-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* ── Pack-card overrides for horizontal scroll rows ── */
.nf-scroll-card {
    flex-shrink: 0;
    scroll-snap-align: start;
    width: 170px;
    min-height: 230px;
}

/* ── Legacy nf-card--app (unused, kept for reference) ── */
.nf-card__hero {
    width: 100%;
    height: 110px;
    overflow: hidden;
    position: relative;
}

.nf-card__hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.nf-card--app:hover .nf-card__hero img {
    transform: scale(1.05);
}

.nf-card__hero-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
}

.nf-card__hero-icon i {
    width: 40px;
    height: 40px;
    color: #fff;
}

.nf-card__body {
    padding: 10px 12px 0;
    flex: 1;
}

.nf-card__name {
    font-size: 13px;
    font-weight: 600;
    color: #1d1d1f;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nf-card__meta {
    font-size: 11px;
    color: #8e8e93;
    margin-top: 2px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nf-card__foot {
    padding: 8px 12px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nf-card__price {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    color: #10b981;
}

.nf-card__coiny-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.nf-card__tag {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
}

.nf-card__tag--owned {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.nf-card__tag--free {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

/* ── Quest cards (~50vw, max 280px) ── */
.nf-card--quest {
    width: 50vw;
    max-width: 280px;
    min-width: 220px;
}

.nf-card__quest-hero {
    position: relative;
    width: 100%;
    height: 140px;
    overflow: hidden;
}

.nf-card__quest-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nf-card__quest-gradient {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #a855f7);
}

.nf-card__quest-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 60%);
}

.nf-card__quest-content {
    position: absolute;
    bottom: 10px;
    left: 12px;
    right: 12px;
}

.nf-card__quest-badge {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(245, 158, 11, 0.9);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    margin-bottom: 4px;
}

.nf-card__quest-title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.2;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nf-card__quest-foot {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
}

.nf-card__quest-progress {
    flex: 1;
    height: 4px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 2px;
    overflow: hidden;
}

.nf-card__quest-progress-bar {
    height: 100%;
    background: #10b981;
    border-radius: 2px;
    transition: width 0.4s ease;
}

.nf-card__quest-stats {
    font-size: 12px;
    font-weight: 600;
    color: #636366;
    white-space: nowrap;
}

.nf-card__quest-reward {
    font-size: 12px;
    font-weight: 600;
    color: #10b981;
    white-space: nowrap;
}

/* ── Tool & Effect cards (~150w x 200h) ── */
.nf-card--tool,
.nf-card--effect {
    width: 150px;
    min-height: 200px;
}

.nf-card__rarity-tag {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 6px 12px 0;
    color: #8e8e93;
}

.nf-card__rarity-tag--active {
    color: #10b981;
}

.nf-card__icon-area {
    width: 100%;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nf-card__tool-img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 12px;
}

.nf-card__tool-emoji,
.nf-card__effect-emoji {
    font-size: 40px;
    line-height: 1;
}

/* ── Effect preview circles ── */
.effect-preview {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #0f172a;
    position: relative;
    overflow: hidden;
}

/* Lumina Rings — colored ring border with glow */
.effect-preview--lumina-teal {
    background: #0a1628;
    border: 3px solid #14b8a6;
    box-shadow: 0 0 12px rgba(20,184,166,0.5), inset 0 0 8px rgba(20,184,166,0.15);
}
.effect-preview--lumina-gold {
    background: #0a1628;
    border: 3px solid #eab308;
    box-shadow: 0 0 12px rgba(234,179,8,0.5), inset 0 0 8px rgba(234,179,8,0.15);
}
.effect-preview--lumina-violet {
    background: #0a1628;
    border: 3px solid #7c3aed;
    box-shadow: 0 0 12px rgba(124,58,237,0.5), inset 0 0 8px rgba(124,58,237,0.15);
}

/* Magic Mist — swirling teal/purple/gold gradient */
.effect-preview--magic-mist {
    background: radial-gradient(circle at 30% 40%, rgba(20,184,166,0.4), transparent 50%),
                radial-gradient(circle at 70% 60%, rgba(124,58,237,0.35), transparent 50%),
                radial-gradient(circle at 50% 30%, rgba(234,179,8,0.25), transparent 50%),
                #0a1628;
    animation: mist-swirl 4s ease-in-out infinite;
}
@keyframes mist-swirl {
    0%, 100% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(15deg); }
}

/* Spinning Octagon — colorful octagon shape */
.effect-preview--spinning-octagon {
    background: conic-gradient(from 0deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3, #54a0ff, #5f27cd, #ff6b6b);
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
    animation: spin-preview 6s linear infinite;
}
@keyframes spin-preview {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Smile — dark circle with golden smile arc */
.effect-preview--smile {
    background: #0a1628;
}
.effect-preview--smile::after {
    content: '';
    position: absolute;
    bottom: 30%;
    left: 22%;
    right: 22%;
    height: 20%;
    border: 2px solid #FFD700;
    border-top: none;
    border-radius: 0 0 80px 80px;
}

/* Fireworks — dark sky with colorful dots */
.effect-preview--fireworks {
    background: #0a0e1a;
}
.effect-preview--fireworks::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle 3px at 25% 25%, #ff0040 70%, transparent 100%),
        radial-gradient(circle 2px at 65% 20%, #ffd700 70%, transparent 100%),
        radial-gradient(circle 2px at 40% 60%, #00bfff 70%, transparent 100%),
        radial-gradient(circle 3px at 75% 55%, #ff8c00 70%, transparent 100%),
        radial-gradient(circle 2px at 30% 75%, #00ff88 70%, transparent 100%),
        radial-gradient(circle 2px at 60% 80%, #ff00ff 70%, transparent 100%);
    animation: twinkle-preview 2s ease-in-out infinite;
}
@keyframes twinkle-preview {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Water / Ocean Wave — blue ripple rings */
.effect-preview--water {
    background: #0a1628;
    border: 2px solid rgba(0,180,255,0.3);
    box-shadow: inset 0 0 0 6px rgba(0,180,255,0.12), inset 0 0 0 12px rgba(0,180,255,0.06);
}
.effect-preview--water::after {
    content: '';
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    border: 1.5px solid rgba(0,180,255,0.25);
}

/* Wind — wispy white lines */
.effect-preview--wind {
    background: #0a1628;
}
.effect-preview--wind::before {
    content: '';
    position: absolute;
    top: 35%;
    left: 15%;
    width: 70%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(200,230,255,0.4), transparent);
    box-shadow:
        0 -8px 0 0 rgba(200,230,255,0.2),
        0 8px 0 0 rgba(200,230,255,0.25),
        0 16px 0 0 rgba(200,230,255,0.15);
}

/* Plants / Nature Growth — green leaf dots on vines */
.effect-preview--plants {
    background: #0a1628;
}
.effect-preview--plants::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle 3px at 30% 25%, #22c55e 60%, transparent 100%),
        radial-gradient(circle 2px at 55% 45%, #4ade80 60%, transparent 100%),
        radial-gradient(circle 3px at 70% 70%, #22c55e 60%, transparent 100%),
        radial-gradient(circle 2px at 25% 65%, #16a34a 60%, transparent 100%);
}

/* Lasers — red beams */
.effect-preview--lasers {
    background: #0a0e1a;
}
.effect-preview--lasers::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 2px;
    background: linear-gradient(90deg, transparent 10%, rgba(255,50,50,0.7) 50%, transparent 90%);
    transform: translate(-50%, -50%) rotate(-30deg);
    box-shadow: 0 0 6px rgba(255,0,0,0.4);
}
.effect-preview--lasers::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 2px;
    background: linear-gradient(90deg, transparent 10%, rgba(255,50,50,0.6) 50%, transparent 90%);
    transform: translate(-50%, -50%) rotate(30deg);
    box-shadow: 0 0 6px rgba(255,0,0,0.3);
}

/* Lightning — white bolt on dark background */
.effect-preview--lightning {
    background: #0a0e1a;
}
.effect-preview--lightning::before {
    content: '';
    position: absolute;
    top: 12%;
    left: 38%;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 20px solid rgba(200,240,255,0.8);
    transform: skewX(-5deg);
    filter: drop-shadow(0 0 4px rgba(0,255,255,0.5));
}
.effect-preview--lightning::after {
    content: '';
    position: absolute;
    top: 45%;
    left: 42%;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 16px solid rgba(200,240,255,0.6);
    transform: skewX(8deg);
    filter: drop-shadow(0 0 3px rgba(0,255,255,0.4));
}

/* Fire — orange/red glow */
.effect-preview--fire {
    background: radial-gradient(ellipse at 50% 80%, rgba(255,100,0,0.5) 0%, rgba(255,50,0,0.2) 40%, #0a0e1a 70%);
}
.effect-preview--fire::before {
    content: '';
    position: absolute;
    bottom: 20%;
    left: 30%;
    width: 40%;
    height: 50%;
    background: radial-gradient(ellipse at center bottom, rgba(255,180,0,0.6), rgba(255,80,0,0.3) 50%, transparent 80%);
    border-radius: 50% 50% 20% 20%;
    filter: blur(2px);
}

/* Neon Glow */
.effect-preview--neon {
    background: #0a0e1a;
    border: 2px solid #0ff;
    box-shadow: 0 0 10px rgba(0,255,255,0.4), inset 0 0 8px rgba(0,255,255,0.1);
}

/* Wood / Wooden Frame */
.effect-preview--wood {
    background: #0a1628;
    border: 3px solid #8B4513;
    box-shadow: inset 0 0 6px rgba(139,69,19,0.3);
}

/* Bamboo Grove */
.effect-preview--bamboo {
    background: #0a1628;
    border: 3px solid #228B22;
    box-shadow: inset 0 0 6px rgba(34,139,34,0.3);
}

/* ── Card buttons ── */
.nf-card__btn {
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.15s;
}

.nf-card__btn--use {
    background: #10b981;
    color: #fff;
}

.nf-card__btn--use:hover {
    background: #059669;
}

.nf-card__btn--equip {
    background: transparent;
    color: #636366;
    border: 1px solid rgba(0, 0, 0, 0.12);
}

.nf-card__btn--equip:hover {
    border-color: rgba(0, 0, 0, 0.25);
    color: #1d1d1f;
}

.nf-card__btn--buy {
    background: #1d1d1f;
    color: #fff;
}

.nf-card__btn--buy:hover {
    background: #000;
}

/* ── Toggle (for owned effects) ── */
.nf-card__foot--toggle {
    gap: 8px;
}

.nf-card__toggle-label {
    font-size: 12px;
    font-weight: 500;
    color: #8e8e93;
}

.nf-card__toggle {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
}

.nf-card__toggle-input {
    opacity: 0;
    width: 0;
    height: 0;
}

.nf-card__toggle-slider {
    position: absolute;
    inset: 0;
    background: #d1d1d6;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s;
}

.nf-card__toggle-slider::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    left: 2px;
    bottom: 2px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.nf-card__toggle-input:checked + .nf-card__toggle-slider {
    background: #10b981;
}

.nf-card__toggle-input:checked + .nf-card__toggle-slider::before {
    transform: translateX(16px);
}

.nf-card--owned-effect {
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* =============================================================================
   SLIDE-UP MODAL
   ============================================================================= */
.slideup-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.slideup-modal--open {
    pointer-events: auto;
}

.slideup-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.slideup-modal--open .slideup-modal__backdrop {
    opacity: 1;
}

.slideup-modal__panel {
    position: relative;
    background: #ffffff;
    border-radius: 20px 20px 0 0;
    min-height: 40vh;
    max-height: 90vh;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.slideup-modal--open .slideup-modal__panel {
    transform: translateY(0);
}

.slideup-modal__handle {
    width: 36px;
    height: 4px;
    background: #d1d1d6;
    border-radius: 2px;
    margin: 8px auto 4px;
    flex-shrink: 0;
}

.slideup-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
}

.slideup-modal__title {
    font-size: 17px;
    font-weight: 600;
    color: #1d1d1f;
}

.slideup-modal__close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    color: #636366;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.slideup-modal__close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #1d1d1f;
}

.slideup-modal__close svg {
    width: 18px;
    height: 18px;
}

.slideup-modal__body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* ── Full-screen dark app detail variant ── */
.slideup-modal__panel--app-detail {
    background: #0a0a0f;
    min-height: 100vh;
    max-height: 100vh;
    border-radius: 0;
}
.slideup-modal__panel--app-detail .slideup-modal__handle { background: rgba(255,255,255,0.15); }
.slideup-modal__panel--app-detail .slideup-modal__header {
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.slideup-modal__panel--app-detail .slideup-modal__title {
    color: #f1f5f9;
}
.slideup-modal__panel--app-detail .slideup-modal__close {
    background: rgba(255,255,255,0.08);
    color: #94a3b8;
}
.slideup-modal__panel--app-detail .slideup-modal__close:hover {
    background: rgba(255,255,255,0.15);
    color: #f1f5f9;
}

/* =============================================================================
   ADMIN KEBAB MENU — three-dot menu on app cards (super_admin only)
   ============================================================================= */
.shop-admin-kebab {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 10;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(8px);
    color: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: background 0.15s;
}
.shop-admin-kebab:hover {
    background: rgba(0,0,0,0.75);
    color: #fff;
}
.shop-admin-kebab__menu {
    display: none;
    position: absolute;
    top: 32px;
    right: 0;
    min-width: 140px;
    background: #1a1a2e;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
.shop-admin-kebab__menu--open {
    display: block;
}
.shop-admin-kebab__menu button,
.shop-admin-kebab__menu a {
    display: block;
    width: 100%;
    padding: 10px 14px;
    border: none;
    background: none;
    color: rgba(255,255,255,0.8);
    font-size: 13px;
    text-align: left;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.1s;
}
.shop-admin-kebab__menu button:hover,
.shop-admin-kebab__menu a:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
}
.shop-admin-kebab__menu button + button,
.shop-admin-kebab__menu button + a,
.shop-admin-kebab__menu a + button {
    border-top: 1px solid rgba(255,255,255,0.06);
}
/* Let kebab dropdown escape card overflow clip */
.nf-card:has(.shop-admin-kebab) {
    overflow: visible;
}
.nf-card:has(.shop-admin-kebab) .nf-card__quest-hero,
.nf-card:has(.shop-admin-kebab) .nf-card__icon-area {
    overflow: hidden;
    border-radius: 14px 14px 0 0;
}

/* =============================================================================
   PACK-CARD SHOP VARIANTS — footer button overrides for shop context
   ============================================================================= */

/* "Open" button for owned/free apps — green accent */
.pack-card__footer-btn--owned {
    background: rgba(16, 185, 129, 0.2) !important;
    border-color: rgba(16, 185, 129, 0.5) !important;
    color: #10b981 !important;
}
.pack-card__footer-btn--owned:hover {
    background: rgba(16, 185, 129, 0.35) !important;
    border-color: #10b981 !important;
}

/* Price button for purchasable apps — shows Coiny icon + amount */
.pack-card__footer-btn--buy {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: #4ade80 !important;
    background: rgba(74, 222, 128, 0.12) !important;
    border-color: rgba(74, 222, 128, 0.4) !important;
}
.pack-card__footer-btn--buy:hover {
    background: rgba(74, 222, 128, 0.25) !important;
    border-color: rgba(74, 222, 128, 0.7) !important;
}

/* =============================================================================
   PURCHASE MODAL (inside slideup-modal — white background)
   ============================================================================= */
.purchase-modal__preview {
    margin: 0 -20px 16px;
}

.purchase-modal__image {
    width: 100%;
    max-height: 200px;
    overflow: hidden;
    border-radius: 12px;
    margin: 0 auto;
    padding: 0 20px;
}

.purchase-modal__image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
}

.purchase-modal__item-name {
    font-size: 20px;
    font-weight: 700;
    color: #1d1d1f;
    margin: 0 0 4px;
}

.purchase-modal__item-desc {
    font-size: 14px;
    color: #636366;
    margin: 0 0 20px;
}

.purchase-modal__breakdown {
    background: #f5f5f7;
    border-radius: 12px;
    padding: 4px 16px;
    margin-bottom: 20px;
}

.purchase-modal__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-size: 15px;
    color: #636366;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.purchase-modal__row:last-child {
    border-bottom: none;
}

.purchase-modal__row--after {
    color: #1d1d1f;
    font-weight: 600;
}

.purchase-modal__price {
    color: #10b981;
    font-weight: 600;
}

.purchase-modal__confirm-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: #10b981;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    margin-bottom: 8px;
}

.purchase-modal__confirm-btn:hover {
    background: #059669;
}

.purchase-modal__confirm-btn:disabled {
    background: #e5e5ea;
    color: #8e8e93;
    cursor: not-allowed;
}

.purchase-modal__cancel-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: none;
    border: none;
    color: #8e8e93;
    font-size: 15px;
    cursor: pointer;
    text-align: center;
}

.purchase-modal__cancel-btn:hover {
    color: #636366;
}

/* Insufficient balance modal */
.insufficient-lumina {
    text-align: center;
    padding: 20px 0;
}

.insufficient-lumina__icon {
    margin-bottom: 12px;
}

.insufficient-lumina__icon svg {
    width: 48px;
    height: 48px;
}

.insufficient-lumina__title {
    font-size: 20px;
    font-weight: 700;
    color: #1d1d1f;
    margin: 0 0 8px;
}

.insufficient-lumina__message {
    font-size: 15px;
    color: #636366;
    margin: 0 0 8px;
}

.insufficient-lumina__hint {
    font-size: 13px;
    color: #8e8e93;
    margin: 0 0 20px;
}

.insufficient-lumina__dismiss,
.insufficient-lumina__action {
    display: inline-block;
    padding: 12px 32px;
    background: #10b981;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.insufficient-lumina__dismiss:hover,
.insufficient-lumina__action:hover {
    background: #059669;
}

.shop-light .insufficient-lumina__dismiss {
    color: #8e8e93;
}

/* =============================================================================
   GET COINY CARDS
   ============================================================================= */
.nf-card--coiny {
    width: 150px;
    min-height: 200px;
}

.nf-card__icon-area--coiny {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
}

.nf-card__btn--coiny-buy {
    width: 100%;
    padding: 8px 12px;
    background: #10b981;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
}

.nf-card__btn--coiny-buy:hover {
    background: #059669;
}

.nf-card--coiny .nf-card__foot {
    padding: 8px 12px 12px;
}

/* ── Stripe payment form inside modal ── */
.stripe-payment-form {
    text-align: center;
}

.stripe-payment-form__summary {
    margin-bottom: 20px;
}

.stripe-payment-form__coiny-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.stripe-payment-form__coiny-icon svg {
    width: 48px;
    height: 48px;
}

.stripe-payment-form__amount {
    font-size: 28px;
    font-weight: 800;
    color: #1d1d1f;
    margin: 0 0 4px;
}

.stripe-payment-form__price {
    font-size: 14px;
    color: #636366;
}

.stripe-payment-form__card-wrapper {
    background: #f5f5f7;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 16px;
    text-align: left;
}

.stripe-payment-form__card-label {
    font-size: 12px;
    font-weight: 600;
    color: #636366;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: block;
}

#stripe-card-element {
    padding: 4px 0;
}

#stripe-card-errors {
    color: #ef4444;
    font-size: 13px;
    margin-top: 8px;
    min-height: 20px;
    text-align: left;
}

.stripe-payment-form__submit {
    width: 100%;
    padding: 14px;
    background: #10b981;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
    margin-bottom: 8px;
}

.stripe-payment-form__submit:hover {
    background: #059669;
}

.stripe-payment-form__submit:disabled {
    background: #d1d5db;
    color: #9ca3af;
    cursor: not-allowed;
}

.stripe-payment-form__cancel {
    width: 100%;
    padding: 10px;
    background: transparent;
    border: none;
    color: #8e8e93;
    font-size: 14px;
    cursor: pointer;
}

.stripe-payment-form__cancel:hover {
    color: #636366;
}

.stripe-payment-form__success {
    padding: 20px 0;
}

.stripe-payment-form__success-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.stripe-payment-form__success h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1d1d1f;
    margin: 0 0 8px;
}

.stripe-payment-form__success p {
    font-size: 14px;
    color: #636366;
    margin: 0;
}

.stripe-payment-form__secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 12px;
    font-size: 11px;
    color: #8e8e93;
}

.stripe-payment-form__secure svg {
    width: 12px;
    height: 12px;
}

/* =============================================================================
   RESPONSIVE
   ============================================================================= */
@media (max-width: 767px) {
    .nf-hero {
        height: 260px;
    }

    .nf-hero__title {
        font-size: 28px;
    }

    .nf-row__header {
        padding: 0 16px 8px;
    }

    .nf-row__scroll {
        padding: 0 16px 8px;
        gap: 10px;
    }

    .nf-scroll-card {
        width: 155px;
        min-height: 210px;
    }

    .nf-card--quest {
        width: 60vw;
        max-width: 260px;
        min-width: 200px;
    }

    .nf-card--tool,
    .nf-card--effect {
        width: 140px;
        min-height: 190px;
    }

    .nf-card--coiny {
        width: 135px;
        min-height: 185px;
    }

    .slideup-modal__panel {
        min-height: 50vh;
        max-height: 95vh;
    }
}

@media (min-width: 768px) {
    .nf-hero {
        height: 360px;
    }

    .nf-hero__content {
        bottom: 32px;
        left: 32px;
    }

    .nf-hero__title {
        font-size: 42px;
    }

    .nf-row__header {
        padding: 0 24px 12px;
    }

    .nf-row__scroll {
        padding: 0 24px 8px;
        gap: 14px;
    }

    .nf-scroll-card {
        width: 180px;
        min-height: 240px;
    }

    .nf-card--tool,
    .nf-card--effect {
        width: 160px;
        min-height: 210px;
    }

    .nf-card--coiny {
        width: 155px;
        min-height: 205px;
    }
}
