/* ==========================================================================
   lapalilpup User Profile - Stylesheet
   Minimalist Glassmorphism Profile Page with Discord Full Fidelity Features
   ========================================================================== */

/* --------------------------------------------------------------------------
   Discord Nitro & Mascot Fonts
   -------------------------------------------------------------------------- */
@font-face {
    font-family: 'vampyre';
    src: url('../fonts/vampyre.woff2') format('woff2');
    font-weight: bold;
    font-display: swap;
}
@font-face {
    font-family: '8bit';
    src: url('../fonts/8bit.woff2') format('woff2');
    font-weight: bold;
    font-display: swap;
}
@font-face {
    font-family: 'medieval';
    src: url('../fonts/medieval.woff2') format('woff2');
    font-weight: bold;
    font-display: swap;
}
@font-face {
    font-family: 'tempo';
    src: url('../fonts/tempo.woff2') format('woff2');
    font-weight: bold;
    font-display: swap;
}
@font-face {
    font-family: 'headbang';
    src: url('../fonts/headbang.woff2') format('woff2');
    font-weight: bold;
    font-display: swap;
}
@font-face {
    font-family: 'journal';
    src: url('../fonts/journal.woff2') format('woff2');
    font-weight: bold;
    font-display: swap;
}
@font-face {
    font-family: 'mainframe';
    src: url('../fonts/mainframe.woff2') format('woff2');
    font-weight: bold;
    font-display: swap;
}
@font-face {
    font-family: 'monkeybars';
    src: url('../fonts/monkeybars.woff2') format('woff2');
    font-weight: bold;
    font-display: swap;
}
@font-face {
    font-family: 'gg sans bold';
    src: url('../fonts/ggsans_bold.woff2') format('woff2');
    font-weight: bold;
    font-display: swap;
}
@font-face {
    font-family: 'gg sans semibold';
    src: url('../fonts/ggsans_semibold.woff2') format('woff2');
    font-weight: 600;
    font-display: swap;
}
@font-face {
    font-family: 'gg sans';
    src: url('../fonts/ggsans_normal.woff2') format('woff2');
    font-weight: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Pangolin';
    src: url('../fonts/pangolin.ttf') format('truetype');
    font-weight: bold;
    font-display: swap;
}

.profile-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: 1200px;
    margin: 0 auto;
}

/* Profile Card Container */
.profile-container {
    width: 100%;
    max-width: 820px;
    margin: 20px auto 0;
    position: relative;
    animation: profileCardFadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

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

/* Glass Card Outer */
.profile-card {
    background: #ffffff;
    border-radius: 28px;
    border: 1px solid #e2e8f0;
    box-shadow: 
        0 20px 48px -12px rgba(15, 23, 42, 0.12),
        0 4px 16px -2px rgba(15, 23, 42, 0.05);
    overflow: hidden;
    position: relative;
}

/* Card Banner */
.profile-banner {
    height: 190px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #ec4899 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
    transition: background 0.3s ease;
}

.profile-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.02) 0%, rgba(0,0,0,0.35) 100%);
    pointer-events: none;
}

.profile-banner-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.15;
    background-image: radial-gradient(#fff 1.5px, transparent 1.5px);
    background-size: 16px 16px;
    pointer-events: none;
}

.profile-banner-paw {
    position: absolute;
    right: 24px;
    bottom: -15px;
    width: 96px;
    height: 96px;
    opacity: 0.25;
    transform: rotate(15deg);
    pointer-events: none;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.25));
}

/* Profile Body */
.profile-body {
    padding: 0 32px 36px;
    position: relative;
}

/* Avatar Row */
.profile-avatar-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: -56px;
    margin-bottom: 24px;
    position: relative;
    z-index: 5;
    gap: 16px;
}

.profile-avatar-status-group {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    position: relative;
    max-width: calc(100% - 190px);
    min-width: 0;
}

.profile-avatar-wrap {
    position: relative;
    width: 114px;
    height: 114px;
    border-radius: 50%;
    padding: 4px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
    flex-shrink: 0;
}

.profile-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 1;
}

/* Avatar Decoration Overlay (Vampire teeth, blood, crowns, etc.) */
.profile-avatar-decoration {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    pointer-events: none;
    z-index: 3;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.22));
}

/* Discord Presence Status Indicators */
.profile-avatar-badge {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 26px;
    height: 26px;
    background: #23a55a;
    border: 4px solid #ffffff;
    border-radius: 50%;
    z-index: 4;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-avatar-badge.status-dnd {
    background: #f23f43;
}
.profile-avatar-badge.status-dnd::after {
    content: '';
    width: 10px;
    height: 3.5px;
    background: #ffffff;
    border-radius: 2px;
}

.profile-avatar-badge.status-idle {
    background: #f0b232;
}
.profile-avatar-badge.status-idle::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    width: 11px;
    height: 11px;
    background: #ffffff;
    border-radius: 50%;
}

.profile-avatar-badge.status-offline {
    background: #80848e;
}
.profile-avatar-badge.status-offline::after {
    content: '';
    width: 8px;
    height: 8px;
    background: #ffffff;
    border-radius: 50%;
}

.profile-actions {
    display: flex;
    gap: 10px;
}

.btn-profile-secondary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.05);
    color: #475569;
    font-family: var(--font-latin);
    font-size: 13px;
    font-weight: 600;
    border-radius: 9999px;
    text-decoration: none;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
}

.btn-profile-secondary:hover {
    background: rgba(0, 0, 0, 0.09);
    color: #0f172a;
    transform: translateY(-1px);
}

