: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(90deg, #ff007f 0%, #eb0085 24%, #9800e8 62%, #ff007f 100%);
            border-radius: 14px;
            padding: 10px 18px;
            min-height: 56px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            color: #ffffff;
            box-shadow: 0 8px 24px rgba(168, 17, 218, 0.28);
            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(150px, 185px));
            gap: 14px;
            width: 100%;
        }

        /* ================= UNSCRATCHED CARD STYLES ================= */
        .unscratched-card-item {
            position: relative;
            border-radius: 16px;
            aspect-ratio: 1 / 1;
            max-width: 185px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-end;
            padding: 8px 8px 12px;
            box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
            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 10px 24px rgba(0, 0, 0, 0.22);
        }

        .card-validity-tag {
            position: absolute;
            top: 6px;
            left: 6px;
            background: rgba(0, 0, 0, 0.55);
            backdrop-filter: blur(2px);
            color: #ffffff;
            font-size: 8.5px;
            font-weight: 800;
            padding: 2.5px 7px;
            border-radius: 8px;
            letter-spacing: 0.2px;
            z-index: 5;
            display: inline-flex;
            align-items: center;
            gap: 3px;
            border: 1px solid rgba(255, 255, 255, 0.25);
        }

        .card-validity-tag.expired {
            background: rgba(220, 38, 38, 0.9);
            border-color: rgba(254, 202, 202, 0.4);
            color: #ffffff;
        }

        .unscratched-card-item.card-expired {
            filter: grayscale(0.85);
            opacity: 0.75;
            cursor: not-allowed;
        }

        .unscratched-card-item.card-expired:hover {
            transform: none;
            box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
        }

        /* 9 Gradient Themes Matching Reference Image 2 */
        .unscratched-card-item.theme-red {
            background: radial-gradient(circle at 50% 36%, #ff2a2a 0%, #e00000 55%, #a80000 100%);
        }
        .unscratched-card-item.theme-blue {
            background: radial-gradient(circle at 50% 36%, #1a88ff 0%, #0060e6 55%, #003db3 100%);
        }
        .unscratched-card-item.theme-green {
            background: radial-gradient(circle at 50% 36%, #00c842 0%, #009e32 55%, #006e21 100%);
        }
        .unscratched-card-item.theme-purple {
            background: radial-gradient(circle at 50% 36%, #8e2de2 0%, #6817b8 55%, #4a008c 100%);
        }
        .unscratched-card-item.theme-orange {
            background: radial-gradient(circle at 50% 36%, #ff8000 0%, #f05a00 55%, #c43800 100%);
        }
        .unscratched-card-item.theme-magenta {
            background: radial-gradient(circle at 50% 36%, #ff0f87 0%, #e6006e 55%, #aa004d 100%);
        }
        .unscratched-card-item.theme-cyan {
            background: radial-gradient(circle at 50% 36%, #00d2ff 0%, #00a0dc 55%, #006fa6 100%);
        }
        .unscratched-card-item.theme-violet {
            background: radial-gradient(circle at 50% 36%, #6a00f4 0%, #4a00bf 55%, #300085 100%);
        }
        .unscratched-card-item.theme-yellow {
            background: radial-gradient(circle at 50% 36%, #ffc000 0%, #ff9d00 55%, #d97700 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.85) 2px, transparent 2px);
            background-size: 38px 38px, 58px 58px;
            background-position: 5px 8px, 20px 22px;
            opacity: 0.5;
            pointer-events: none;
        }

        .card-gift-box-center {
            position: absolute;
            top: 7%;
            width: 90%;
            height: 90%;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 2;
        }

        .card-gift-box-center img,
        .card-gift-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 12px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
            display: block;
        }

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

        /* Brushed Metallic Scratch Foil */
        .scratch-foil-plate {
            width: 86%;
            height: 38px;
            background: linear-gradient(135deg, #d8dfe6 0%, #bcc5d0 18%, #f2f5f8 35%, #e1e7ed 52%, #abb6c4 70%, #d8dfe6 88%, #c2cbd5 100%);
            border: 1px solid rgba(255, 255, 255, 0.75);
            border-radius: 10px;
            box-shadow: 
                inset 0 1px 2px rgba(255, 255, 255, 0.9),
                inset 0 -1.5px 2px rgba(0, 0, 0, 0.2),
                0 3px 8px rgba(0, 0, 0, 0.25);
            padding: 4px 6px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            z-index: 4;
            position: relative;
            overflow: hidden;
            box-sizing: border-box;
        }

        .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.55), transparent);
            transform: skewX(-25deg);
            animation: foilShine 3.5s infinite;
        }

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

        .foil-scratch-text {
            color: #1e293b;
            font-size: 11px;
            font-weight: 900;
            letter-spacing: 0.8px;
            line-height: 1.15;
            text-align: center;
            text-transform: uppercase;
            font-family: 'Plus Jakarta Sans', sans-serif;
            text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
        }

        /* ================= SCRATCHED CARD STYLES ================= */
        .scratched-card-item {
            position: relative;
            border-radius: 16px;
            display: flex;
            flex-direction: column;
            box-shadow: 0 6px 18px rgba(0, 0, 0, 0.09);
            overflow: hidden;
            background: #ffffff;
            transition: transform 0.25s ease, box-shadow 0.25s ease;
        }

        .scratched-card-item:hover {
            transform: translateY(-4px);
            box-shadow: 0 12px 26px rgba(0, 0, 0, 0.16);
        }

        /* Top Prize Area */
        .scratched-card-top {
            position: relative;
            aspect-ratio: 1 / 1.02;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: space-between;
            padding: 10px 8px 6px;
            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: #0099ff;
            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.8);
            backdrop-filter: blur(5px);
            z-index: 100000;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 16px;
            box-sizing: border-box;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
        }

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

        .scratch-modal-card {
            background: #ffffff;
            width: 360px;
            max-width: 95vw;
            max-height: 88vh;
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
            display: flex;
            flex-direction: column;
            position: relative;
            animation: modalScaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
        }

        @keyframes modalScaleUp {
            from { transform: scale(0.9); 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;
            flex-shrink: 0;
            box-sizing: border-box;
            z-index: 10;
        }

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

        .btn-modal-close {
            background: rgba(255, 255, 255, 0.25);
            border: none;
            color: #ffffff;
            width: 28px;
            height: 28px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.15s ease;
        }

        .btn-modal-close:hover {
            background: rgba(255, 255, 255, 0.4);
        }

        .scratch-modal-body {
            width: 100%;
            flex: 1;
            overflow-y: auto;
            overflow-x: hidden;
            -webkit-overflow-scrolling: touch;
            display: flex;
            flex-direction: column;
            align-items: center;
            box-sizing: border-box;
            padding-bottom: 8px;
            scrollbar-width: thin;
            scrollbar-color: #cbd5e1 #f8fafc;
        }

        .scratch-modal-body::-webkit-scrollbar {
            width: 6px;
        }

        .scratch-modal-body::-webkit-scrollbar-track {
            background: #f8fafc;
        }

        .scratch-modal-body::-webkit-scrollbar-thumb {
            background: #cbd5e1;
            border-radius: 3px;
        }

        .scratch-modal-body::-webkit-scrollbar-thumb:hover {
            background: #94a3b8;
        }

        .scratch-canvas-container {
            position: relative;
            width: 260px;
            height: 180px;
            margin: 12px 0 10px;
            border-radius: 14px;
            overflow: hidden;
            box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
            flex-shrink: 0;
        }

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

        .scratch-canvas-foil {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            cursor: grab;
            touch-action: none;
        }

        .scratch-canvas-foil:active {
            cursor: grabbing;
        }

        /* Before reveal, the reference gift foil fills the modal body without white margins. */
        .scratch-modal-backdrop.scratch-covered .scratch-modal-body {
            padding: 0;
        }
        .scratch-modal-backdrop.scratch-covered .scratch-canvas-container {
            width: 100% !important;
            height: auto !important;
            aspect-ratio: 12 / 7;
            margin: 0 !important;
            border-radius: 0;
            box-shadow: none;
        }
        .scratch-modal-backdrop.scratch-covered .scratch-canvas-foil {
            width: 100% !important;
            height: 100% !important;
        }

        .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: 12px;
            flex-shrink: 0;
            transition: transform 0.15s;
        }
        .scratch-quick-reveal-btn:hover {
            transform: scale(1.02);
        }

        @media (max-width: 600px) {
            .scratch-modal-backdrop {
                padding: 10px 8px !important;
                align-items: center !important;
            }

            .scratch-modal-card {
                width: 100% !important;
                max-width: 350px !important;
                max-height: calc(100vh - 20px) !important;
                border-radius: 16px !important;
            }

            .scratch-canvas-container {
                width: 240px !important;
                height: 165px !important;
                margin: 8px 0 !important;
            }

            .scratch-canvas-foil {
                width: 240px !important;
                height: 165px !important;
            }

            #scratchClaimSection {
                padding: 0 12px 14px !important;
            }

            #scratchSaveBtn {
                padding: 11px !important;
                font-size: 13.5px !important;
            }
        }

        /* ================= 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(150px, 185px));
                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(135px, 165px));
                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(3, 1fr);
                gap: 8px;
            }
            .unscratched-card-item {
                aspect-ratio: 1 / 1;
                padding: 6px 5px 8px;
                border-radius: 14px;
            }
            .card-gift-box-center {
                width: 50%;
                height: 50%;
                top: 6%;
            }
            .scratch-foil-plate {
                height: 32px;
                padding: 2px 4px;
                border-radius: 8px;
            }
            .foil-scratch-text {
                font-size: 9px;
                letter-spacing: 0.5px;
            }
        }

        /* 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(3, 1fr);
                gap: 6px;
            }
            .unscratched-card-item {
                aspect-ratio: 1 / 1;
                padding: 5px 4px 6px;
                border-radius: 12px;
            }
            .card-gift-box-center {
                width: 48%;
                height: 48%;
                top: 6%;
            }
            .scratch-foil-plate {
                height: 28px;
                padding: 2px 3px;
                border-radius: 7px;
            }
            .foil-scratch-text {
                font-size: 8px;
                letter-spacing: 0.4px;
            }
            .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 {
                aspect-ratio: 1 / 1;
                padding: 4px 3px 5px;
                border-radius: 10px;
            }
            .scratch-foil-plate {
                height: 25px;
                padding: 1px 2px;
                border-radius: 6px;
            }
            .foil-scratch-text {
                font-size: 7.5px;
                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;
            }
        }

/* Compact square reward foil, sized consistently on touch and desktop. */
#scratchModalBackdrop .scratch-canvas-container,
#scratchModalBackdrop.scratch-covered .scratch-canvas-container {
    width:min(280px, 100%) !important;height:auto !important;aspect-ratio:1;
    margin:16px auto !important;border-radius:22px;box-shadow:0 8px 28px #1a73e826;
}
#scratchModalBackdrop.scratch-covered .scratch-modal-body{padding:16px}
#scratchModalBackdrop .scratch-canvas-foil{width:100% !important;height:100% !important;transition:opacity .3s ease}

/* Present the unopened card on its own, without a surrounding modal panel. */
#scratchModalBackdrop.scratch-covered .scratch-modal-card{
    width:min(280px,calc(100vw - 48px)) !important;
    max-width:280px !important;max-height:none !important;
    background:transparent;box-shadow:none;overflow:visible;
}
#scratchModalBackdrop .scratch-modal-header{
    background:transparent;justify-content:flex-end;padding:8px;
}
#scratchModalBackdrop.scratch-covered .scratch-modal-header{
    position:absolute;right:-10px;top:-46px;width:auto;padding:0;
}
#scratchModalBackdrop.scratch-covered .scratch-modal-body{
    padding:0;overflow:visible;flex:none;
}
#scratchModalBackdrop.scratch-covered .scratch-canvas-container{
    width:100% !important;margin:0 !important;
}
#scratchModalBackdrop .btn-modal-close{background:#17233ccc;width:32px;height:32px}
