/* ==========================================================================
   Lapa Collectible Cards - Showcase & Discord Trading
   Minimalist Luxury White Art Cards (Full-Height Art + Top Rarity Badge)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Page Layout & Hero Section
   -------------------------------------------------------------------------- */
.cards-page-wrapper {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 20px 80px;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}



.cards-hero-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 860px;
    margin: 10px auto 28px;
    animation: heroHeaderSpawn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.12s both;
    will-change: transform, opacity;
}

@keyframes heroHeaderSpawn {
    0% {
        opacity: 0;
        transform: translateY(16px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Eyebrow badge */
.cards-eyebrow-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 6px 18px 6px 10px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 9999px;
    box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    margin-bottom: 18px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cards-eyebrow-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px -2px rgba(15, 23, 42, 0.10);
}

.pill-star-icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #d98386 0%, #bd4953 100%);
    color: #ffffff;
    border-radius: 7px;
    box-shadow: 0 2px 6px rgba(217, 131, 134, 0.45);
    flex-shrink: 0;
    line-height: 0;
}

.pill-star-icon svg,
.pill-paw-svg {
    display: block;
    width: 14px;
    height: 14px;
    margin: auto;
}

.pill-label {
    font-family: var(--font-heading);
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

/* Headline leveled and aligned with coral-rose gradient and sticker outline */
.cards-main-title {
    font-family: 'Shantell Sans', var(--font-heading);
    font-variation-settings: "BNCE" 0, "INFM" 0;
    font-size: clamp(32px, 4.5vw, 54px);
    font-weight: 800;
    line-height: 1.22;
    letter-spacing: -0.015em;
    color: #0f172a;
    margin: 0;
    text-align: center;
}

.cards-title-highlight {
    display: block;
    margin-top: 5px;
    background: linear-gradient(180deg, #d98386 0%, #e3a4a6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: 
        drop-shadow(0 2px 0 #ffffff) 
        drop-shadow(0 -2px 0 #ffffff) 
        drop-shadow(2px 0 0 #ffffff) 
        drop-shadow(-2px 0 0 #ffffff)
        drop-shadow(1.5px 1.5px 0 #ffffff)
        drop-shadow(-1.5px 1.5px 0 #ffffff)
        drop-shadow(1.5px -1.5px 0 #ffffff)
        drop-shadow(-1.5px -1.5px 0 #ffffff)
        drop-shadow(0 4px 12px rgba(217, 131, 134, 0.25));
}

/* Anti-RMT & Collection Disclaimer */
.cards-disclaimer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0 auto 30px;
    padding: 6px 20px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(225, 29, 72, 0.18);
    border-radius: 9999px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
    animation: disclaimerSpawn 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

@keyframes disclaimerSpawn {
    0% {
        opacity: 0;
        transform: translateY(14px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.cards-disclaimer:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
}

.cards-disclaimer-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(239, 68, 68, 0.11);
    color: #e11d48;
    border: 1px solid rgba(225, 29, 72, 0.14);
    border-radius: 9999px;
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    flex-shrink: 0;
    line-height: 1;
}

.cards-disclaimer-badge svg {
    display: block;
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    margin: 0;
}

.cards-disclaimer-text {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    position: relative;
    top: -0.5px;
}

@media (max-width: 640px) {
    .cards-disclaimer {
        white-space: normal;
        border-radius: 18px;
        padding: 10px 16px;
        flex-direction: column;
        gap: 6px;
        text-align: center;
        max-width: 90%;
    }

    .cards-disclaimer-text {
        line-height: 1.4;
        text-align: center;
        top: 0;
    }
}

/* --------------------------------------------------------------------------
   2. Rarity Filters Bar
   -------------------------------------------------------------------------- */
.cards-action-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 36px;
    animation: filterBarSpawn 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
    will-change: transform, opacity;
}

@keyframes filterBarSpawn {
    0% {
        opacity: 0;
        transform: translateY(16px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.rarity-filters {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 7px 10px;
    background: rgba(255, 255, 255, 0.90);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 9999px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.07);
    flex-wrap: wrap;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.rarity-filters::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, 0.6) 50%, transparent 80%);
    transform: translateX(-130%) skewX(-15deg);
    animation: sheenSweep 1.25s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
    pointer-events: none;
}

@keyframes sheenSweep {
    0% {
        transform: translateX(-130%) skewX(-15deg);
        opacity: 0;
    }
    25% {
        opacity: 1;
    }
    100% {
        transform: translateX(180%) skewX(-15deg);
        opacity: 0;
    }
}

.btn-filter {
    padding: 8px 16px;
    border-radius: 9999px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.28s cubic-bezier(0.16, 1.25, 0.35, 1),
                background 0.2s ease,
                color 0.2s ease,
                box-shadow 0.28s cubic-bezier(0.16, 1.25, 0.35, 1);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    position: relative;
    user-select: none;
    will-change: transform;
}

.btn-filter:hover {
    color: var(--text-primary);
    background: rgba(15, 23, 42, 0.06);
    transform: translateY(-2px) scale(1.06);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.btn-filter:active {
    transform: scale(0.97);
    transition-duration: 0.1s;
}

.btn-filter.active {
    background: #0f172a;
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.25);
}

.btn-filter.active:hover {
    color: #ffffff;
    background: #0f172a;
    transform: translateY(-2px) scale(1.06);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.32);
}

.filter-rarity-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.28s cubic-bezier(0.16, 1.25, 0.35, 1);
}

.btn-filter:hover .filter-rarity-icon {
    transform: scale(1.16) rotate(-2deg);
}

.filter-rarity-icon svg {
    display: block;
}

/* Dalmatian Coat Theme for Limited Filter Button (Border Removed) */
.btn-filter[data-filter="limited"] {
    background-color: #ffffff;
    background-image: url('../assets/dalmatian-spots.svg');
    background-size: 110px 55px;
    background-position: center;
    border: none;
    color: #0f172a;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.1);
}

.btn-filter[data-filter="limited"]:hover {
    border: none;
    transform: translateY(-2px) scale(1.06);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.2);
}

.btn-filter[data-filter="limited"] .filter-rarity-icon {
    color: #0f172a;
    filter: drop-shadow(0 0 2px #ffffff);
}

.btn-filter[data-filter="limited"] span {
    color: #0f172a;
    text-shadow: 0 0 4px #ffffff, 0 0 2px #ffffff, 0 1px 2px #ffffff;
}

.btn-filter.active[data-filter="limited"] {
    background-color: #ffffff;
    background-image: url('../assets/dalmatian-spots.svg');
    background-size: 110px 55px;
    background-position: center;
    border: none;
    color: #0f172a;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.25);
}

.btn-filter.active[data-filter="limited"]:hover {
    border: none;
    transform: translateY(-2px) scale(1.06);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.32);
}

.btn-filter.active[data-filter="limited"] .filter-rarity-icon {
    color: #0f172a !important;
    filter: drop-shadow(0 0 2px #ffffff);
}

.btn-filter.active[data-filter="limited"] span {
    color: #0f172a !important;
    text-shadow: 0 0 4px #ffffff, 0 0 2px #ffffff, 0 1px 2px #ffffff;
}

/* --------------------------------------------------------------------------
   3. Cards Grid (Compact & Centered Gallery)
   -------------------------------------------------------------------------- */
.tcg-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 225px));
    justify-content: center;
    gap: 24px;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto 48px;
    perspective: 1600px;
}

@media (max-width: 520px) {
    .tcg-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
}

/* --------------------------------------------------------------------------
   4. Minimalist White Art Card with Top Rarity Badge
   -------------------------------------------------------------------------- */
.collector-card-item {
    position: relative;
    width: 100%;
    height: 335px;
    border-radius: 22px;
    cursor: pointer;
    transform-style: preserve-3d;
    outline: none;
    animation: cardSpawnFly 0.8s cubic-bezier(0.16, 1.15, 0.3, 1) var(--card-delay, 0.1s) backwards;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 520px) {
    .collector-card-item {
        height: 295px;
    }
}

.collector-card-item:focus-visible {
    box-shadow: 0 0 0 3px #d98386;
}

@keyframes cardSpawnFly {
    0% {
        opacity: 0;
        transform: translateY(28px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Pure White Background, Soft 3D Shadow, Clean Bevel */
.art-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    background: #ffffff;
    padding: 8px 8px 10px 8px;
    border-radius: 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 
        0 18px 42px -8px rgba(15, 23, 42, 0.12),
        0 4px 12px -2px rgba(15, 23, 42, 0.05),
        inset 0 1px 1px #ffffff;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: all 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.collector-card-item:hover .art-card-inner {
    border-color: rgba(15, 23, 42, 0.14);
    box-shadow: 
        0 28px 60px -10px rgba(15, 23, 42, 0.20),
        0 8px 24px -4px rgba(15, 23, 42, 0.08),
        0 0 25px -2px var(--rarity-glow, rgba(217, 131, 134, 0.3)),
        inset 0 1px 2px #ffffff;
}

/* Rarity Color Themes (Top Badge & Ambient Glow) */
.card-rarity-limited {
    --badge-bg: #0f172a;
    --rarity-glow: rgba(15, 23, 42, 0.45);
}

/* Dalmatian Coat Theme for Limited Top Badge (Border Removed) */
.card-rarity-limited .card-ref-top-tab {
    background-color: #ffffff;
    background-image: url('../assets/dalmatian-spots.svg');
    background-size: 110px 55px;
    background-position: center;
    color: #0f172a;
    border: none;
    padding: 5px 22px 6px;
    min-width: 105px;
    box-shadow: 
        0 4px 14px rgba(15, 23, 42, 0.22),
        0 0 10px rgba(0, 0, 0, 0.08);
}

.card-rarity-limited .card-ref-top-tab .ref-tab-icon {
    color: #0f172a;
    filter: drop-shadow(0 0 2px #ffffff);
}

.card-rarity-limited .card-ref-top-tab span {
    color: #0f172a;
    text-shadow: 0 0 4px #ffffff, 0 0 2px #ffffff, 0 1px 2px #ffffff;
}

.card-rarity-legendary {
    --badge-bg: #d97706;
    --rarity-glow: rgba(217, 119, 6, 0.45);
}

.card-rarity-mythic {
    --badge-bg: #e11d48;
    --rarity-glow: rgba(225, 29, 72, 0.45);
}

.card-rarity-epic {
    --badge-bg: #7c3aed;
    --rarity-glow: rgba(124, 58, 237, 0.45);
}

.card-rarity-rare {
    --badge-bg: #0284c7;
    --rarity-glow: rgba(2, 132, 199, 0.45);
}

.card-rarity-uncommon {
    --badge-bg: #2563eb;
    --rarity-glow: rgba(37, 99, 235, 0.45);
}

.card-rarity-common {
    --badge-bg: #64748b;
    --rarity-glow: rgba(100, 116, 139, 0.35);
}

/* Top Attached Rarity Badge */
.card-ref-top-tab {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: var(--badge-bg, #2563eb);
    color: #ffffff;
    padding: 5px 18px 6px;
    border-radius: 0 0 12px 12px;
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    z-index: 10;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    border: none;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.collector-card-item:hover .card-ref-top-tab {
    transform: translateX(-50%) translateY(2px) scale(1.05);
}

.ref-tab-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ref-tab-icon svg {
    display: block;
    width: 12px;
    height: 12px;
}

/* Artwork Frame (Takes Almost 100% of the Card Height!) */
.art-img-wrap {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: #f8fafc;
    position: relative;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.art-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    display: block;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.collector-card-item:hover .art-img {
    transform: scale(1.06);
}

/* Holographic Glare Layer on Hover */
.card-holo-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        125deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.35) 30%,
        rgba(255, 120, 180, 0.4) 45%,
        rgba(120, 240, 255, 0.45) 55%,
        rgba(255, 240, 100, 0.38) 65%,
        rgba(255, 255, 255, 0) 85%
    );
    background-size: 260% 260%;
    background-position: var(--holo-pos, 50% 50%);
    mix-blend-mode: overlay;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 5;
}

.collector-card-item:hover .card-holo-shine {
    opacity: 0.85;
}

/* --------------------------------------------------------------------------
   4b. Bottom Vignette & Information Overlay (Inspired by User Reference)
   -------------------------------------------------------------------------- */
.card-art-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 44px 10px 30px 10px;
    background: linear-gradient(
        to top,
        rgba(10, 15, 26, 0.96) 0%,
        rgba(10, 15, 26, 0.82) 45%,
        rgba(10, 15, 26, 0.45) 75%,
        transparent 100%
    );
    z-index: 6;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    pointer-events: none;
    border-radius: 0 0 16px 16px;
    transition: background 0.3s ease;
}

.collector-card-item:hover .card-art-overlay {
    background: linear-gradient(
        to top,
        rgba(10, 15, 26, 0.98) 0%,
        rgba(10, 15, 26, 0.88) 50%,
        rgba(10, 15, 26, 0.50) 80%,
        transparent 100%
    );
}

.card-overlay-text {
    padding: 0 4px 2px;
}

.card-art-title {
    font-family: 'Shantell Sans', var(--font-heading), cursive;
    font-variation-settings: "BNCE" 0, "INFM" 0;
    font-size: 14.5px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.01em;
    line-height: 1.25;
    margin: 0 0 3px 0;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.85);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-art-desc {
    font-family: var(--font-sans);
    font-size: 11px;
    line-height: 1.35;
    color: rgba(226, 232, 240, 0.82);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
    margin: 0;
}

/* Bottom-Left Attached Rarity Tab (Drop Rate %) - Pinned strictly to corner (0,0) */
.card-bottom-left-tab {
    position: absolute;
    bottom: -1px;
    left: -1px;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 5px 14px 6px 13px;
    border-radius: 0 14px 0 0;
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.02em;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.25);
    white-space: nowrap;
    line-height: 1;
    pointer-events: none;
    transition: transform 0.25s ease;
}

.collector-card-item:hover .card-bottom-left-tab {
    transform: scale(1.04);
    transform-origin: bottom left;
}

/* Bottom Tab Color Themes per Rarity */
.card-rarity-limited .card-bottom-left-tab {
    background-color: #ffffff;
    background-image: url('../assets/dalmatian-spots.svg');
    background-size: 85px 42px;
    background-position: center;
    color: #0f172a;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.4);
}

.card-rarity-legendary .card-bottom-left-tab {
    background: #fbbf24;
    color: #451a03;
}

.card-rarity-mythic .card-bottom-left-tab {
    background: #f43f5e;
    color: #ffffff;
}

.card-rarity-epic .card-bottom-left-tab {
    background: #a855f7;
    color: #ffffff;
}

.card-rarity-rare .card-bottom-left-tab {
    background: #38bdf8;
    color: #082f49;
}

.card-rarity-uncommon .card-bottom-left-tab {
    background: #60a5fa;
    color: #0f172a;
}

.card-rarity-common .card-bottom-left-tab {
    background: #94a3b8;
    color: #0f172a;
}

/* --------------------------------------------------------------------------
   5. Discord Trading CTA Banner
   -------------------------------------------------------------------------- */
.cards-bottom-banner {
    width: 100%;
    max-width: 1240px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 24px;
    padding: 22px 30px;
    box-shadow: 
        0 20px 45px -10px rgba(15, 23, 42, 0.08),
        0 4px 14px -2px rgba(15, 23, 42, 0.04),
        inset 0 1px 2px #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    animation: ctaSpawnGlide 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.5s backwards;
}

@keyframes ctaSpawnGlide {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.banner-left-info {
    flex: 1;
    min-width: 260px;
}

.banner-headline {
    font-family: var(--font-heading);
    font-size: 21px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.015em;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.banner-badge-highlight {
    display: inline-flex;
    align-items: center;
    padding: 3px 11px;
    background: #10b981;
    color: #ffffff;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.banner-subtext {
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.btn-banner-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    background: #5865F2;
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-decoration: none;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 24px -4px rgba(88, 101, 242, 0.45);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.btn-banner-action:hover {
    transform: translateY(-2px) scale(1.03);
    background: #4752c4;
    box-shadow: 0 16px 32px -4px rgba(88, 101, 242, 0.6);
}

/* --------------------------------------------------------------------------
   6. Minimalist Luxury Card Inspection Modal
   -------------------------------------------------------------------------- */
.card-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10, 15, 29, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-modal-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

.modal-content-stage {
    position: relative;
    max-width: 760px;
    width: 100%;
    margin: auto;
    animation: modalShowcasePop 0.38s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes modalShowcasePop {
    0% {
        opacity: 0;
        transform: scale(0.94) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Modal Showcase Glass Container */
.modal-showcase-container {
    position: relative;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 28px;
    box-shadow: 
        0 30px 80px -15px rgba(15, 23, 42, 0.28),
        0 10px 25px -5px rgba(15, 23, 42, 0.08),
        inset 0 1px 2px #ffffff;
    padding: 32px 36px;
    overflow: hidden;
}

/* Dynamic Ambient Glow Behind Card */
.modal-ambient-glow {
    position: absolute;
    top: 50%;
    left: 22%;
    transform: translate(-50%, -50%);
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--theme-glow, rgba(217, 131, 134, 0.32)) 0%, transparent 70%);
    filter: blur(45px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.85;
}

/* Modal Close Button */
.btn-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.05);
    border: 1px solid rgba(15, 23, 42, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 20;
}

.btn-modal-close:hover {
    background: #0f172a;
    color: #ffffff;
    transform: rotate(90deg) scale(1.06);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.25);
}

/* 2-Column Showcase Grid */
.modal-showcase-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 270px 1fr;
    gap: 36px;
    align-items: center;
}

/* --------------------------------------------------------------------------
   Left Column: Physical Collectible Card
   -------------------------------------------------------------------------- */
.modal-card-stage-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.modal-card-physical-frame {
    width: 270px;
    height: 395px;
    border-radius: 22px;
    background: #ffffff;
    padding: 7px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    box-shadow: 
        0 20px 50px -10px rgba(15, 23, 42, 0.22),
        0 6px 16px -4px rgba(15, 23, 42, 0.07),
        inset 0 1px 1px #ffffff;
    position: relative;
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
    user-select: none;
    cursor: default;
}

.modal-art-frame {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #f1f5f9;
}

.modal-art-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    display: block;
}

.modal-specular-glare {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 6;
    border-radius: 16px;
}

/* --------------------------------------------------------------------------
   Right Column: Clean Dossier & Details
   -------------------------------------------------------------------------- */
.modal-dossier-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dossier-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.dossier-rarity-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 9999px;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    background: var(--badge-bg, #0f172a);
    box-shadow: 0 4px 12px -2px var(--theme-glow, rgba(15, 23, 42, 0.3));
}

.dossier-rarity-icon {
    display: inline-flex;
    align-items: center;
    line-height: 0;
}

.dossier-series-tag {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 0.04em;
}

.dossier-title {
    font-family: 'Shantell Sans', var(--font-heading);
    font-size: clamp(22px, 2.4vw, 28px);
    font-weight: 800;
    color: #0f172a;
    line-height: 1.22;
    margin: 4px 0 2px;
    letter-spacing: -0.015em;
}

.dossier-subtitle {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 16px;
}

/* --------------------------------------------------------------------------
   Clean Symmetrical Specs Bar
   -------------------------------------------------------------------------- */
.modal-specs-bar {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    box-shadow: 
        0 4px 16px -2px rgba(15, 23, 42, 0.04),
        inset 0 1px 1px #ffffff;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    margin-bottom: 18px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.modal-specs-bar:hover {
    border-color: rgba(15, 23, 42, 0.14);
    box-shadow: 
        0 6px 20px -3px rgba(15, 23, 42, 0.07),
        inset 0 1px 1px #ffffff;
}

.spec-segment {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 18px;
    gap: 12px;
    min-width: 0;
}

.spec-divider {
    width: 1px;
    height: 26px;
    background: rgba(15, 23, 42, 0.08);
    flex-shrink: 0;
}

.spec-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.spec-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--theme-accent, #2563eb);
    flex-shrink: 0;
}

.spec-icon-gold {
    color: #d97706;
}

.spec-label {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
}

.spec-value {
    font-family: 'Outfit', var(--font-heading);
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    white-space: nowrap;
    letter-spacing: -0.01em;
}

.spec-value.text-accent {
    color: var(--theme-accent, #2563eb);
}

.spec-value small {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    margin-left: 2px;
}

/* Lore / Quote Section */
.dossier-lore-card {
    background: rgba(15, 23, 42, 0.025);
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-left: 3.5px solid var(--theme-accent, #d98386);
    border-radius: 14px;
    padding: 12px 16px;
    margin-bottom: 20px;
}

.dossier-lore-text {
    font-family: var(--font-sans);
    font-size: 13px;
    line-height: 1.55;
    color: #334155;
    margin: 0;
    font-style: italic;
}

/* Primary Action: Discord Trading */
.btn-dossier-discord {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    padding: 13px 24px;
    background: #5865F2;
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    border-radius: 9999px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 6px 20px -3px rgba(88, 101, 242, 0.45);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    margin-bottom: 14px;
}

.btn-dossier-discord:hover {
    background: #4752c4;
    transform: translateY(-2px);
    box-shadow: 0 10px 26px -3px rgba(88, 101, 242, 0.6);
}

.dossier-safety-pill {
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-sans);
    font-size: 11.5px;
    color: #64748b;
    line-height: 1.4;
}

.dossier-safety-pill svg {
    flex-shrink: 0;
    color: #e11d48;
}

/* --------------------------------------------------------------------------
   Rarity Themes for Modal Showcase
   -------------------------------------------------------------------------- */
.rarity-theme-limited {
    --theme-color: #0f172a;
    --theme-accent: #0f172a;
    --theme-glow: rgba(15, 23, 42, 0.35);
    --badge-bg: #0f172a;
}
.rarity-theme-limited .dossier-rarity-pill {
    background-color: #ffffff;
    background-image: url('../assets/dalmatian-spots.svg');
    background-size: 110px 55px;
    background-position: center;
    color: #0f172a;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.25);
}

.rarity-theme-legendary {
    --theme-color: #d97706;
    --theme-accent: #f59e0b;
    --theme-glow: rgba(245, 158, 11, 0.35);
    --badge-bg: linear-gradient(135deg, #d97706 0%, #b45309 100%);
}

.rarity-theme-mythic {
    --theme-color: #e11d48;
    --theme-accent: #f43f5e;
    --theme-glow: rgba(225, 29, 72, 0.35);
    --badge-bg: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
}

.rarity-theme-epic {
    --theme-color: #7c3aed;
    --theme-accent: #8b5cf6;
    --theme-glow: rgba(124, 58, 237, 0.35);
    --badge-bg: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
}

.rarity-theme-rare {
    --theme-color: #0284c7;
    --theme-accent: #0ea5e9;
    --theme-glow: rgba(2, 132, 199, 0.35);
    --badge-bg: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
}

.rarity-theme-uncommon {
    --theme-color: #2563eb;
    --theme-accent: #3b82f6;
    --theme-glow: rgba(37, 99, 235, 0.35);
    --badge-bg: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.rarity-theme-common {
    --theme-color: #64748b;
    --theme-accent: #94a3b8;
    --theme-glow: rgba(100, 116, 139, 0.28);
    --badge-bg: linear-gradient(135deg, #64748b 0%, #475569 100%);
}

/* --------------------------------------------------------------------------
   Responsive Modal Sizing
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .modal-showcase-container {
        padding: 24px 20px;
        border-radius: 24px;
    }

    .modal-showcase-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-height: 85vh;
        overflow-y: auto;
    }

    .modal-card-physical-frame {
        width: 250px;
        height: 365px;
        margin: 0 auto;
    }

    .btn-modal-close {
        top: 14px;
        right: 14px;
        width: 32px;
        height: 32px;
    }

    .modal-ambient-glow {
        left: 50%;
        top: 25%;
        width: 280px;
        height: 280px;
    }

    .dossier-title {
        font-size: 22px;
    }
}