.btn-profile-logout {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #fee2e2;
    color: #ef4444;
    font-family: var(--font-latin);
    font-size: 13px;
    font-weight: 600;
    border-radius: 9999px;
    text-decoration: none;
    border: 1px solid rgba(239, 68, 68, 0.2);
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-profile-logout:hover {
    background: #fecaca;
    transform: translateY(-1px);
}

/* User Info Section */
.profile-names {
    margin-bottom: 22px;
}

/* Comic dialogue Title Sticker: "profile" or "love vibe" */
.profile-title-sticker {
    display: inline-block;
    font-family: 'Pangolin', 'Shantell Sans', cursive, sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #d98386;
    letter-spacing: 0.02em;
    -webkit-text-stroke: 4.5px #ffffff;
    paint-order: stroke fill;
    filter: drop-shadow(0 2px 6px rgba(217, 131, 134, 0.38));
    margin-bottom: 4px;
    transform: rotate(-1.5deg);
}
.profile-title-sticker.twistex-love {
    color: #f43f5e;
    filter: drop-shadow(0 2px 6px rgba(244, 63, 94, 0.45));
}

.profile-name-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 6px;
}

.profile-display-name {
    font-size: 32px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.15;
    margin: 0;
    letter-spacing: -0.01em;
}

/* Discord Nitro Dual-Zone Role Capsules */
.profile-role-capsule {
    display: inline-flex;
    align-items: center;
    height: 33px;
    border-radius: 9999px;
    background: linear-gradient(135deg, #d98386, #e3a4a6);
    box-shadow: 0 4px 14px rgba(217, 131, 134, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.4);
    overflow: hidden;
    padding-right: 14px;
    flex-shrink: 0;
}
.profile-role-capsule-icon-wrap {
    width: 33px;
    height: 33px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fff2f3, #fde1e3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    flex-shrink: 0;
}
.profile-role-capsule-icon-wrap svg,
.profile-role-capsule-icon-wrap img {
    width: 17px;
    height: 17px;
}
.profile-role-capsule-text {
    font-family: 'gg sans bold', var(--font-latin), sans-serif;
    font-size: 12.5px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.04em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
}

/* Role capsule variants */
.profile-role-capsule.badge-moderator {
    background: linear-gradient(135deg, #d98386, #e3a4a6);
    box-shadow: 0 4px 14px rgba(217, 131, 134, 0.38);
}
.profile-role-capsule.badge-helper {
    background: linear-gradient(135deg, #ba17a5, #8c057b);
    box-shadow: 0 4px 14px rgba(163, 6, 142, 0.42);
}
.profile-role-capsule.badge-helper .profile-role-capsule-icon-wrap {
    background: linear-gradient(135deg, #fceaf8, #f5ceee);
}
.profile-role-capsule.badge-booster {
    background: linear-gradient(135deg, #ff80fc, #db56db);
    box-shadow: 0 4px 14px rgba(244, 127, 255, 0.42);
}
.profile-role-capsule.badge-booster .profile-role-capsule-icon-wrap {
    background: linear-gradient(135deg, #fff5fe, #fae1fa);
}
.profile-role-capsule.badge-content_maker {
    background: linear-gradient(135deg, #9d00d1, #5d007c);
    box-shadow: 0 4px 14px rgba(121, 0, 161, 0.42);
}
.profile-role-capsule.badge-content_maker .profile-role-capsule-icon-wrap {
    background: linear-gradient(135deg, #f7e6ff, #ecc9ff);
}
.profile-role-capsule.badge-twistex {
    background: linear-gradient(135deg, #f43f5e, #fda4af);
    box-shadow: 0 4px 14px rgba(244, 63, 94, 0.45);
}
.profile-role-capsule.badge-twistex .profile-role-capsule-icon-wrap {
    background: linear-gradient(135deg, #fff1f2, #ffe4e6);
}

/* Level relationship badge */
.profile-level-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 30px;
    padding: 0 12px 0 4px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 9999px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}
.profile-level-chip {
    padding: 2px 8px;
    border-radius: 9999px;
    background: #38bdf8;
    color: #ffffff;
    font-family: 'gg sans bold', sans-serif;
    font-size: 11px;
    font-weight: 700;
}
.profile-level-text {
    font-family: 'gg sans bold', sans-serif;
    font-size: 12.5px;
    font-weight: 700;
    color: #1e293b;
}

/* Sub-row: Tag, Clan, Custom Status */
.profile-sub-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.profile-username-tag {
    font-family: 'gg sans semibold', var(--font-latin), sans-serif;
    font-size: 14.5px;
    color: #64748b;
    font-weight: 600;
    margin: 0;
}

/* Clan Chip: [🦋 >.<] */
.profile-clan-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    background: rgba(241, 245, 249, 0.95);
    border: 1px solid rgba(203, 213, 225, 0.9);
    border-radius: 6px;
    font-family: 'gg sans bold', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #334155;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.2s ease, box-shadow 0.2s ease;
}
.profile-clan-chip:hover {
    background: #ffffff;
    border-color: #5865F2;
    color: #5865F2;
    transform: translateY(-1.5px) scale(1.03);
    box-shadow: 0 4px 14px rgba(88, 101, 242, 0.2);
}
.profile-clan-badge-img {
    width: 14px;
    height: 14px;
    object-fit: contain;
}
.discord-clan-heart-svg {
    width: 13px;
    height: 13px;
    display: block;
    flex-shrink: 0;
}

/* Discord Badges Row in User Profile */
.profile-badges-row {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 4px;
}

.profile-badge-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.16s ease;
}

.profile-badge-item:hover {
    transform: scale(1.22);
}

.profile-badge-img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.18));
}

/* User Profile Bio Box */
.profile-bio-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px 18px;
    margin-bottom: 24px;
}

.profile-bio-heading {
    font-family: 'gg sans bold', var(--font-latin), sans-serif;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    margin: 0 0 6px 0;
}

.profile-bio-text {
    font-family: var(--font-cyrillic, 'Onest', sans-serif);
    font-size: 13.5px;
    line-height: 1.55;
    color: #334155;
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
}

/* Discord Speech Bubble Custom Status (To the right of the avatar, matching Discord) */
.profile-status-bubble {
    position: relative;
    background: #f2f3f5;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 10px 14px 12px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
    max-width: 205px;
    width: fit-content;
    margin-top: 44px;
    align-self: flex-start;
    z-index: 4;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: bubblePopIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

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

.profile-status-bubble:hover {
    box-shadow: 0 6px 22px rgba(15, 23, 42, 0.12);
}

/* Discord Speech Bubble Tail / Nub on top */
.profile-status-bubble-tail {
    position: absolute;
    top: -7px;
    left: 16px;
    width: 14px;
    height: 8px;
    background: #f2f3f5;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    border-left: 1px solid rgba(0, 0, 0, 0.08);
    border-right: 1px solid rgba(0, 0, 0, 0.08);
    border-top-left-radius: 7px;
    border-top-right-radius: 7px;
}

/* Status Content (Emoji & Text) */
.profile-status-bubble-content {
    font-family: 'gg sans', var(--font-latin), -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 13px;
    line-height: 1.38;
    font-weight: 500;
    color: #2e3338;
    word-break: break-word;
    white-space: normal;
}

.profile-status-bubble-emoji {
    width: 17px;
    height: 17px;
    vertical-align: -3px;
    margin-right: 5px;
    display: inline-block;
    object-fit: contain;
}

.profile-status-bubble-text {
    color: #2e3338;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: -0.01em;
}

@media (max-width: 640px) {
    .profile-avatar-status-group {
        max-width: 100%;
        flex-wrap: wrap;
        align-items: flex-start;
    }
    .profile-status-bubble {
        max-width: 100%;
        width: 100%;
    }
}

/* Meta Tags / Server info */
.profile-meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.profile-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: rgba(88, 101, 242, 0.08);
    color: #4f46e5;
    border: 1px solid rgba(88, 101, 242, 0.16);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    font-family: var(--font-latin);
}

.profile-tag.tag-server {
    background: rgba(34, 197, 94, 0.08);
    color: #15803d;
    border-color: rgba(34, 197, 94, 0.2);
}

/* Clean Placeholder Section */
.profile-placeholder-box {
    margin-top: 28px;
    padding: 56px 32px 48px;
    border: 2px dashed rgba(203, 213, 225, 0.85);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.45);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.profile-placeholder-box:hover {
    border-color: rgba(148, 163, 184, 0.95);
    background: rgba(255, 255, 255, 0.65);
}

.placeholder-paw-icon {
    width: 48px;
    height: 48px;
    opacity: 0.85;
    margin-bottom: 16px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.08));
}

.placeholder-title {
    font-family: 'Pangolin', 'Shantell Sans', cursive, var(--font-latin), sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 10px;
    letter-spacing: -0.01em;
}

.placeholder-desc {
    font-family: 'gg sans', var(--font-latin), sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #64748b;
    max-width: 520px;
    margin: 0 0 26px;
}

.placeholder-nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.btn-placeholder-nav {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 9999px;
    font-family: 'gg sans bold', var(--font-latin), sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    color: #334155;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-placeholder-nav:hover {
    background: #f8fafc;
    color: #0f172a;
    border-color: rgba(203, 213, 225, 0.95);
    transform: translateY(-1.5px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}


/* Unauthenticated State */
.profile-unauth-card {
    text-align: center;
    padding: 60px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.unauth-discord-icon-wrap {
    width: 72px;
    height: 72px;
    border-radius: 24px;
    background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 12px 32px -4px rgba(88, 101, 242, 0.45);
    margin-bottom: 24px;
}

.unauth-discord-icon-wrap svg {
    width: 38px;
    height: 38px;
}

.unauth-title {
    font-family: 'Shantell Sans', var(--font-latin);
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 10px;
    letter-spacing: -0.02em;
}

.unauth-desc {
    font-family: var(--font-latin);
    font-size: 14.5px;
    color: #64748b;
    max-width: 460px;
    margin: 0 0 32px;
    line-height: 1.6;
}

.unauth-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: 100%;
    max-width: 320px;
}

.btn-primary-discord {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 13px 24px;
    background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%);
    color: #ffffff;
    font-family: var(--font-latin);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 9999px;
    box-shadow: 0 8px 24px -4px rgba(88, 101, 242, 0.45);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}

.btn-primary-discord:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 28px -4px rgba(88, 101, 242, 0.55);
}



