:root {
            --primary-blue: #0b2149;
            --navy-dark: #071630;
            --navy-sidebar: #091c3e;
            --accent-pink: #ed147d;
            --accent-pink-soft: #fde8f2;
            --accent-orange: #ff6a00;
            --accent-green: #0ca872;
            --accent-purple: #7026db;
            --accent-cyan: #0099ff;
            --text-dark: #0f2444;
            --text-muted: #556987;
            --border-soft: rgba(16, 52, 120, 0.08);
            --shadow-soft: 0 4px 18px rgba(16, 52, 120, 0.06);
            --shadow-card: 0 6px 20px rgba(0, 0, 0, 0.08);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            -webkit-tap-highlight-color: transparent;
        }

        html, body {
            width: 100%;
            max-width: 100%;
            font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background: #f4f7fb;
            color: var(--text-dark);
            min-height: 100vh;
            overflow-x: hidden;
        }

        /* Layout Container */
        .dashboard-app-layout {
            display: flex;
            width: 100%;
            min-height: 100vh;
            background: #f4f8fd;
            position: relative;
        }

        /* ================= SIDEBAR (DESKTOP DOCKED, MOBILE OFFCANVAS) ================= */
        .slide-bar-drawer {
            width: 255px;
            min-width: 255px;
            background: var(--navy-sidebar);
            display: flex;
            flex-direction: column;
            overflow-y: auto;
            border-right: 1px solid rgba(255, 255, 255, 0.07);
            box-shadow: 4px 0 20px rgba(7, 22, 48, 0.15);
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            z-index: 99999;
        }

        .slide-bar-header {
            padding: 22px 18px 18px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .slide-user-profile-wrap {
            display: flex;
            align-items: center;
            gap: 12px;
            min-width: 0;
        }

        .slide-user-avatar {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            background: linear-gradient(135deg, #8327db 0%, #ff2d60 100%);
            color: #ffffff;
            font-size: 16px;
            font-weight: 800;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
            flex-shrink: 0;
        }

        .slide-user-info {
            min-width: 0;
            overflow: hidden;
        }

        .slide-user-name {
            color: #ffffff;
            font-size: 13.5px;
            font-weight: 800;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .slide-user-id {
            color: #7b93b2;
            font-size: 11px;
            font-weight: 600;
            margin-top: 2px;
        }

        .slide-close-btn {
            display: none;
            background: rgba(255, 255, 255, 0.1);
            border: none;
            color: #ffffff;
            font-size: 16px;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            cursor: pointer;
            align-items: center;
            justify-content: center;
        }

        .slide-nav-menu {
            display: flex;
            flex-direction: column;
            padding: 14px 10px;
            gap: 4px;
            flex: 1;
        }

        .slide-nav-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 11px 14px;
            border-radius: 12px;
            color: #b0c0d6;
            text-decoration: none;
            font-size: 13px;
            font-weight: 700;
            transition: all 0.15s ease;
            cursor: pointer;
            border: none;
            background: none;
            width: 100%;
            text-align: left;
        }

        .slide-nav-item svg {
            width: 19px;
            height: 19px;
            flex-shrink: 0;
        }

        .slide-nav-item:hover {
            color: #ffffff;
            background: rgba(255, 255, 255, 0.06);
        }

        .slide-nav-item.active {
            background: linear-gradient(90deg, #ff5722 0%, #ff8a00 100%);
            color: #ffffff;
            box-shadow: 0 4px 12px rgba(255, 87, 34, 0.35);
        }

        .slide-nav-item.logout {
            margin-top: auto;
            color: #ff5b5b;
            border-top: 1px solid rgba(255, 255, 255, 0.08);
            padding-top: 14px;
            border-radius: 0;
        }

        /* Collapsible Privacy Subnav */
        .slide-nav-group {
            display: flex;
            flex-direction: column;
            width: 100%;
        }

        .slide-nav-toggle {
            justify-content: flex-start;
            position: relative;
        }

        .slide-collapse-icon {
            margin-left: auto;
            font-size: 16px;
            font-weight: 800;
            line-height: 1;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 22px;
            height: 22px;
            border-radius: 6px;
            background: rgba(255, 255, 255, 0.08);
            color: #b0c0d6;
            transition: all 0.2s ease;
        }

        .slide-nav-group.open .slide-collapse-icon {
            background: rgba(255, 255, 255, 0.18);
            color: #ffffff;
        }

        .slide-subnav-menu {
            display: flex;
            flex-direction: column;
            gap: 2px;
            padding-left: 20px;
            margin-top: 4px;
            margin-bottom: 4px;
            border-left: 2px solid rgba(255, 255, 255, 0.12);
            margin-left: 24px;
        }

        .slide-subnav-item {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 12px;
            border-radius: 8px;
            color: #9cb2cf;
            text-decoration: none;
            font-size: 12px;
            font-weight: 600;
            transition: all 0.15s ease;
        }

        .slide-subnav-item:hover {
            color: #ffffff;
            background: rgba(255, 255, 255, 0.06);
        }

        .slide-subnav-item.active {
            color: #ffffff;
            background: rgba(255, 87, 34, 0.2);
            font-weight: 700;
        }

        .subnav-dot {
            font-size: 14px;
            line-height: 1;
            opacity: 0.6;
        }

        .slide-bar-backdrop {
            position: fixed;
            inset: 0;
            background: rgba(4, 15, 36, 0.6);
            backdrop-filter: blur(3px);
            z-index: 99998;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s ease;
        }

        .slide-bar-backdrop.open {
            opacity: 1;
            pointer-events: auto;
        }

        /* ================= MAIN CONTENT PANEL ================= */
        .main-content-panel {
            flex: 1;
            min-width: 0;
            display: flex;
            flex-direction: column;
            background: #f8fbfe;
            min-height: 100vh;
        }

        /* Top Header */
        .dashboard-header {
            position: sticky;
            top: 0;
            z-index: 990;
            background: #ffffff;
            padding: 12px 24px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            border-bottom: 1px solid rgba(16, 52, 120, 0.08);
            box-shadow: 0 2px 10px rgba(16, 52, 120, 0.04);
            width: 100%;
        }

        .header-brand-wrap {
            display: flex;
            align-items: center;
            gap: 10px;
            text-decoration: none;
            min-width: 0;
        }

        .header-logo-icon {
            width: 38px;
            height: 38px;
            border-radius: 10px;
            object-fit: cover;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }

        .brand-text-block {
            display: flex;
            flex-direction: column;
        }

        .brand-logo-title {
            font-size: 16px;
            font-weight: 900;
            line-height: 1.15;
            letter-spacing: -0.3px;
        }

        .brand-logo-title .text-digital { color: #0084ff; }
        .brand-logo-title .text-scratch { color: #ff1a75; }
        .brand-logo-title .text-design { color: #0070e0; }

        .brand-tagline-row {
            display: flex;
            gap: 4px;
            font-size: 9px;
            font-weight: 700;
            letter-spacing: 0.2px;
            margin-top: 1px;
        }

        .brand-tagline-row .tag-c { color: #5c6b7e; }
        .brand-tagline-row .tag-e { color: #5c6b7e; }
        .brand-tagline-row .tag-r { color: #5c6b7e; }
        .brand-tagline-row .tag-g { color: #5c6b7e; }

        .header-actions-right {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .notification-btn {
            position: relative;
            background: #ffffff;
            border: 1px solid rgba(16, 52, 120, 0.12);
            width: 38px;
            height: 38px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            color: #0b2149;
            transition: all 0.2s ease;
        }

        .notification-btn svg {
            width: 20px;
            height: 20px;
        }

        .notification-badge-dot {
            position: absolute;
            top: 7px;
            right: 7px;
            width: 8px;
            height: 8px;
            background: #ff1744;
            border-radius: 50%;
            border: 2px solid #ffffff;
        }

        .header-profile-btn {
            background: none;
            border: none;
            cursor: pointer;
            padding: 0;
            display: flex;
            align-items: center;
        }

        .header-profile-avatar {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: #0066ff;
            color: #ffffff;
            font-weight: 800;
            font-size: 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 2px 8px rgba(0, 102, 255, 0.3);
        }

        /* Page Content Body */
        .cards-content-body {
            padding: 16px 24px 30px;
            display: flex;
            flex-direction: column;
            gap: 16px;
            max-width: 1200px;
            width: 100%;
            margin: 0 auto;
        }

        /* ================= BANNERS ================= */
        /* Unscratched Banner */
        .unscratched-banner {
            background: linear-gradient(135deg, #ff007f 0%, #a811da 55%, #701cd4 100%);
            border-radius: 16px;
            padding: 18px 22px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            color: #ffffff;
            box-shadow: 0 8px 24px rgba(168, 17, 218, 0.25);
            position: relative;
            overflow: hidden;
        }

        .banner-left-wrap {
            display: flex;
            align-items: center;
            gap: 12px;
            z-index: 2;
        }

        .btn-banner-back {
            background: rgba(255, 255, 255, 0.2);
            border: none;
            width: 34px;
            height: 34px;
            border-radius: 50%;
            color: #ffffff;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: background 0.2s;
            text-decoration: none;
            flex-shrink: 0;
        }

        .btn-banner-back:hover {
            background: rgba(255, 255, 255, 0.35);
        }

        .btn-banner-back svg {
            width: 18px;
            height: 18px;
        }

        .banner-title-text {
            font-size: 22px;
            font-weight: 900;
            letter-spacing: -0.3px;
        }

        /* Scratched Banner */
        .scratched-banner {
            background: linear-gradient(135deg, #ff0f7b 0%, #f72585 50%, #d81159 100%);
            border-radius: 16px;
            padding: 18px 22px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            color: #ffffff;
            box-shadow: 0 8px 24px rgba(247, 37, 133, 0.28);
            position: relative;
            overflow: hidden;
        }

        .scratched-title-group {
            z-index: 2;
        }

        .scratched-banner-title {
            font-size: 24px;
            font-weight: 900;
            letter-spacing: -0.3px;
            line-height: 1.15;
        }

        .scratched-banner-sub {
            font-size: 13px;
            font-weight: 600;
            opacity: 0.95;
            margin-top: 4px;
        }

        .scratched-right-hero {
            display: flex;
            align-items: center;
            gap: 12px;
            z-index: 2;
        }

        .trophy-hero-icon {
            font-size: 40px;
            filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.25));
            animation: bounceSoft 2.5s infinite ease-in-out;
        }

        @keyframes bounceSoft {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-4px); }
        }

        .trophy-slogan-text {
            font-family: 'Caveat', cursive, sans-serif;
            font-size: 16px;
            font-weight: 700;
            line-height: 1.15;
            text-align: right;
            white-space: pre-line;
            color: #ffffff;
            text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
        }

        /* Banner Graphic Accents */
        .banner-giftboxes-graphic {
            display: flex;
            align-items: center;
            gap: 8px;
            z-index: 2;
        }

        .hero-gift-box {
            position: relative;
        }

        .hero-gift-box.white-gold {
            width: 54px;
            height: 54px;
            background: #ffffff;
            border-radius: 8px;
            box-shadow: 0 6px 16px rgba(0,0,0,0.25);
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .hero-gift-box.white-gold::before {
            content: '';
            position: absolute;
            width: 12px;
            height: 100%;
            background: #ffb300;
        }
        .hero-gift-box.white-gold::after {
            content: '';
            position: absolute;
            height: 12px;
            width: 100%;
            background: #ffb300;
        }

        .hero-bow-gold {
            position: absolute;
            top: -10px;
            font-size: 24px;
            z-index: 3;
        }

        .hero-gift-box.small-green {
            width: 32px;
            height: 32px;
            background: #00aa4f;
            border-radius: 6px;
            box-shadow: 0 4px 10px rgba(0,0,0,0.2);
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .hero-gift-box.small-green::before {
            content: '';
            position: absolute;
            width: 6px;
            height: 100%;
            background: #ffc107;
        }

        .hero-gift-box.small-blue {
            width: 34px;
            height: 34px;
            background: #0084ff;
            border-radius: 6px;
            box-shadow: 0 4px 10px rgba(0,0,0,0.2);
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .hero-gift-box.small-blue::before {
            content: '';
            position: absolute;
            width: 6px;
            height: 100%;
            background: #ff1744;
        }

        .confetti-particle {
            position: absolute;
            pointer-events: none;
            opacity: 0.85;
        }

        /* ================= FILTER TOOLBAR ================= */
        .cards-filter-toolbar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            width: 100%;
            overflow-x: auto;
            scrollbar-width: none;
            -ms-overflow-style: none;
            padding-bottom: 2px;
        }

        .cards-filter-toolbar::-webkit-scrollbar {
            display: none;
        }

        .filter-pills-row {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: nowrap;
        }

        .filter-pill-btn {
            background: #f1e4f4;
            color: #6a1b9a;
            border: none;
            padding: 7px 14px;
            border-radius: 20px;
            font-size: 11.5px;
            font-weight: 700;
            white-space: nowrap;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .filter-pill-btn:hover {
            background: #e6cdee;
        }

        .filter-pill-btn.active {
            background: #ed147d;
            color: #ffffff;
            box-shadow: 0 3px 10px rgba(237, 20, 125, 0.35);
        }

        .sort-dropdown-wrap {
            flex-shrink: 0;
        }

        .btn-sort-dropdown {
            background: #ffffff;
            border: 1px solid rgba(16, 52, 120, 0.15);
            padding: 6px 14px;
            border-radius: 20px;
            font-size: 11.5px;
            font-weight: 700;
            color: var(--text-dark);
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 6px;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
            white-space: nowrap;
        }

        .btn-sort-dropdown svg {
            width: 14px;
            height: 14px;
            color: #556987;
        }

        /* ================= CARDS GRID CONTAINER ================= */
        .cards-grid-layout {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(180px, 215px));
            gap: 14px;
            width: 100%;
        }

        /* ================= UNSCRATCHED CARD STYLES ================= */
        .unscratched-card-item {
            position: relative;
            border-radius: 16px;
            aspect-ratio: 1 / 1.15;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-end;
            padding: 10px 10px 14px;
            box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
            overflow: hidden;
            cursor: pointer;
            transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
            user-select: none;
        }

        .unscratched-card-item:hover {
            transform: translateY(-4px) scale(1.02);
            box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
        }

        /* 9 Gradient Themes */
        .unscratched-card-item.theme-red {
            background: radial-gradient(circle at 50% 30%, #ff3b30 0%, #c4000f 100%);
        }
        .unscratched-card-item.theme-blue {
            background: radial-gradient(circle at 50% 30%, #007aff 0%, #004ecc 100%);
        }
        .unscratched-card-item.theme-green {
            background: radial-gradient(circle at 50% 30%, #00ba58 0%, #007a35 100%);
        }
        .unscratched-card-item.theme-purple {
            background: radial-gradient(circle at 50% 30%, #8338ec 0%, #510a9c 100%);
        }
        .unscratched-card-item.theme-orange {
            background: radial-gradient(circle at 50% 30%, #ff6b00 0%, #d64700 100%);
        }
        .unscratched-card-item.theme-magenta {
            background: radial-gradient(circle at 50% 30%, #ff1493 0%, #b80062 100%);
        }
        .unscratched-card-item.theme-cyan {
            background: radial-gradient(circle at 50% 30%, #00b4d8 0%, #0077b6 100%);
        }
        .unscratched-card-item.theme-violet {
            background: radial-gradient(circle at 50% 30%, #5f10b8 0%, #360073 100%);
        }
        .unscratched-card-item.theme-yellow {
            background: radial-gradient(circle at 50% 30%, #ffb703 0%, #fb8500 100%);
        }

        /* Confetti sparkle overlays on cards */
        .card-sparkles-overlay {
            position: absolute;
            inset: 0;
            background-image: 
                radial-gradient(circle, rgba(255, 255, 255, 0.8) 1.5px, transparent 1.5px),
                radial-gradient(circle, rgba(255, 215, 0, 0.8) 2px, transparent 2px);
            background-size: 40px 40px, 60px 60px;
            background-position: 5px 10px, 20px 25px;
            opacity: 0.45;
            pointer-events: none;
        }

        .card-gift-box-center {
            position: absolute;
            top: 14%;
            width: 62%;
            height: 52%;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 2;
            filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.35));
        }

        .card-gift-box-center img,
        .card-gift-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 12px;
            display: block;
        }

        .card-gift-svg {
            width: 100%;
            height: 100%;
        }

        /* Brushed Metallic Scratch Foil */
        .scratch-foil-plate {
            width: 88%;
            background: linear-gradient(135deg, #e4e7eb 0%, #cfd5dc 25%, #ffffff 50%, #b5bdc7 75%, #dee3e8 100%);
            border: 1px solid rgba(255, 255, 255, 0.8);
            border-radius: 9px;
            box-shadow: 
                inset 0 1px 2px rgba(255, 255, 255, 0.9),
                inset 0 -1px 2px rgba(0, 0, 0, 0.15),
                0 4px 10px rgba(0, 0, 0, 0.25);
            padding: 8px 4px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            z-index: 4;
            position: relative;
            overflow: hidden;
        }

        .scratch-foil-plate::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
            transform: skewX(-25deg);
            animation: foilShine 3.5s infinite;
        }

        @keyframes foilShine {
            0% { left: -100%; }
            20% { left: 150%; }
            100% { left: 150%; }
        }

        .foil-scratch-text {
            color: #2b384e;
            font-size: 11px;
            font-weight: 900;
            letter-spacing: 0.8px;
            line-height: 1.15;
            text-align: center;
            text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
        }

        /* ================= SCRATCHED CARD STYLES ================= */
        .scratched-card-item {
            position: relative;
            border-radius: 12px;
            display: flex;
            flex-direction: column;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
            overflow: hidden;
            background: #ffffff;
            transition: transform 0.25s ease, box-shadow 0.25s ease;
            border: 1px solid rgba(16, 52, 120, 0.07);
        }

        .scratched-card-item:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.13);
        }

        /* Full Card Image Cover Container (Compact Sizing) */
        .scratched-cover-box {
            position: relative;
            width: 100%;
            height: 115px;
            overflow: hidden;
            background: #0f172a;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .scratched-cover-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            border-top-left-radius: 12px;
            border-top-right-radius: 12px;
            transition: transform 0.3s ease;
        }

        .scratched-card-item:hover .scratched-cover-img {
            transform: scale(1.04);
        }

        .scratched-floating-badge {
            position: absolute;
            top: 6px;
            left: 6px;
            background: rgba(11, 33, 73, 0.8);
            backdrop-filter: blur(4px);
            -webkit-backdrop-filter: blur(4px);
            color: #ffd700;
            padding: 2px 7px;
            border-radius: 8px;
            font-size: 8.5px;
            font-weight: 800;
            letter-spacing: 0.3px;
            border: 1px solid rgba(255, 215, 0, 0.35);
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
            z-index: 2;
        }

        .scratched-pic-bottom-scrim {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(to top, rgba(7, 22, 48, 0.95) 0%, rgba(7, 22, 48, 0.6) 65%, transparent 100%);
            padding: 12px 8px 4px;
            z-index: 2;
            text-align: left;
            pointer-events: none;
        }

        .scratched-won-tag {
            font-size: 7.5px;
            font-weight: 800;
            color: #38bdf8;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 1px;
        }

        .scratched-pic-title {
            font-size: 11.5px;
            font-weight: 900;
            color: #ffffff;
            line-height: 1.2;
            text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        /* Item Name Strip Beneath Picture */
        .scratched-item-name-strip {
            background: #f8fafc;
            border-bottom: 1px solid rgba(16, 52, 120, 0.08);
            padding: 5px 8px;
            display: flex;
            align-items: center;
            gap: 5px;
            font-weight: 800;
            font-size: 10.5px;
            color: #0b2149;
            min-width: 0;
        }

        .strip-gift-icon {
            font-size: 12px;
            flex-shrink: 0;
        }

        .strip-item-title {
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            font-weight: 800;
            color: #0b2149;
            flex: 1;
        }

        .scratched-fallback-name-box {
            margin-top: 2px;
            width: 100%;
        }

        /* Top Prize Area for fallback */
        .scratched-card-top {
            position: relative;
            height: 115px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: space-between;
            padding: 8px 6px 4px;
            overflow: hidden;
            text-align: center;
        }

        /* Themes */
        .scratched-card-top.theme-tv {
            background: radial-gradient(circle at 50% 30%, #ff1493 0%, #b80062 100%);
        }
        .scratched-card-top.theme-fridge {
            background: radial-gradient(circle at 50% 30%, #0099ff 0%, #005bb5 100%);
        }
        .scratched-card-top.theme-washer {
            background: radial-gradient(circle at 50% 30%, #ff6b00 0%, #d83b01 100%);
        }
        .scratched-card-top.theme-micro {
            background: radial-gradient(circle at 50% 30%, #00c853 0%, #007e33 100%);
        }
        .scratched-card-top.theme-mixer {
            background: radial-gradient(circle at 50% 30%, #8e24aa 0%, #5c007a 100%);
        }
        .scratched-card-top.theme-cooler {
            background: radial-gradient(circle at 50% 30%, #0091ea 0%, #01579b 100%);
        }
        .scratched-card-top.theme-speaker {
            background: radial-gradient(circle at 50% 30%, #e53935 0%, #b71c1c 100%);
        }
        .scratched-card-top.theme-watch {
            background: radial-gradient(circle at 50% 30%, #00acc1 0%, #006064 100%);
        }
        .scratched-card-top.theme-voucher {
            background: radial-gradient(circle at 50% 30%, #e91e63 0%, #880e4f 100%);
        }

        .won-congrats-text {
            color: #ffffff;
            font-size: 11.5px;
            font-weight: 800;
            letter-spacing: -0.2px;
            text-shadow: 0 1px 3px rgba(0,0,0,0.3);
            line-height: 1.1;
        }

        .won-subtitle-text {
            color: #ffe600;
            font-size: 9.5px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.3px;
            margin-top: 1px;
        }

        .won-prize-name {
            color: #ffffff;
            font-size: 13.5px;
            font-weight: 900;
            letter-spacing: -0.2px;
            margin-bottom: 2px;
            text-shadow: 0 2px 4px rgba(0,0,0,0.35);
        }

        /* Prize Graphic Wrapper */
        .prize-graphic-wrap {
            position: relative;
            width: 86%;
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 0;
            z-index: 2;
        }

        .prize-illustration-svg {
            max-width: 100%;
            max-height: 100%;
            filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
        }

        .prize-illustration-svg.tall {
            max-height: 90%;
        }

        .prize-corner-bow {
            position: absolute;
            top: 2px;
            right: 4px;
            z-index: 4;
            filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.35));
        }

        .has-pedestal {
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
            align-items: center;
        }

        .pedestal-golden-base {
            position: absolute;
            bottom: 0;
            width: 75%;
            height: 14px;
            background: linear-gradient(180deg, #ffe082 0%, #ffb300 50%, #ff8f00 100%);
            border-radius: 50%;
            box-shadow: 0 3px 6px rgba(0,0,0,0.3);
            z-index: 1;
        }

        /* Bottom White Footer for Scratched Card */
        .scratched-card-footer {
            background: #ffffff;
            padding: 8px 8px 8px;
            display: flex;
            flex-direction: column;
            gap: 4px;
            border-top: 1px solid rgba(16, 52, 120, 0.06);
        }

        .footer-winner-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 4px;
            min-width: 0;
        }

        .winner-ident-group {
            display: flex;
            align-items: center;
            gap: 5px;
            min-width: 0;
        }

        .winner-circle-avatar {
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background: #0066ff;
            color: #ffffff;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 9px;
            flex-shrink: 0;
        }

        .winner-name-txt {
            font-size: 10px;
            font-weight: 800;
            color: #0b2149;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .winner-date-txt {
            font-size: 8.5px;
            font-weight: 600;
            color: #556987;
            display: flex;
            align-items: center;
            gap: 3px;
            white-space: nowrap;
            flex-shrink: 0;
        }

        .footer-details-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            font-size: 8.5px;
            color: #556987;
            font-weight: 600;
            padding-left: 23px;
        }

        .winner-phone-txt {
            display: flex;
            align-items: center;
            gap: 3px;
            white-space: nowrap;
        }

        .winner-time-txt {
            white-space: nowrap;
        }

        /* ================= BOTTOM NAVIGATION (MOBILE) ================= */
        .bottom-nav-bar {
            position: fixed;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 100%;
            background: #ffffff;
            border-top: 1px solid rgba(16, 52, 120, 0.09);
            box-shadow: 0 -4px 18px rgba(11, 33, 73, 0.08);
            display: flex;
            align-items: center;
            justify-content: space-around;
            padding: 7px 6px 9px;
            z-index: 998;
        }

        .bottom-tab-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 2px;
            text-decoration: none;
            cursor: pointer;
            background: none;
            border: none;
            outline: none;
            position: relative;
            padding: 0 4px;
        }

        .tab-icon-circle {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #ffffff;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
            transition: transform 0.15s ease;
        }

        .bottom-tab-item:active .tab-icon-circle { transform: scale(0.92); }
        .tab-icon-circle.home { background: linear-gradient(135deg, #ff4d29 0%, #ff7a00 100%); }
        .tab-icon-circle.unscratched { background: linear-gradient(135deg, #0099ff 0%, #0066cc 100%); }
        .tab-icon-circle.scratched { background: linear-gradient(135deg, #ff7e1d 0%, #f74d1a 100%); }
        .tab-icon-circle.customers { background: linear-gradient(135deg, #0ca872 0%, #059669 100%); }
        .tab-icon-circle.profile { background: linear-gradient(135deg, #8327db 0%, #c026d3 100%); }

        .tab-icon-circle svg { width: 20px; height: 20px; }

        .tab-text-label {
            font-size: 10.5px;
            font-weight: 800;
            color: #0b2149;
            line-height: 1;
        }

        .active-tab-indicator {
            width: 40px;
            height: 3px;
            border-radius: 2px;
            background: #ff7e1d;
            margin-top: 2px;
        }

        /* ================= NOTIFICATIONS POPUP ================= */
        .notification-popup-backdrop {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.4);
            z-index: 99990;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.25s ease;
        }
        .notification-popup-backdrop.open {
            opacity: 1;
            pointer-events: auto;
        }

        .notification-popup-box {
            position: fixed;
            top: 70px;
            right: 20px;
            width: 320px;
            max-width: 90vw;
            background: #ffffff;
            border-radius: 16px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            z-index: 99991;
            padding: 16px;
            display: none;
            flex-direction: column;
            gap: 12px;
            animation: popIn 0.2s ease-out;
        }
        .notification-popup-box.open {
            display: flex;
        }
        @keyframes popIn {
            from { transform: scale(0.95); opacity: 0; }
            to { transform: scale(1); opacity: 1; }
        }

        .popup-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            font-weight: 800;
            font-size: 14px;
            border-bottom: 1px solid rgba(0, 0, 0, 0.06);
            padding-bottom: 8px;
        }

        .popup-list {
            display: flex;
            flex-direction: column;
            gap: 10px;
            max-height: 280px;
            overflow-y: auto;
        }

        .popup-item {
            display: flex;
            gap: 10px;
            font-size: 11.5px;
            padding: 6px;
            border-radius: 8px;
            background: #f8fbfe;
        }

        .popup-item-icon {
            font-size: 18px;
        }

        .popup-item-time {
            font-size: 9.5px;
            color: #8898aa;
            margin-top: 2px;
        }

        /* ================= INTERACTIVE SCRATCH MODAL ================= */
        .scratch-modal-backdrop {
            position: fixed;
            inset: 0;
            background: rgba(5, 16, 38, 0.75);
            backdrop-filter: blur(4px);
            z-index: 100000;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 16px;
        }

        .scratch-modal-backdrop.open {
            display: flex;
        }

        .scratch-modal-card {
            background: #ffffff;
            width: 320px;
            max-width: 95vw;
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
            display: flex;
            flex-direction: column;
            align-items: center;
            position: relative;
            animation: modalScaleUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        @keyframes modalScaleUp {
            from { transform: scale(0.8); opacity: 0; }
            to { transform: scale(1); opacity: 1; }
        }

        .scratch-modal-header {
            width: 100%;
            background: linear-gradient(135deg, #ff007f 0%, #a811da 100%);
            color: #ffffff;
            padding: 12px 16px;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .scratch-modal-title {
            font-weight: 800;
            font-size: 15px;
        }

        .btn-modal-close {
            background: rgba(255, 255, 255, 0.2);
            border: none;
            color: #ffffff;
            width: 28px;
            height: 28px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 14px;
        }

        .scratch-canvas-container {
            position: relative;
            width: 260px;
            height: 200px;
            margin: 16px 0;
            border-radius: 14px;
            overflow: hidden;
            box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
        }

        .scratch-reward-layer {
            position: absolute;
            inset: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
            padding: 12px;
            background: radial-gradient(circle, #fff3e0 0%, #ffe0b2 100%);
        }

        .scratch-canvas-foil {
            position: absolute;
            inset: 0;
            cursor: crosshair;
            touch-action: none;
        }

        .scratch-quick-reveal-btn {
            background: linear-gradient(90deg, #ff5722 0%, #ff8a00 100%);
            color: #ffffff;
            border: none;
            padding: 9px 22px;
            border-radius: 24px;
            font-size: 12px;
            font-weight: 800;
            cursor: pointer;
            box-shadow: 0 4px 14px rgba(255, 87, 34, 0.35);
            margin-bottom: 16px;
            transition: transform 0.15s;
        }
        .scratch-quick-reveal-btn:hover {
            transform: scale(1.04);
        }

        /* ================= RESPONSIVE MEDIA QUERIES ================= */

        /* 1. DESKTOP / LAPTOP (>= 1024px) */
        @media (min-width: 1024px) {
            .slide-bar-drawer {
                position: sticky;
                top: 0;
                height: 100vh;
                transform: none !important;
            }
            .bottom-nav-bar {
                display: none !important;
            }
            .btn-banner-back {
                display: none;
            }
            .cards-content-body {
                padding: 20px 28px 40px;
            }
            .cards-grid-layout {
                grid-template-columns: repeat(auto-fill, minmax(180px, 215px));
                gap: 14px;
            }
        }

        /* 2. TABLET (728px - 1023px) */
        @media (max-width: 1023px) and (min-width: 728px) {
            .slide-bar-drawer {
                position: fixed;
                top: 0;
                left: 0;
                width: 275px;
                height: 100%;
                z-index: 99999;
                transform: translateX(-100%);
            }
            .slide-bar-drawer.open {
                transform: translateX(0);
            }
            .slide-close-btn {
                display: flex;
            }
            .cards-content-body {
                padding: 16px 20px 85px;
            }
            .cards-grid-layout {
                grid-template-columns: repeat(auto-fill, minmax(150px, 185px));
                gap: 12px;
            }
        }

        /* 3. MOBILE BASE (< 728px) */
        @media (max-width: 727px) {
            .slide-bar-drawer {
                position: fixed;
                top: 0;
                left: 0;
                width: 275px;
                max-width: 82vw;
                height: 100%;
                z-index: 99999;
                transform: translateX(-100%);
            }
            .slide-bar-drawer.open {
                transform: translateX(0);
            }
            .slide-close-btn {
                display: flex;
            }
            .cards-content-body {
                padding: 12px 12px 85px;
                gap: 12px;
            }
            .cards-grid-layout {
                grid-template-columns: repeat(2, 1fr);
                gap: 10px;
                max-width: 440px;
                margin: 0 auto;
            }
            .scratched-cover-box {
                height: 100px;
            }
            .scratched-card-top {
                height: 100px;
            }
        }

        /* 4. MOBILE M (350px - 400px, e.g. iPhone 375px) */
        @media (max-width: 400px) {
            .dashboard-header {
                padding: 8px 10px;
            }
            .header-logo-icon {
                width: 32px;
                height: 32px;
            }
            .brand-logo-title {
                font-size: 14px;
            }
            .brand-tagline-row {
                font-size: 8px;
            }
            .cards-content-body {
                padding: 10px 8px 80px;
                gap: 10px;
            }
            .unscratched-banner, .scratched-banner {
                padding: 12px 12px;
                border-radius: 14px;
            }
            .banner-title-text, .scratched-banner-title {
                font-size: 18px;
            }
            .scratched-banner-sub {
                font-size: 10.5px;
            }
            .trophy-hero-icon {
                font-size: 32px;
            }
            .trophy-slogan-text {
                font-size: 13px;
            }
            .cards-grid-layout {
                grid-template-columns: repeat(2, 1fr);
                gap: 8px;
            }
            .scratched-cover-box {
                height: 94px;
            }
            .scratched-card-top {
                height: 94px;
            }
            .unscratched-card-item {
                padding: 6px 6px 10px;
                border-radius: 12px;
            }
            .foil-scratch-text {
                font-size: 8.5px;
            }
            .won-congrats-text {
                font-size: 9px;
            }
            .won-subtitle-text {
                font-size: 7.5px;
            }
            .won-prize-name {
                font-size: 10.5px;
            }
            .scratched-card-footer {
                padding: 6px 4px;
                gap: 2px;
            }
            .winner-name-txt {
                font-size: 8px;
            }
            .winner-date-txt {
                font-size: 7px;
            }
            .footer-details-row {
                font-size: 7px;
                padding-left: 17px;
            }
            .winner-circle-avatar {
                width: 14px;
                height: 14px;
                font-size: 7px;
            }
        }

        /* 5. MOBILE S (<= 340px, e.g. 320px screen) */
        @media (max-width: 340px) {
            .dashboard-header {
                padding: 6px 8px;
            }
            .header-logo-icon {
                width: 28px;
                height: 28px;
            }
            .brand-logo-title {
                font-size: 12.5px;
            }
            .brand-tagline-row {
                font-size: 7px;
            }
            .notification-btn {
                width: 30px;
                height: 30px;
            }
            .header-profile-avatar {
                width: 30px;
                height: 30px;
                font-size: 13px;
            }
            .cards-content-body {
                padding: 8px 6px 76px;
                gap: 8px;
            }
            .unscratched-banner, .scratched-banner {
                padding: 10px 8px;
                border-radius: 12px;
            }
            .banner-title-text, .scratched-banner-title {
                font-size: 15px;
            }
            .scratched-banner-sub {
                font-size: 9px;
            }
            .trophy-hero-icon {
                font-size: 26px;
            }
            .trophy-slogan-text {
                font-size: 11px;
            }
            .filter-pill-btn {
                padding: 5px 8px;
                font-size: 9.5px;
            }
            .btn-sort-dropdown {
                padding: 5px 8px;
                font-size: 9.5px;
            }
            .cards-grid-layout {
                grid-template-columns: repeat(3, 1fr);
                gap: 4px;
            }
            .unscratched-card-item {
                padding: 4px 4px 6px;
                border-radius: 10px;
            }
            .scratch-foil-plate {
                padding: 4px 2px;
                border-radius: 6px;
            }
            .foil-scratch-text {
                font-size: 7px;
                letter-spacing: 0.3px;
            }
            .won-congrats-text {
                font-size: 8px;
            }
            .won-subtitle-text {
                font-size: 6.5px;
            }
            .won-prize-name {
                font-size: 9px;
            }
            .scratched-card-footer {
                padding: 4px 2px;
                gap: 1px;
            }
            .winner-name-txt {
                font-size: 7px;
            }
            .winner-date-txt {
                font-size: 6px;
            }
            .footer-details-row {
                font-size: 6px;
                padding-left: 14px;
            }
            .winner-circle-avatar {
                width: 12px;
                height: 12px;
                font-size: 6px;
            }
            .bottom-nav-bar {
                padding: 3px 2px 5px;
            }
            .tab-icon-wrap {
                width: 30px;
                height: 30px;
            }
            .tab-icon-wrap svg {
                width: 16px;
                height: 16px;
            }
            .tab-text-label {
                font-size: 8.5px;
            }
        }

.cards-filter-toolbar>label{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:700;color:#334155;white-space:nowrap}
#cardSourceFilter{appearance:none;min-width:190px;min-height:42px;padding:10px 36px 10px 13px;border:1px solid #cbd5e1;border-radius:12px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E") no-repeat right 12px center;color:#0f172a;font-family:inherit;font-size:13px;font-weight:600;box-shadow:0 2px 5px #0f172a06;cursor:pointer}
#cardSourceFilter:hover{border-color:#a78bfa}#cardSourceFilter:focus{outline:3px solid #ddd6fe;border-color:#8b5cf6}
