        /* Sharing Mode Tweaks */
        .sharing-mode .binder-slot {
            background: transparent !important;
            border-color: rgba(255, 255, 255, 0.05) !important;
        }

        .sharing-mode .binder-slot:empty,
        .sharing-mode .binder-slot div:not(.binder-card) {
            opacity: 0 !important;
        }

        .sharing-mode .binder-card {
            transform: none !important;
            box-shadow: none !important;
        }

        .sharing-mode #binder-share-footer {
            display: block !important;
        }

        .rearrange-active .binder-slot {
            outline: 2px dashed rgba(168, 85, 247, 0.4);
            outline-offset: -4px;
            animation: pulse-outline 2s infinite;
        }

        .rearrange-active .binder-card {
            cursor: grab;
        }

        .rearrange-active .binder-card:active {
            cursor: grabbing;
        }

        .empty-slot-overlay {
            opacity: 0;
            transition: opacity 0.2s;
            z-index: 30;
            pointer-events: auto;
        }

        .binder-slot:hover .empty-slot-overlay {
            opacity: 1;
        }

        @keyframes pulse-outline {
            0% {
                outline-color: rgba(168, 85, 247, 0.2);
            }

            50% {
                outline-color: rgba(168, 85, 247, 0.6);
            }

            100% {
                outline-color: rgba(168, 85, 247, 0.2);
            }
        }

        :root {
            --primary: #10b981;
            --primary-dark: #059669;
            --primary-light: #34d399;
            --glass-border: rgba(16, 185, 129, 0.15);
            --glass-bg: rgba(10, 20, 15, 0.6);
            --glass-highlight: rgba(16, 185, 129, 0.05);
        }



        body {
            font-family: 'Outfit', sans-serif;
            background-color: #0a0f0d;
            background-image:
                radial-gradient(at 0% 0%, rgba(16, 185, 129, 0.2) 0px, transparent 50%),
                radial-gradient(at 100% 0%, rgba(5, 150, 105, 0.15) 0px, transparent 50%),
                radial-gradient(at 100% 100%, rgba(52, 211, 153, 0.1) 0px, transparent 50%);
            background-attachment: fixed;
            color: #ffffff;
            overflow-x: hidden;
        }

        /* Glassmorphism */
        .glass-panel {
            background: var(--glass-bg);
            backdrop-filter: blur(16px);
            border: 1px solid var(--glass-border);
            box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
        }

        .glass-card {
            background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
            border: 1px solid var(--glass-border);
            backdrop-filter: blur(10px);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .glass-card:hover {
            border-color: rgba(16, 185, 129, 0.4);
            transform: translateY(-2px);
            box-shadow: 0 10px 40px -10px rgba(16, 185, 129, 0.3);
        }

        /* Binder Grid */
        .binder-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1.5rem;
            padding: 1rem;
            max-width: 800px;
            margin: 0 auto;
        }

        .binder-slot {
            aspect-ratio: 2/3;
            background: rgba(0, 0, 0, 0.3);
            border-radius: 0.75rem;
            border: 2px dashed rgba(255, 255, 255, 0.05);
            transition: all 0.3s ease;
            position: relative;
        }

        /* Set Selector Styles */
        .set-chip {
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.05);
            border-radius: 1rem;
            padding: 0.5rem 1rem;
            cursor: pointer;
            transition: all 0.2s ease;
            white-space: nowrap;
            display: flex;
            align-items: center;
            gap: 0.75rem;
            min-width: 140px;
        }

        .set-chip:hover {
            background: rgba(255, 255, 255, 0.08);
            border-color: rgba(16, 185, 129, 0.3);
            transform: translateY(-1px);
        }

        .set-chip.active {
            background: rgba(16, 185, 129, 0.1);
            border-color: #10b981;
            box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
        }

        .set-chip-progress {
            height: 4px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 2px;
            overflow: hidden;
            flex: 1;
        }

        .set-chip-progress-fill {
            height: 100%;
            background: #10b981;
            transition: width 0.5s ease;
        }

        /* Focused Set Card Styles */
        .focused-set-card {
            background: rgba(16, 185, 129, 0.05);
            border: 1px solid rgba(16, 185, 129, 0.2);
            border-radius: 1.5rem;
            padding: 1.25rem;
            transition: all 0.3s ease;
        }

        .focused-set-card .progress-bg {
            background: rgba(255, 255, 255, 0.05);
            height: 0.75rem;
            border-radius: 1rem;
            overflow: hidden;
        }

        .focused-set-card .progress-fill {
            height: 100%;
            background: linear-gradient(90deg, #10b981, #34d399);
            box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
            transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        .binder-slot:hover {
            border-color: rgba(255, 255, 255, 0.1);
        }

        .binder-card {
            width: 100%;
            height: 100%;
            border-radius: 0.75rem;
            overflow: hidden;
            position: relative;
            cursor: pointer;
            transition: transform 0.2s;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .binder-card:hover {
            z-index: 10;
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
        }

        /* Glare card effect for Epic & Legendary */
        .binder-card.glare-card {
            transition: none;
        }

        .glare-overlay {
            position: absolute;
            inset: 0;
            border-radius: 0.75rem;
            pointer-events: none;
            z-index: 15;
            opacity: 0;
        }

        /* Epic: purple shimmer band */
        .binder-card.rarity-epic .glare-overlay {
            background: linear-gradient(105deg,
                    transparent 20%,
                    rgba(180, 120, 255, 0.06) 35%,
                    rgba(220, 170, 255, 0.28) 45%,
                    rgba(180, 120, 255, 0.06) 55%,
                    transparent 70%);
            background-size: 300% 100%;
            background-position: 150% 0;
        }

        /* Legendary: gold shimmer band */
        .binder-card.rarity-legendary .glare-overlay {
            background: linear-gradient(105deg,
                    transparent 20%,
                    rgba(251, 191, 36, 0.06) 35%,
                    rgba(255, 230, 130, 0.32) 45%,
                    rgba(251, 191, 36, 0.06) 55%,
                    transparent 70%);
            background-size: 300% 100%;
            background-position: 150% 0;
        }

        .binder-card.glare-card:hover .glare-overlay {
            opacity: 1;
            animation: shimmer-sweep 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
        }

        @keyframes shimmer-sweep {
            from {
                background-position: 150% 0;
            }

            to {
                background-position: -50% 0;
            }
        }


        /* Utilities */
        .fade-out {
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.5s ease;
        }

        .fade-in {
            animation: fadeIn 0.8s ease forwards;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(10px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Skeleton Loading */
        @keyframes skeleton-shimmer {
            0% {
                background-position: -200% 0;
            }

            100% {
                background-position: 200% 0;
            }
        }

        .skeleton {
            background: linear-gradient(90deg,
                    rgba(255, 255, 255, 0.03) 25%,
                    rgba(255, 255, 255, 0.08) 50%,
                    rgba(255, 255, 255, 0.03) 75%);
            background-size: 200% 100%;
            animation: skeleton-shimmer 2s infinite linear;
            border-radius: 0.5rem;
        }

        .skeleton-card {
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg,
                    rgba(16, 185, 129, 0.05) 25%,
                    rgba(16, 185, 129, 0.1) 50%,
                    rgba(16, 185, 129, 0.05) 75%);
            background-size: 200% 100%;
            animation: skeleton-shimmer 2s infinite linear;
            border-radius: 0.75rem;
            border: 1px solid rgba(16, 185, 129, 0.1);
        }

        /* Theme Variables */
        :root {
            --bg-primary: #0f172a;
            --bg-secondary: #1e293b;
            --bg-glass: rgba(255, 255, 255, 0.05);
            --text-primary: #ffffff;
            --text-secondary: #94a3b8;
            --border-color: rgba(255, 255, 255, 0.1);
        }



        /* Dropdown styling for both themes */
        select {
            background-color: #1e293b;
            color: #ffffff;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        select option {
            background-color: #1e293b;
            color: #ffffff;
        }

        [data-theme="light"] select {
            background-color: #ffffff;
            color: #0f172a;
            border: 1px solid rgba(0, 0, 0, 0.2);
        }

        [data-theme="light"] select option {
            background-color: #ffffff;
            color: #0f172a;
        }

        .custom-scrollbar::-webkit-scrollbar {
            width: 8px;
        }

        .custom-scrollbar::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.1);
            border-radius: 4px;
        }

        /* Card Rarity Effects */
        .rarity-common {
            border-color: rgba(156, 163, 175, 0.3);
        }

        .rarity-uncommon {
            border-color: rgba(34, 197, 94, 0.4);
            box-shadow: 0 0 8px rgba(34, 197, 94, 0.1);
        }

        .rarity-rare {
            border-color: rgba(59, 130, 246, 0.5);
            box-shadow: 0 0 10px rgba(59, 130, 246, 0.15);
            animation: shimmer 4s ease-in-out infinite;
        }

        .rarity-epic {
            border-color: rgba(168, 85, 247, 0.6);
        }

        .rarity-legendary {
            border: 2px solid transparent;
            background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%),
                linear-gradient(90deg, #ffd700, #ffaa00, #ffd700);
            background-origin: border-box;
            background-clip: padding-box, border-box;
        }



        @keyframes shimmer {

            0%,
            100% {
                box-shadow: 0 0 10px rgba(59, 130, 246, 0.15);
            }

            50% {
                box-shadow: 0 0 18px rgba(59, 130, 246, 0.25);
            }
        }



        /* Binder Pages Widget */
        .binder-page-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 10px 14px;
            border-radius: 12px;
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.05);
            cursor: pointer;
            transition: all 0.2s ease;
            position: relative;
            overflow: hidden;
        }

        .binder-page-item:hover {
            background: rgba(16, 185, 129, 0.05);
            border-color: rgba(16, 185, 129, 0.2);
            transform: translateY(-1px);
        }

        .binder-page-item.active {
            background: rgba(16, 185, 129, 0.1);
            border-color: rgba(16, 185, 129, 0.4);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }

        .binder-page-item.active::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 3px;
            background: var(--primary);
        }

        .binder-page-badge {
            font-size: 8px;
            font-weight: 900;
            background: rgba(255, 255, 255, 0.1);
            padding: 2px 6px;
            border-radius: 4px;
            color: gray;
        }

        .active .binder-page-badge {
            background: rgba(16, 185, 129, 0.2);
            color: var(--primary);
        }

        .binder-page-delete {
            opacity: 0;
            transition: opacity 0.2s ease;
            color: #ef4444;
            padding: 4px;
        }

        .binder-page-item:hover .binder-page-delete {
            opacity: 0.6;
        }

        .binder-page-item:hover .binder-page-delete:hover {
            opacity: 1;
        }

        /* Loading Spinner */
        .spinner {
            border: 3px solid rgba(255, 255, 255, 0.1);
            border-top: 3px solid var(--primary);
            border-radius: 50%;
            width: 40px;
            height: 40px;
            animation: spin 1s linear infinite;
        }

        .spinner-sm {
            width: 20px;
            height: 20px;
            border-width: 2px;
        }

        @keyframes spin {
            0% {
                transform: rotate(0deg);
            }

            100% {
                transform: rotate(360deg);
            }
        }

        /* Toast Notifications */
        .toast-container {
            position: fixed;
            top: 20px;
            right: 20px;
            z-index: 9999;
            display: flex;
            flex-direction: column;
            gap: 10px;
            pointer-events: none;
        }

        .toast {
            background: rgba(10, 20, 15, 0.95);
            backdrop-filter: blur(16px);
            border: 1px solid var(--glass-border);
            border-radius: 12px;
            padding: 16px 20px;
            min-width: 300px;
            max-width: 400px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
            display: flex;
            align-items: center;
            gap: 12px;
            pointer-events: auto;
            animation: slideIn 0.3s ease-out;
        }

        .toast.toast-success {
            border-color: rgba(16, 185, 129, 0.5);
        }

        .toast.toast-error {
            border-color: rgba(239, 68, 68, 0.5);
        }

        .toast.toast-info {
            border-color: rgba(59, 130, 246, 0.5);
        }

        .toast-icon {
            font-size: 20px;
            flex-shrink: 0;
        }

        .toast-success .toast-icon {
            color: #10b981;
        }

        .toast-error .toast-icon {
            color: #ef4444;
        }

        .toast-info .toast-icon {
            color: #3b82f6;
        }

        .toast-message {
            flex: 1;
            color: white;
            font-size: 14px;
            line-height: 1.4;
        }

        .toast.toast-card {
            padding: 8px;
            gap: 12px;
            background: rgba(10, 20, 15, 0.98);
            border-width: 2px;
            min-width: 260px;
        }

        .toast-card-thumb {
            width: 60px;
            height: 84px;
            border-radius: 6px;
            overflow: hidden;
            flex-shrink: 0;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .toast-card-thumb img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .toast-card-details {
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .toast-card-rarity {
            font-size: 8px;
            font-weight: 900;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            margin-bottom: 2px;
        }

        .toast-card-name {
            font-weight: 800;
            font-size: 14px;
            color: white;
            line-height: 1.2;
        }

        /* Rarity-specific Toast Styles */
        .toast-rarity-legendary {
            border-color: rgba(251, 191, 36, 0.6) !important;
            box-shadow: 0 0 20px rgba(251, 191, 36, 0.2);
        }

        .toast-rarity-epic {
            border-color: rgba(168, 85, 247, 0.6) !important;
            box-shadow: 0 0 20px rgba(168, 85, 247, 0.2);
        }

        .toast-rarity-rare {
            border-color: rgba(59, 130, 246, 0.6) !important;
            box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
        }

        .toast-rarity-common {
            border-color: rgba(16, 185, 129, 0.6) !important;
        }

        .toast-rarity-legendary .toast-card-rarity {
            color: #fbbf24;
        }

        .toast-rarity-epic .toast-card-rarity {
            color: #a855f7;
        }

        .toast-rarity-rare .toast-card-rarity {
            color: #3b82f6;
        }

        .toast-rarity-common .toast-card-rarity {
            color: #10b981;
        }

        @keyframes slideIn {
            from {
                transform: translateX(400px);
                opacity: 0;
            }

            to {
                transform: translateX(0);
                opacity: 1;
            }
        }

        .toast.fade-out {
            animation: fadeOut 0.3s ease-out forwards;
        }

        @keyframes fadeOut {
            to {
                opacity: 0;
                transform: translateX(400px);
            }
        }

        /* Card Reveal Animation */
        .card-reveal {
            animation: cardReveal 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
        }

        @keyframes cardReveal {
            0% {
                opacity: 0;
                transform: scale(0.3) rotateY(-180deg);
            }

            50% {
                transform: scale(1.1) rotateY(-90deg);
            }

            100% {
                opacity: 1;
                transform: scale(1) rotateY(0deg);
            }
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .glass-panel {
                padding: 1rem !important;
            }

            .binder-card {
                height: 200px;
            }

            .toast {
                min-width: 280px;
                max-width: 90vw;
            }

            .toast-container {
                right: 10px;
                left: 10px;
            }
        }

        /* Coming Soon Page */
        #coming-soon-view {
            background-image:
                radial-gradient(at 0% 0%, rgba(16, 185, 129, 0.3) 0px, transparent 50%),
                radial-gradient(at 100% 100%, rgba(5, 150, 105, 0.2) 0px, transparent 50%);
        }

        .password-modal {
            animation: modalFadeIn 0.3s ease-out forwards;
        }

        @keyframes modalFadeIn {
            from {
                opacity: 0;
                transform: scale(0.95);
            }

            to {
                opacity: 1;
                transform: scale(1);
            }
        }

        @keyframes shake {

            0%,
            100% {
                transform: translateX(0);
            }

            25% {
                transform: translateX(-5px);
            }

            75% {
                transform: translateX(5px);
            }
        }

        .animate-shake {
            animation: shake 0.2s ease-in-out 0s 2;
        }

        /* --- PACK OPENING EXPERIENCE --- */
        #pack-opening-modal {
            perspective: 2000px;
        }

        .pack-container {
            width: 320px;
            height: 460px;
            position: relative;
            transform-style: preserve-3d;
            transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
            cursor: pointer;
        }

        /* Virtual Foil Effect */
        .pack-foil {
            position: absolute;
            inset: 0;
            background: linear-gradient(135deg,
                    #065f46 0%,
                    #10b981 25%,
                    #34d399 50%,
                    #10b981 75%,
                    #065f46 100%);
            background-size: 400% 400%;
            animation: foil-shimmer 8s linear infinite;
            border-radius: 24px;
            border: 4px solid rgba(255, 255, 255, 0.1);
            box-shadow:
                0 20px 50px rgba(0, 0, 0, 0.5),
                inset 0 0 40px rgba(0, 0, 0, 0.3);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            backface-visibility: hidden;
        }

        .pack-foil::after {
            content: '';
            position: absolute;
            inset: 0;
            background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter' %3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' /%3E%3C/svg%3E");
            opacity: 0.15;
            mix-blend-mode: overlay;
            pointer-events: none;
        }

        @keyframes foil-shimmer {
            0% {
                background-position: 0% 50%
            }

            50% {
                background-position: 100% 50%
            }

            100% {
                background-position: 0% 50%
            }
        }

        /* Ripping Animation */
        .pack-rip-left,
        .pack-rip-right {
            position: absolute;
            top: 0;
            bottom: 0;
            width: 50%;
            background: inherit;
            transition: transform 0.8s cubic-bezier(0.7, 0, 0.3, 1);
            z-index: 10;
        }

        .pack-rip-left {
            left: 0;
            border-radius: 20px 0 0 20px;
        }

        .pack-rip-right {
            right: 0;
            border-radius: 0 20px 20px 0;
        }

        .pack-container.is-open .pack-rip-left {
            transform: translateX(-120%) rotateY(-20deg);
            opacity: 0;
        }

        .pack-container.is-open .pack-rip-right {
            transform: translateX(120%) rotateY(20deg);
            opacity: 0;
        }

        .pack-reveal-card {
            position: absolute;
            inset: 20px;
            z-index: 5;
            transform: scale(0.8) translateZ(-100px);
            opacity: 0;
            transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        .pack-container.is-open .pack-reveal-card {
            transform: scale(1) translateZ(0);
            opacity: 1;
        }

        @keyframes pack-shake {

            0%,
            100% {
                transform: rotate(0deg);
            }

            25% {
                transform: rotate(-2deg) translateX(-2px);
            }

            75% {
                transform: rotate(2deg) translateX(2px);
            }
        }

        .pack-shake {
            animation: pack-shake 0.1s linear infinite;
        }. s h a r i n g - m o d e   . d e l e t e - b t n   {   d i s p l a y :   n o n e   ! i m p o r t a n t ;   }  
 