/* ==========================================================================
   Compact User Card Inventory Section
   ========================================================================== */
.profile-inventory-section {
    margin-top: 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    animation: inventoryFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes inventoryFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.inventory-compact-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
}

.inv-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.inv-title {
    font-family: 'Shantell Sans', var(--font-latin), sans-serif;
    font-size: 19px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    letter-spacing: -0.01em;
}

.inv-collected-chip {
    padding: 3px 10px;
    background: #f1f5f9;
    border: 1px solid rgba(203, 213, 225, 0.7);
    border-radius: 9999px;
    font-family: 'Fira Code', monospace;
    font-size: 11.5px;
    font-weight: 700;
    color: #475569;
}

.inv-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-inventory-roll {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
    color: #ffffff;
    border: none;
    border-radius: 9999px;
    font-family: 'gg sans bold', var(--font-latin), sans-serif;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(244, 63, 94, 0.3);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}

.btn-inventory-roll:hover {
    transform: translateY(-1.5px) scale(1.02);
    box-shadow: 0 6px 18px rgba(244, 63, 94, 0.45);
}

.btn-inventory-catalog {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    background: #ffffff;
    color: #475569;
    border: 1px solid rgba(203, 213, 225, 0.85);
    border-radius: 9999px;
    font-family: 'gg sans bold', var(--font-latin), sans-serif;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-inventory-catalog:hover {
    background: #f8fafc;
    color: #0f172a;
    border-color: #94a3b8;
}

/* --------------------------------------------------------------------------
   Profile Cards Inventory Grid (Compact & Elegantly Proportioned)
   -------------------------------------------------------------------------- */
.profile-inventory-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    margin-top: 16px;
    perspective: 1600px;
}

@media (max-width: 760px) {
    .profile-inventory-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }
}

@media (max-width: 540px) {
    .profile-inventory-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
}

/* Compact Card Height & Layout */
.profile-inventory-grid .collector-card-item {
    width: 100%;
    height: 255px;
    border-radius: 18px;
}

@media (max-width: 760px) {
    .profile-inventory-grid .collector-card-item {
        height: 240px;
    }
}

@media (max-width: 540px) {
    .profile-inventory-grid .collector-card-item {
        height: 220px;
    }
}

.profile-inventory-grid .art-card-inner {
    padding: 6px 6px 8px 6px;
    border-radius: 18px;
}

.profile-inventory-grid .art-img-wrap {
    border-radius: 13px;
}

.profile-inventory-grid .card-ref-top-tab {
    padding: 2.5px 8px;
    gap: 3.5px;
}

.profile-inventory-grid .card-ref-top-tab span {
    font-size: 8.5px;
    letter-spacing: 0.03em;
}

.profile-inventory-grid .ref-tab-icon svg {
    width: 10px;
    height: 10px;
}

.profile-inventory-grid .card-equipped-badge {
    top: 6px;
    left: 6px;
    padding: 2px 6.5px;
    font-size: 8px;
}

.profile-inventory-grid .card-art-overlay {
    padding: 8px 8px 6px 8px;
}

.profile-inventory-grid .card-art-title {
    font-size: 12.5px;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-inventory-grid .card-art-desc {
    font-size: 9.5px;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.profile-inventory-grid .card-bottom-left-tab {
    padding: 3px 8px 3.5px 8px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.02em;
    border-radius: 0 10px 0 0;
}

/* --------------------------------------------------------------------------
   Modal Dossier Actions (Equip & Discord buttons aligned)
   -------------------------------------------------------------------------- */
.modal-dossier-actions-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    margin-bottom: 12px;
    width: 100%;
}

.btn-modal-action-equip,
.btn-modal-action-roll,
.btn-modal-action-discord {
    flex: 1 1 0;
    min-width: 0;
    height: 44px;
    min-height: 44px;
    max-height: 44px;
    padding: 0 16px;
    margin: 0;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-family: 'Plus Jakarta Sans', var(--font-latin), sans-serif;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none;
    box-sizing: border-box;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-modal-action-equip {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}
.btn-modal-action-equip:hover {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    transform: translateY(-1.5px);
    box-shadow: 0 6px 18px rgba(79, 70, 229, 0.45);
}
.btn-modal-action-equip.is-equipped {
    background: #10b981;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
    cursor: default;
}
.btn-modal-action-equip.is-equipped:hover {
    transform: none;
}

.btn-modal-action-roll {
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 14px rgba(244, 63, 94, 0.35);
}
.btn-modal-action-roll:hover {
    background: linear-gradient(135deg, #fb7185 0%, #f43f5e 100%);
    transform: translateY(-1.5px);
}

.btn-modal-action-discord {
    background: #5865F2;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 14px rgba(88, 101, 242, 0.35);
}
.btn-modal-action-discord:hover {
    background: #4752c4;
    transform: translateY(-1.5px);
    box-shadow: 0 6px 18px rgba(88, 101, 242, 0.5);
}

/* Empty State */
.inv-empty-state {
    text-align: center;
    padding: 48px 20px;
    background: rgba(248, 250, 252, 0.85);
    border: 2px dashed rgba(203, 213, 225, 0.85);
    border-radius: 20px;
    margin-top: 18px;
    animation: inventoryFadeIn 0.3s ease both;
}

.inv-empty-state.is-hidden {
    display: none !important;
}

.inv-empty-icon {
    font-size: 40px;
    line-height: 1;
    margin-bottom: 12px;
}

.inv-empty-title {
    font-family: 'Shantell Sans', var(--font-latin), sans-serif;
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px 0;
}

.inv-empty-desc {
    font-family: 'Plus Jakarta Sans', var(--font-latin), sans-serif;
    font-size: 13.5px;
    color: #64748b;
    max-width: 440px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Equipped State Glow on Collector Card */
.collector-card-item.is-equipped .art-card-inner {
    border-color: #f59e0b !important;
    box-shadow: 
        0 0 0 2.5px #f59e0b,
        0 20px 48px -6px rgba(245, 158, 11, 0.38),
        0 4px 14px -2px rgba(15, 23, 42, 0.05),
        inset 0 1px 1px #ffffff !important;
}

/* Top-Left Equipped Badge */
.card-equipped-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 12;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    padding: 3px 8px;
    border-radius: 9999px;
    font-family: 'gg sans bold', var(--font-latin), sans-serif;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.03em;
    box-shadow: 0 3px 10px rgba(245, 158, 11, 0.5);
    pointer-events: none;
    animation: equippedPulse 2.5s infinite ease-in-out;
}

@keyframes equippedPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Top-Right Quantity Badge */
.card-qty-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 12;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    padding: 2.5px 8px;
    border-radius: 9999px;
    font-family: 'Fira Code', monospace;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.18);
    pointer-events: none;
}

/* Locked Card Mystery State (Refined, Perfectly Aligned & Dalmatian Styled) */
.collector-card-item.is-locked-card .art-img {
    filter: grayscale(82%) brightness(0.40) contrast(1.1);
    opacity: 0.88;
    transition: filter 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.collector-card-item.is-locked-card:hover .art-img {
    filter: grayscale(52%) brightness(0.48) contrast(1.12);
    opacity: 0.96;
}

.collector-card-item.is-locked-card .art-card-inner {
    background: #ffffff;
    border-color: rgba(203, 213, 225, 0.9);
    box-shadow: 
        0 12px 30px -6px rgba(15, 23, 42, 0.10),
        0 4px 12px -2px rgba(15, 23, 42, 0.05),
        inset 0 1px 2px #ffffff;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.collector-card-item.is-locked-card:hover .art-card-inner {
    border-color: rgba(148, 163, 184, 0.85);
    box-shadow: 
        0 20px 45px -8px rgba(15, 23, 42, 0.16),
        0 6px 16px -2px rgba(15, 23, 42, 0.08),
        inset 0 1px 2px #ffffff;
}

/* Subtle dark vignette on locked artwork */
.collector-card-item.is-locked-card .art-img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 42%, rgba(15, 23, 42, 0.20) 0%, rgba(15, 23, 42, 0.60) 100%);
    pointer-events: none;
    z-index: 5;
    transition: opacity 0.3s ease;
}

.collector-card-item.is-locked-card:hover .art-img-wrap::after {
    opacity: 0.70;
}

/* Perfectly Aligned Center Container */
/* Top: 26px accounts for .card-ref-top-tab (height ~26px) */
/* Bottom: 80px accounts for .card-art-overlay title and subtitle */
/* This centers the lock icon dead-center in the visible artwork window! */
.card-locked-overlay {
    position: absolute;
    top: 26px;
    bottom: 80px;
    left: 0;
    right: 0;
    z-index: 7;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

/* Pure Lock Icon (No Background Bubble) */
.locked-icon-pure {
    display: block;
    width: 38px;
    height: 38px;
    color: rgba(255, 255, 255, 0.92);
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.70)) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.90));
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease, filter 0.3s ease;
    will-change: transform;
}

.collector-card-item.is-locked-card:hover .locked-icon-pure {
    transform: scale(1.12);
    color: #ffffff;
    filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.45)) drop-shadow(0 4px 10px rgba(0, 0, 0, 0.85));
}

/* Hover Quick Actions on Inventory Cards */
.card-inv-hover-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 15;
    padding: 10px 10px;
    background: linear-gradient(to top, rgba(10, 15, 26, 0.96) 0%, rgba(10, 15, 26, 0.88) 75%, transparent 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 0 0 16px 16px;
}

.collector-card-item:hover .card-inv-hover-actions {
    opacity: 1;
    transform: translateY(0);
}

.btn-card-inv-action {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px 10px;
    border-radius: 8px;
    border: none;
    font-family: 'gg sans bold', var(--font-latin), sans-serif;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.18s ease;
    white-space: nowrap;
}

.btn-card-inv-inspect {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
}
.btn-card-inv-inspect:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-1.5px);
}

.btn-card-inv-equip {
    background: #38bdf8;
    color: #0f172a;
}
.btn-card-inv-equip:hover {
    background: #7dd3fc;
    transform: translateY(-1.5px);
}

.btn-card-inv-equip.is-active-btn {
    background: #10b981;
    color: #ffffff;
    cursor: default;
}
.btn-card-inv-equip.is-active-btn:hover {
    background: #10b981;
    transform: none;
}

.btn-card-inv-roll {
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
    color: #ffffff;
    padding: 8px 12px;
    box-shadow: 0 4px 14px rgba(244, 63, 94, 0.4);
}
.btn-card-inv-roll:hover {
    background: linear-gradient(135deg, #fb7185 0%, #f43f5e 100%);
    transform: translateY(-1.5px);
    box-shadow: 0 6px 18px rgba(244, 63, 94, 0.55);
}

/* Drop Celebration Toast / Modal */
.drop-celebration-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.drop-celebration-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

/* ==========================================================================
   CS:GO STYLE CASE OPENING STUDIO & ROULETTE REEL
   ========================================================================== */

.case-studio-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(8, 12, 22, 0.88);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.case-studio-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.case-studio-modal {
    position: relative;
    width: 100%;
    max-width: 860px;
    background: linear-gradient(180deg, #151d30 0%, #0d1322 100%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 28px;
    box-shadow: 
        0 30px 80px -10px rgba(0, 0, 0, 0.85),
        0 0 40px rgba(56, 189, 248, 0.08),
        inset 0 1px 1px rgba(255, 255, 255, 0.25);
    padding: 26px 28px 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transform: scale(0.94) translateY(12px);
    transition: transform 0.4s cubic-bezier(0.16, 1.15, 0.3, 1);
    overflow: hidden;
}

.case-studio-overlay.is-open .case-studio-modal {
    transform: scale(1) translateY(0);
}

/* Modal Header */
.case-studio-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.case-studio-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.case-studio-pill {
    font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #38bdf8;
    text-transform: uppercase;
}

.case-studio-title {
    font-family: 'Shantell Sans', var(--font-latin), sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.01em;
}

.case-studio-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-case-sound-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 13px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 9999px;
    color: #e2e8f0;
    font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-case-sound-toggle:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.btn-case-studio-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-case-studio-close:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #fca5a5;
    transform: rotate(90deg);
}

/* 3 Cases Selector Tabs */
.case-selection-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    width: 100%;
}

.case-select-card {
    position: relative;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(255, 255, 255, 0.10);
    border-radius: 18px;
    padding: 14px 14px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
}

.case-select-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
}

.case-select-card.is-active {
    background: rgba(255, 255, 255, 0.09);
    border-color: #38bdf8;
    box-shadow: 
        0 10px 25px -4px rgba(56, 189, 248, 0.25),
        inset 0 1px 1px rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.case-select-card[data-case-id="neon"].is-active {
    border-color: #a855f7;
    box-shadow: 0 10px 25px -4px rgba(168, 85, 247, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.case-select-card[data-case-id="prime"].is-active {
    border-color: #f59e0b;
    box-shadow: 0 10px 25px -4px rgba(245, 158, 11, 0.38), inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.case-card-badge {
    position: absolute;
    top: -10px;
    padding: 2.5px 9px;
    border-radius: 9999px;
    font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #ffffff;
    background: #3b82f6;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
}

.case-select-card[data-case-id="neon"] .case-card-badge {
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
}

.case-select-card[data-case-id="prime"] .case-card-badge {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

/* 3D Case Visual Box */
.case-card-preview {
    width: 68px;
    height: 52px;
    margin: 8px 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.case-box-visual {
    width: 62px;
    height: 44px;
    border-radius: 9px;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5), inset 0 1.5px 2px rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1px;
    transition: transform 0.3s ease;
}

.case-select-card:hover .case-box-visual {
    transform: scale(1.08) rotate(-1deg);
}

.case-type-basic .case-box-visual {
    background: #ffffff;
    background-image: url('../assets/dalmatian-spots.svg');
    background-size: 80px 40px;
    color: #0f172a;
    border-color: rgba(255, 255, 255, 0.8);
}

.case-type-neon .case-box-visual {
    background: linear-gradient(135deg, #7c3aed 0%, #4c1d95 100%);
    border-color: rgba(192, 132, 252, 0.5);
    box-shadow: 0 6px 18px rgba(124, 58, 237, 0.45), inset 0 1.5px 2px rgba(255, 255, 255, 0.4);
}

.case-type-prime .case-box-visual {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1.5px solid #f59e0b;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45), inset 0 1.5px 2px rgba(255, 255, 255, 0.4);
}

.case-box-emblem {
    font-size: 15px;
    line-height: 1;
}

.case-box-text {
    font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
    font-size: 8.5px;
    font-weight: 900;
    letter-spacing: 0.08em;
    color: #ffffff;
}

.case-type-basic .case-box-text {
    color: #0f172a;
    text-shadow: 0 0 3px #ffffff;
}

.case-type-prime .case-box-text {
    color: #f59e0b;
}

.case-card-name {
    font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
    font-size: 13.5px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 3px;
}

.case-card-sub {
    font-size: 11px;
    color: #94a3b8;
    margin: 0;
    line-height: 1.2;
}

/* Active Case Info & Pool Chips */
.case-active-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 10px 14px;
}

.case-active-lore {
    font-size: 12.5px;
    color: #cbd5e1;
}

.case-pool-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.case-pool-chip {
    display: inline-flex;
    align-items: center;
    gap: 5.5px;
    padding: 3.5px 9px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9999px;
    font-size: 11px;
    color: #e2e8f0;
}

.chip-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.chip-pct {
    font-weight: 700;
    color: #38bdf8;
    font-size: 10.5px;
    margin-left: 2px;
}

/* ==========================================================================
   CS:GO Horizontal Roulette Reel Stage
   ========================================================================== */

.csgo-reel-stage {
    position: relative;
    width: 100%;
    height: 215px;
    background: #090e1a;
    border: 1.5px solid rgba(255, 255, 255, 0.14);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        inset 0 4px 20px rgba(0, 0, 0, 0.8),
        0 12px 30px rgba(0, 0, 0, 0.5);
}

/* Center Pointer Markers & Laser Line */
.csgo-center-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 25;
    color: #f59e0b;
    filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.8));
    pointer-events: none;
}

.csgo-center-marker.top-marker {
    top: 0;
}

.csgo-center-marker.bottom-marker {
    bottom: 0;
}

.csgo-center-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
    background: linear-gradient(to bottom, #f59e0b 0%, rgba(245, 158, 11, 0.8) 50%, #f59e0b 100%);
    box-shadow: 
        0 0 8px #f59e0b,
        0 0 16px rgba(245, 158, 11, 0.5);
    z-index: 20;
    pointer-events: none;
}

/* Reel Viewport & Track */
.csgo-reel-viewport {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.csgo-reel-track {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 100%;
    padding: 0 20px;
    will-change: transform;
}

/* Individual Card in Reel */
.csgo-card-item {
    width: 140px;
    height: 185px;
    flex-shrink: 0;
    border-radius: 14px;
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.12);
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.csgo-card-inner {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.csgo-card-img {
    width: 100%;
    height: calc(100% - 32px);
    object-fit: cover;
    object-position: center 25%;
    display: block;
}

.csgo-card-name {
    height: 28px;
    padding: 0 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
    font-size: 10.5px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: rgba(15, 23, 42, 0.9);
}

.csgo-rarity-bar {
    height: 4px;
    width: 100%;
}

/* Winner Card Highlight in Reel */
.csgo-card-item.is-winner-highlight {
    transform: scale(1.06);
    border-color: #f59e0b;
    box-shadow: 
        0 0 25px rgba(245, 158, 11, 0.6),
        0 0 50px rgba(245, 158, 11, 0.3);
    z-index: 10;
}

/* Studio Controls & Big Spin Button */
.case-studio-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 6px 0 2px;
}

.btn-spin-case {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 48px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border: none;
    border-radius: 9999px;
    color: #ffffff;
    font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.05em;
    cursor: pointer;
    box-shadow: 
        0 8px 24px rgba(245, 158, 11, 0.45),
        inset 0 1.5px 2px rgba(255, 255, 255, 0.4);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-spin-case:hover:not(:disabled) {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 12px 30px rgba(245, 158, 11, 0.6),
        inset 0 1.5px 2px rgba(255, 255, 255, 0.5);
}

.btn-spin-case:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn-spin-icon {
    font-size: 18px;
}

/* ==========================================================================
   Winning Drop Popout Card Overlay
   ========================================================================== */

.case-drop-result-overlay {
    position: absolute;
    inset: 0;
    z-index: 50;
    background: rgba(10, 15, 26, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.case-drop-result-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.case-drop-result-card {
    background: #ffffff;
    border-radius: 26px;
    padding: 24px 26px 22px;
    max-width: 380px;
    width: 90%;
    text-align: center;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: scale(0.85) translateY(20px);
    transition: transform 0.45s cubic-bezier(0.16, 1.2, 0.3, 1);
}

.case-drop-result-overlay.is-open .case-drop-result-card {
    transform: scale(1) translateY(0);
}

.drop-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4.5px 13px;
    background: #fef3c7;
    color: #b45309;
    border-radius: 9999px;
    font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    margin-bottom: 12px;
}

.drop-pill-badge.badge-limited {
    background: #ffe4e6;
    color: #e11d48;
}

.drop-pill-badge.badge-legendary {
    background: #fef3c7;
    color: #d97706;
}

.drop-pill-badge.badge-mythic {
    background: #f3e8ff;
    color: #7e22ce;
}

.drop-art-frame {
    position: relative;
    width: 160px;
    aspect-ratio: 4 / 5.5;
    border-radius: 16px;
    overflow: hidden;
    border: 3px solid #f59e0b;
    margin: 4px 0 14px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    animation: dropCardFloat 3s ease-in-out infinite;
}

.drop-result-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.drop-result-title {
    font-family: 'Shantell Sans', var(--font-latin), sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 4px;
}

.drop-result-desc {
    font-size: 12.5px;
    color: #64748b;
    margin: 0 0 18px;
    line-height: 1.4;
}

.drop-result-buttons {
    display: flex;
    gap: 10px;
    width: 100%;
}

.btn-result-action {
    flex: 1;
    padding: 11px 16px;
    border-radius: 9999px;
    font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-result-spin-again {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}

.btn-result-spin-again:hover {
    transform: translateY(-1.5px);
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.55);
}

.btn-result-close {
    background: #f1f5f9;
    color: #0f172a;
    border: 1px solid #cbd5e1;
}

.btn-result-close:hover {
    background: #e2e8f0;
}

/* Canvas Confetti */
.case-confetti-canvas {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 60;
}

/* Responsive Styles for Mobile */
@media (max-width: 680px) {
    .case-studio-modal {
        padding: 20px 16px 20px;
        gap: 12px;
    }
    .case-selection-tabs {
        gap: 8px;
    }
    .case-select-card {
        padding: 10px 8px 8px;
    }
    .case-card-name {
        font-size: 12px;
    }
    .case-card-sub {
        font-size: 9.5px;
    }
    .case-card-preview {
        width: 52px;
        height: 40px;
        margin: 6px 0 8px;
    }
    .case-box-visual {
        width: 50px;
        height: 36px;
    }
    .csgo-reel-stage {
        height: 185px;
    }
    .csgo-card-item {
        width: 120px;
        height: 160px;
    }
    .btn-spin-case {
        padding: 12px 34px;
        font-size: 13.5px;
    }
}

/* --------------------------------------------------------------------------
   Interactive Case Widget on Profile Banner (links to cases.html)
   -------------------------------------------------------------------------- */
.profile-banner-case-widget {
    position: absolute;
    top: 18px;
    left: 20px;
    z-index: 15;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(15, 23, 42, 0.76);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1.5px solid rgba(255, 255, 255, 0.22);
    border-radius: 16px;
    padding: 8px 16px 8px 10px;
    text-decoration: none;
    box-shadow: 
        0 10px 24px -4px rgba(0, 0, 0, 0.35),
        0 0 20px rgba(245, 158, 11, 0.3);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    animation: caseWidgetPulse 3.5s ease-in-out infinite;
}

@keyframes caseWidgetPulse {
    0%, 100% {
        box-shadow: 0 10px 24px -4px rgba(0, 0, 0, 0.35), 0 0 18px rgba(245, 158, 11, 0.3);
    }
    50% {
        box-shadow: 0 12px 30px -4px rgba(0, 0, 0, 0.45), 0 0 28px rgba(245, 158, 11, 0.6);
    }
}

.profile-banner-case-widget:hover {
    transform: translateY(-2px) scale(1.04);
    background: rgba(15, 23, 42, 0.92);
    border-color: #f59e0b;
    box-shadow: 0 14px 34px -4px rgba(0, 0, 0, 0.5), 0 0 34px rgba(245, 158, 11, 0.8);
}

.case-widget-icon-box {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.45);
    flex-shrink: 0;
}

.case-widget-text-group {
    display: flex;
    flex-direction: column;
}

.case-widget-tag-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.case-widget-badge {
    font-family: 'Fira Code', monospace;
    font-size: 9px;
    font-weight: 800;
    color: #f59e0b;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.case-widget-pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 6px #10b981;
    animation: livePulseAnim 1.6s infinite ease-in-out;
}

@keyframes livePulseAnim {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.35); opacity: 0.6; }
}

.case-widget-title {
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
}

.case-widget-sub {
    font-family: 'Outfit', sans-serif;
    font-size: 10.5px;
    font-weight: 600;
    color: #94a3b8;
}

@media (max-width: 640px) {
    .profile-banner-case-widget {
        top: 12px;
        left: 12px;
        padding: 6px 12px 6px 8px;
    }
    .case-widget-sub {
        display: none;
    }
}

/* ==========================================================================
   USER BOOSTER INVENTORY MODAL & CAROUSEL
   ========================================================================== */

.case-side-count-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 10;
    background: #0f172a;
    color: #ffffff;
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: 11px;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 9999px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
    letter-spacing: 0.02em;
    pointer-events: none;
    transition: transform 0.25s ease;
}

.case-side-card:hover .case-side-count-badge {
    transform: scale(1.08);
}

.case-side-subcta {
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    margin-top: 2px;
}

.booster-inv-overlay {
    position: fixed;
    inset: 0;
    z-index: 1250;
    background: rgba(8, 12, 22, 0.88);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.booster-inv-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.booster-inv-modal {
    position: relative;
    width: 100%;
    max-width: 940px;
    background: linear-gradient(180deg, #151d30 0%, #0d1322 100%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 28px;
    box-shadow: 
        0 30px 80px -10px rgba(0, 0, 0, 0.85),
        0 0 40px rgba(56, 189, 248, 0.08),
        inset 0 1px 1px rgba(255, 255, 255, 0.25);
    padding: 26px 30px 26px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transform: scale(0.94) translateY(12px);
    transition: transform 0.4s cubic-bezier(0.16, 1.15, 0.3, 1);
    overflow: hidden;
}

.booster-inv-overlay.is-open .booster-inv-modal {
    transform: scale(1) translateY(0);
}

.booster-inv-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.booster-inv-title-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.booster-inv-pill {
    font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #38bdf8;
    text-transform: uppercase;
}

.booster-inv-title {
    font-family: 'Shantell Sans', cursive, sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.01em;
}

.booster-inv-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.booster-inv-count-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 9999px;
    font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
    font-size: 12.5px;
    font-weight: 800;
    color: #38bdf8;
}

.btn-booster-inv-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-booster-inv-close:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #fca5a5;
    transform: rotate(90deg);
}

.booster-inv-lead {
    font-family: 'Outfit', sans-serif;
    font-size: 13.5px;
    color: #94a3b8;
    margin: 0;
    line-height: 1.4;
}

.booster-carousel-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-booster-arrow {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(255, 255, 255, 0.14);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
    z-index: 5;
}

.btn-booster-arrow:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.35);
    transform: scale(1.08);
}

.booster-row-track {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 14px 6px 18px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.booster-row-track::-webkit-scrollbar {
    height: 6px;
}
.booster-row-track::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
}

.booster-pack-card {
    position: relative;
    width: 168px;
    height: 254px;
    flex-shrink: 0;
    border-radius: 18px;
    background: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 14px 34px -4px rgba(0, 0, 0, 0.45),
        0 4px 12px rgba(15, 23, 42, 0.12);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px;
    cursor: pointer;
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
    overflow: hidden;
}

.booster-pack-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(15, 23, 42, 0.85) 0, rgba(15, 23, 42, 0.85) 12px, transparent 13px),
        radial-gradient(circle at 85% 25%, rgba(15, 23, 42, 0.80) 0, rgba(15, 23, 42, 0.80) 14px, transparent 15px),
        radial-gradient(circle at 15% 75%, rgba(15, 23, 42, 0.82) 0, rgba(15, 23, 42, 0.82) 16px, transparent 17px),
        radial-gradient(circle at 85% 80%, rgba(15, 23, 42, 0.78) 0, rgba(15, 23, 42, 0.78) 14px, transparent 15px),
        radial-gradient(circle at 75% 50%, rgba(15, 23, 42, 0.75) 0, rgba(15, 23, 42, 0.75) 10px, transparent 11px),
        radial-gradient(circle at 25% 55%, rgba(15, 23, 42, 0.75) 0, rgba(15, 23, 42, 0.75) 9px, transparent 10px);
    pointer-events: none;
    opacity: 0.9;
}

.booster-pack-card:hover {
    transform: translateY(-8px) scale(1.04);
    box-shadow: 
        0 24px 50px -8px rgba(0, 0, 0, 0.65),
        0 0 30px rgba(56, 189, 248, 0.35);
    border-color: #38bdf8;
}

.booster-card-top-tag {
    position: relative;
    z-index: 2;
    align-self: center;
    background: #0f172a;
    color: #ffffff;
    font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    padding: 3px 10px;
    border-radius: 0 0 10px 10px;
    margin-top: -10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    gap: 4px;
}

.booster-card-paw-wrap {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.booster-card-paw {
    width: 68px;
    height: 68px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
    transition: transform 0.3s ease;
}

.booster-pack-card:hover .booster-card-paw {
    transform: scale(1.12);
}

.booster-card-bottom-info {
    position: relative;
    z-index: 2;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.95) 40%, rgba(15, 23, 42, 0.98) 100%);
    margin: -10px -10px -10px -10px;
    padding: 22px 10px 10px;
    border-radius: 0 0 16px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.booster-card-title {
    font-family: 'Shantell Sans', cursive, sans-serif;
    font-size: 13.5px;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.btn-booster-card-action {
    width: 100%;
    padding: 6px 0;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    box-shadow: 0 3px 10px rgba(245, 158, 11, 0.4);
    transition: all 0.2s ease;
}

.btn-booster-card-action:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    transform: scale(1.02);
}

.booster-inv-empty {
    padding: 40px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.booster-empty-icon {
    font-size: 48px;
    margin-bottom: 4px;
}

.booster-empty-title {
    font-family: 'Shantell Sans', cursive, sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
}

.booster-empty-text {
    font-size: 13px;
    color: #94a3b8;
    max-width: 440px;
    margin: 0;
    line-height: 1.4;
}

.btn-booster-empty-cta {
    padding: 10px 24px;
    border-radius: 9999px;
    background: #5865F2;
    color: #ffffff;
    text-decoration: none;
    font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
    font-size: 12.5px;
    font-weight: 800;
    box-shadow: 0 4px 14px rgba(88, 101, 242, 0.4);
    transition: transform 0.2s ease;
}

.btn-booster-empty-cta:hover {
    transform: translateY(-2px);
}

.booster-inv-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.booster-inv-footer-hints {
    font-size: 12px;
    color: #94a3b8;
}

.btn-booster-open-first {
    padding: 10px 24px;
    border-radius: 9999px;
    border: none;
    background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
    color: #ffffff;
    font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(56, 189, 248, 0.35);
}

.btn-booster-open-first:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.5);
}

.is-hidden {
    display: none !important;
}



