/* --- Partnership Theme --- */
.partnership-theme {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding-top: 40px !important;
    position: relative;
    /* Ensure descendants can pin to container */
    overflow: hidden;
    /* Contain the fire base */
    min-height: 480px;
    /* Ensure enough height for the layout */
}

.acc-partnership-header {
    margin-bottom: 5px;
}

.acc-partnership-logo {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(255, 64, 129, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.1);
    animation: logoGlow 3s infinite alternate;
}

@keyframes logoGlow {
    from {
        box-shadow: 0 0 20px rgba(255, 64, 129, 0.2);
    }

    to {
        box-shadow: 0 0 40px rgba(255, 64, 129, 0.5);
    }
}

.acc-partnership-title {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 15px;
    width: 100%;
    margin-bottom: 15px;
}

.acc-part-user {
    justify-self: end;
    font-size: 1.6rem;
    font-weight: 500;
    color: #ffca28;
    text-shadow: 0 0 15px rgba(255, 202, 40, 0.3);
    text-transform: uppercase;
    white-space: nowrap;
    font-family: 'Outfit', sans-serif;
}

.acc-part-x {
    font-size: 1.5rem;
    font-weight: 300;
    color: #ffffff;
    font-style: italic;
    opacity: 0.8;
}

.acc-part-app {
    justify-self: start;
    font-size: 1.5rem;
    font-weight: 600;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 15px rgba(255, 64, 129, 0.3);
    letter-spacing: 2px;
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
}

.acc-partnership-id {
    margin-bottom: 25px;
}

.user-id-badge {
    display: inline-block;
    background: transparent;
    color: #ffffff;
    padding: 5px 0;
    font-size: 2.2rem;
    font-weight: 200;
    /* Extra thin */
    border: none;
    backdrop-filter: none;
    font-family: 'Inter', sans-serif;
    letter-spacing: 2px;
    opacity: 0.9;
}

.acc-partnership-stats {
    width: 100%;
    max-width: 250px;
    /* More contained */
    margin: 0 auto;
}

.coin-focus {
    background: linear-gradient(135deg, rgba(255, 202, 40, 0.15), rgba(0, 0, 0, 0.6));
    border: 1px solid rgba(255, 202, 40, 0.4);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    border-radius: 25px;
    padding: 15px 20px;
    overflow: hidden;
    /* Prevent overflow */
}

/* --- Responsive Scaling for Account Header --- */
@media (max-width: 400px) {
    .acc-part-user {
        font-size: 1.3rem;
    }
    .acc-part-app {
        font-size: 1.2rem;
        letter-spacing: 1px;
    }
    .acc-partnership-title {
        gap: 8px;
    }
    .user-id-badge {
        font-size: 1.8rem;
    }
}

@media (max-width: 340px) {
    .acc-part-user {
        font-size: 1.1rem;
    }
    .acc-part-app {
        font-size: 1rem;
        letter-spacing: 0.5px;
    }
    .acc-partnership-title {
        gap: 5px;
    }
    .user-id-badge {
        font-size: 1.5rem;
    }
}

.acc-stat-icon {
    width: 45px !important;
    height: 45px !important;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 0 10px rgba(255, 202, 40, 0.6));
}

/* --- Achievements Section (Badges) --- */
.achievements-section {
    margin-top: 20px;
    text-align: right;
}

.achievements-title {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 15px;
    padding-right: 10px;
    border-right: 4px solid var(--primary-color);
}

.badges-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.badge-card {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 18px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transition: all 0.3s ease;
    min-height: 180px;
    /* Ensure space for badge */
}

/* Locked State */
.badge-card.locked {
    border: 1px dashed rgba(255, 255, 255, 0.15);
    opacity: 0.8;
}

.badge-card.locked .badge-content {
    filter: grayscale(100%);
}

.locked-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.3);
}

.locked-state i {
    font-size: 2.5rem;
}

/* Unlocked State */
.badge-card.unlocked {
    background: linear-gradient(145deg, rgba(255, 202, 40, 0.05), rgba(0, 0, 0, 0.3));
    border: 1px solid rgba(255, 202, 40, 0.3);
    box-shadow: 0 0 20px rgba(255, 202, 40, 0.05) inset;
}

.badge-header {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
}

.badge-card.unlocked .badge-header {
    color: #ffca28;
    font-weight: bold;
}

.badge-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.badge-footer {
    margin-top: 10px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    font-family: monospace;
}

.badge-card.unlocked .badge-footer {
    color: #ffca28;
}

/* Re-use Leaderboard Badge Styles inside Card context */
.badge-content .leader-badge-wrapper {
    position: relative;
    width: 120px;
    /* Force size within card */
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge-content .leader-badge-img {
    width: 80px;
    /* Slightly smaller for card */
    height: auto;
}

/* Ensure stars are visible and positioned correctly in card */
.badge-content .star-particles {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    /* Adjust orbit container for card */
    height: 100px;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* Floating Menu Button */
.fab-menu {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary-gradient);
    border: none;
    box-shadow: 0 4px 20px rgba(255, 64, 129, 0.4);
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.fab-menu:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(255, 64, 129, 0.6);
}

.fab-menu:active {
    transform: scale(0.95);
}

.fab-menu .menu-icon {
    width: 28px;
    height: 28px;
    fill: #fff;
}

.notif-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 12px;
    height: 12px;
    background: #ff4444;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
    z-index: 101;
}

.notif-dot {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 10px;
    height: 10px;
    background: #ff3b30;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255, 59, 48, 0.6);
    z-index: 5;
    animation: badgePulse 2s infinite;
}

.content-area {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1;
    /* Above body background, below sidebar/modals */
}

.video-dashboard-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.premium-video {
    width: 100%;
    height: 100%;
    object-fit: fill;
    /* Stretch to fill without cropping corners */
    z-index: 1;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    /* Hardware Acceleration */
}

.video-overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.4) 100%),
        linear-gradient(to bottom, transparent 70%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 2;
    pointer-events: none;
}

/* Ensure no scroll on landing */
body,
html {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overscroll-behavior: none;
    /* Block elastic scrolling system-wide */
}

.welcome-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: clamp(15px, 4vw, 25px);
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: right;
    flex-wrap: wrap;
    /* Handle narrow screens */
    gap: 15px;
}

.user-meta h2 {
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.user-id-badge {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    background: rgba(0, 0, 0, 0.3);
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
}

.balance-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 15px 25px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: 0.3s;
}

.balance-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 152, 0, 0.3);
}

.lexcoin-icon {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 0 10px rgba(255, 152, 0, 0.5));
}

.balance-info {
    display: flex;
    flex-direction: column;
}

#user-balance-display {
    font-size: 1.8rem;
    font-weight: 900;
    color: #ffca28;
    line-height: 1;
}

.balance-unit {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.btn-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #888;
    padding: 12px 30px;
    border-radius: 12px;
    cursor: pointer;
    margin-top: 10px;
    transition: 0.3s;
}

.btn-secondary:hover {
    color: #fff;
    border-color: #ff4081;
    background: rgba(255, 64, 129, 0.1);
}

/* Sidebar Navigation */
.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    /* Use percentage for better hiding */
    width: min(300px, 85vw);
    /* Responsive width */
    height: 100vh;
    background: rgba(11, 11, 13, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.8);
    z-index: 999999;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow-y: auto;
    will-change: transform;
}

.sidebar.active {
    transform: translateX(0);
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h3 {
    font-size: 1.3rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar-header .icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.close-icon {
    width: 24px;
    height: 24px;
    fill: url(#gradient-close);
}

/* Add gradient definition for close icon */
.sidebar-header svg {
    filter: drop-shadow(0 0 8px rgba(255, 64, 129, 0.5));
}

.sidebar-header .close-icon {
    fill: #ff4081;
}

.menu-list {
    list-style: none;
    padding: 10px 0;
}

.menu-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.95);
    border-right: 3px solid transparent;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-right-color: var(--primary-color);
}

.menu-item-icon, .menu-item-icon path {
    fill: url(#g1) !important;
    transition: transform 0.3s ease;
}

.menu-item-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* Specific handling for FontAwesome icons like the bell */
i.menu-item-icon {
    background: linear-gradient(135deg, #FF8C00, #FFFF00, #FF00FF, #FF0000) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
    display: inline-block !important;
}

.menu-item span {
    font-size: 0.95rem;
    font-weight: 500;
}

/* --- Navigation Badge --- */
.nav-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 10px;
    height: 10px;
    background-color: #ff3b30; /* Red */
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 59, 48, 0.6);
    animation: badgePulse 2s infinite;
    z-index: 5;
}

/* Golden VIP Nav Item */
.vip-nav-item {
    color: #ffd700 !important;
    font-weight: 800 !important;
    border-right-color: #ffd700 !important;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
    position: relative;
    overflow: hidden;
}

.vip-nav-item .menu-item-icon {
    fill: #ffd700 !important;
    filter: drop-shadow(0 0 3px rgba(255, 215, 0, 0.8));
}

.vip-nav-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transform: skewX(-25deg);
    animation: vipMenuShine 6s infinite;
}

@keyframes vipMenuShine {
    0% { left: -100%; }
    20% { left: 150%; }
    100% { left: 150%; }
}

@keyframes badgePulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(255, 59, 48, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0); }
}

.nav-badge.hidden {
    display: none;
}

/* Overlay for sidebar */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 150;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    will-change: opacity;
    transform: translateZ(0);
}

.sidebar-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* FAQ Section Styles */
.faq-container {
    padding: 10px 5px;
    max-width: 100%;
    width: 98%;
    margin: 0 auto;
    text-align: right;
    animation: FAQfadeIn 0.5s ease-out;
    transform: translateZ(0);
    will-change: transform;
}

.faq-article {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    padding-bottom: 40px;
    transform: translateZ(0);
}

.faq-article-header {
    background: linear-gradient(135deg, rgba(255, 64, 129, 0.1) 0%, rgba(0, 230, 118, 0.1) 100%);
    padding: 40px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.faq-main-icon {
    font-size: 3.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(255, 64, 129, 0.3);
}

.faq-article-header h1 {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.4;
}

.faq-subtitle {
    color: #00e676;
    font-weight: 500;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.faq-section {
    padding: 30px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.section-title {
    font-size: 1.25rem;
    color: #ffca28;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title i {
    font-size: 1.1rem;
    color: #ffca28;
}

.section-content p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    font-size: 1rem;
    margin-bottom: 15px;
}

.faq-list {
    list-style: none;
    padding-right: 15px;
}

.faq-list li {
    position: relative;
    padding-right: 25px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.faq-list li::before {
    content: '✦';
    position: absolute;
    right: 0;
    color: #ffca28;
    font-size: 0.9rem;
}

.faq-list strong {
    color: #fff;
}

/* Specific Section Variations */
.invite-section {
    background: rgba(0, 230, 118, 0.03);
}

.vip-alert-section {
    position: relative;
    background: rgba(255, 215, 0, 0.02);
    border: 1px solid rgba(255, 215, 0, 0.1);
    margin: 20px 15px;
    border-radius: 15px;
}

.vip-badge-ribbon {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ffca28;
    color: #000;
    font-weight: 900;
    font-size: 0.7rem;
    padding: 3px 10px;
    border-radius: 4px;
    text-transform: uppercase;
}

.vip-warning-text {
    color: #ffca28 !important;
    font-weight: 600;
}

/* Legacy price tag removed to fix VIP promo conflict */


.faq-alert-box {
    background: rgba(255, 68, 68, 0.1);
    border-right: 4px solid #ff4444;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.faq-alert-box i {
    color: #ff4444;
    font-size: 1.2rem;
    margin-top: 3px;
}

.faq-alert-box p {
    margin: 0;
    font-size: 0.9rem !important;
    color: rgba(255, 255, 255, 0.9) !important;
    line-height: 1.5 !important;
}

.faq-article-footer {
    padding: 40px 25px;
    text-align: center;
}

.footer-quote {
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 12px;
    font-style: italic;
    margin-bottom: 30px;
}

.footer-quote p {
    color: #fff;
    font-size: 1rem !important;
    line-height: 1.6 !important;
}

.footer-signature p {
    font-weight: 800;
    font-family: 'Nosifer', cursive;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.2rem !important;
}

@keyframes FAQfadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 600px) {
    .faq-article-header h1 {
        font-size: 1.5rem;
    }

    .faq-main-icon {
        font-size: 2.8rem;
    }

    .faq-section {
        padding: 25px 15px;
    }
}



/* VIP Gallery Styles */
#vip-screen {
    touch-action: none !important;
    overflow: hidden !important;
    height: 100vh !important;
    max-height: 100vh !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -webkit-touch-callout: none !important;
    -webkit-user-drag: none !important;
}

#vip-screen * {
    -webkit-touch-callout: none !important;
    -webkit-user-drag: none !important;
}

#vip-screen .vip-ribbon-container,
#vip-screen .vip-ribbon-container * {
    touch-action: pan-x !important;
    /* Allow the ribbon to swipe horizontally */
}

.vip-container {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    gap: 15px;
    animation: FAQfadeIn 0.6s ease-out;
    touch-action: none;
    /* Block all touch movement on the container directly */
    overscroll-behavior: none;
    -webkit-overflow-scrolling: auto;
    user-select: none;
}

.vip-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 10px;
    position: relative;
    /* For hand pointer positioning */
}

/* Floating Arrow Pointer */
.vip-arrow-pointer {
    position: absolute;
    top: 35px;
    /* Closer to the button */
    left: 50%;
    /* Center horizontally */
    transform: translateX(-50%);
    z-index: 100;
    pointer-events: none;
    transition: opacity 0.5s ease;
    animation: arrowBounce 1.5s infinite ease-in-out;
}

@keyframes arrowBounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
        opacity: 0.6;
    }

    50% {
        transform: translateX(-50%) translateY(5px);
        opacity: 1;
    }
}

#vip-particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.vip-help-btn {
    background: rgba(255, 202, 40, 0.15);
    border: 1px solid #ffca28;
    color: #ffca28;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.vip-help-btn:hover {
    background: #ffca28;
    color: #000;
}

.vip-cta-banner {
    width: 90%;
    text-align: center;
    padding: 10px;
    background: linear-gradient(90deg, transparent, rgba(255, 202, 40, 0.05), transparent);
    border-top: 1px solid rgba(255, 202, 40, 0.2);
    border-bottom: 1px solid rgba(255, 202, 40, 0.2);
    margin: 5px 0 10px 0;
    position: relative;
    padding-bottom: 15px;
    /* Space for progress bar */
    touch-action: none;
}

.vip-season-progress {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    position: absolute;
    bottom: 0;
    /* Align to bottom of container */
    left: 0;
    top: auto;
    /* Remove top positioning */
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ffca28, #fff);
    box-shadow: 0 0 10px #ffca28;
    transition: width 2s ease-out;
}

.vip-cta-banner p {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.vip-countdown {
    display: flex;
    gap: 15px;
    justify-content: center;
    color: #ffca28;
    font-size: 1.1rem;
    font-weight: 800;
    font-family: monospace;
}

.vip-countdown span {
    background: rgba(255, 202, 40, 0.2);
    padding: 2px 8px;
    border-radius: 4px;
    min-width: 35px;
    text-align: center;
}

.vip-main-frame {
    position: relative;
    width: clamp(200px, 60vmin, 280px);
    height: clamp(200px, 60vmin, 280px);
    border-radius: 30px;
    background: rgba(255, 215, 0, 0.05);
    /* Subtle golden tint */
    border: 3px solid #ffca28;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(255, 202, 40, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: clamp(5px, 1vh, 10px);
    /* Clean drag prevent */
    -webkit-user-drag: none;
    /* Golden Pulse Animation */
    animation: goldPulse 3s infinite ease-in-out;
}

@keyframes goldPulse {

    0%,
    100% {
        box-shadow: 0 0 30px rgba(255, 202, 40, 0.2);
        border-color: #ffca28;
    }

    50% {
        box-shadow: 0 0 60px rgba(255, 202, 40, 0.5);
        border-color: #fff;
    }
}

.vip-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255, 202, 40, 0.1) 0%, transparent 80%);
    pointer-events: none;
    z-index: 1;
}

.vip-active-img-changing {
    opacity: 0.2;
    /* Subdued but not black to keep flow */
}

.vip-details-outside {
    text-align: center;
    padding: 0 20px 10px;
    width: 100%;
    max-width: 500px;
    animation: FAQfadeIn 0.8s ease-out;
    touch-action: none;
}

#vip-title {
    color: #ffca28;
    font-size: 1.2rem;
    /* Reduced */
    margin-bottom: 8px;
    /* Reduced */
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(255, 202, 40, 0.3);
}

.vip-long-desc {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.9rem;
    line-height: 1.6;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    /* Glassmorphism */
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 20px;
    border-radius: 18px;
    border: 1px solid rgba(255, 202, 40, 0.2);
    border-right: 4px solid #ffca28;
    text-align: right;
    white-space: pre-line;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    touch-action: pan-y;
    /* Prevent horizontal movement on text */
}

.vip-ribbon-container {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    /* Expand to window edges even if nested */
    overflow-x: auto;
    padding: 10px 0;
    /* Reduced */
    scrollbar-width: none;
    position: relative;
    /* Edge Fade Effect */
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    touch-action: pan-x;
    /* Allow horizontal swiping of the ribbon */
    overscroll-behavior-x: contain;
}

.vip-ribbon-container::-webkit-scrollbar {
    display: none;
}

.vip-ribbon {
    display: flex;
    gap: 12px;
    padding: 0 40px;
    /* Side padding to allow thumb centering */
    justify-content: flex-start;
    /* Important for scroll positioning */
    min-width: max-content;
}

.vip-thumb {
    width: 50px;
    /* Reduced */
    height: 50px;
    /* Reduced */
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: #222;
    overflow: hidden;
    filter: grayscale(100%) opacity(0.5);
    transition: all 0.4s ease;
    flex-shrink: 0;
}

.vip-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vip-thumb.active {
    filter: grayscale(0%) opacity(1);
    border-color: #ffca28;
    box-shadow: 0 0 10px rgba(255, 202, 40, 0.4);
    transform: scale(1.1);
}

.vip-footer-dates {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 5px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
}

.date-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
}

.date-label {
    color: rgba(255, 255, 255, 0.6);
}

.date-value {
    color: #ffca28;
    font-weight: 600;
}

/* --- REDEEMO STYLE VIP SCREEN --- */
#vip-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    height: 100dvh; /* The ultimate fix for half-hidden buttons on mobile browsers */
    /* Dark cinematic background for better gradient visibility */
    background: linear-gradient(180deg, #0f0005 0%, #1a0008 10%, #2e000f 50%, #4a0018 100%);
    z-index: 50;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
    overflow: hidden; /* ABSOLUTE CONTAINMENT: No scrolling allowed, everything must fit */
}

.vip-promo-banner {
    padding: 2px 10px; /* Aggressive vertical compaction */
    margin: 0; /* Aggressive vertical compaction */
    background: none; /* No frame */
    border: none;
    text-align: center;
    box-shadow: none;
    backdrop-filter: none;
    z-index: 10;
}

.vip-promo-title {
    font-size: 1.1rem;
    font-weight: 900;
    margin-bottom: 2px;
    background: linear-gradient(135deg, #ffcc00, #ff9933, #ff3333);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    letter-spacing: 0.5px;
    text-shadow: none !important;
    filter: none !important;
}

.vip-promo-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
    margin: 0;
    font-weight: 600;
}

.vip-price-tag {
    display: inline-flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    margin-top: 8px;
    padding: 6px 20px;
    background: linear-gradient(135deg, rgba(255, 204, 0, 0.15) 0%, rgba(255, 0, 51, 0.15) 100%);
    border: 1px solid rgba(255, 204, 0, 0.4);
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), inset 0 0 10px rgba(255, 204, 0, 0.1);
    position: relative;
    overflow: hidden;
}

/* Premium shine animation for the price tag */
.vip-price-tag::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: pricePremiumShine 3s infinite linear;
}

@keyframes pricePremiumShine {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

.old-price {
    text-decoration: line-through;
    color: rgba(255, 255, 255, 0.6); /* Better contrast */
    font-size: 0.95rem;
    font-weight: 500;
}

.new-price {
    color: #ffca2a; /* Sharp gold */
    font-weight: 950;
    font-size: 1.6rem; /* Crisp size */
    text-shadow: 0 0 15px rgba(255, 202, 42, 0.6);
    letter-spacing: 0.5px;
}

.redeemo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px; /* Aggressive vertical compaction */
    z-index: 10;
}

.redeemo-logo-text {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -1px;
}

.back-btn-minimal, .minimal-help-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.8;
}

#vip-screen .back-btn {
    background: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    backdrop-filter: blur(4px) !important;
}

#vip-screen .back-btn .back-icon {
    fill: #ffffff !important;
}

.vip-help-btn-glowing {
    background: linear-gradient(135deg, #ffcc00, #ff5500);
    border: 2px solid rgba(255, 204, 0, 0.6);
    border-radius: 50%;
    width: 36px; /* Scaled down */
    height: 36px; /* Scaled down */
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(255, 204, 0, 0.8);
    animation: helpPremiumGlow 1.5s infinite alternate;
    z-index: 100;
}

@keyframes helpPremiumGlow {
    0% { transform: scale(1); box-shadow: 0 0 10px rgba(255, 204, 0, 0.5); }
    100% { transform: scale(1.1); box-shadow: 0 0 25px rgba(255, 204, 0, 1); }
}
.vip-redeemo-carousel {
    width: 100%;
    flex: 1 1 0; /* CRITICAL: Take exactly remaining space, shrink if needed */
    min-height: 0; /* CRITICAL: Prevent flex blowouts */
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: transparent;
    overflow: hidden;
    margin: 0;
    /* Fix Safari transparent interpolation bug (white line) by using rgba(0,0,0,0) explicitly */
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 2%, rgba(0,0,0,1) 98%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 2%, rgba(0,0,0,1) 98%, rgba(0,0,0,0) 100%);
}

.vip-carousel-gradient-top,
.vip-carousel-gradient-bottom {
    display: none; /* Safely disable manual overlays */
}

.vip-carousel-track {
    display: flex;
    width: 1000%; /* 10 slides */
    height: 100%; /* CRITICAL: Fill carousel absolutely */
    transition: transform 0.4s ease-out;
    will-change: transform;
}

.vip-slide {
    width: 10%; /* exactly 1/10th of track, solving to 100% screen */
    height: 100%; /* CRITICAL: Fill track absolutely */
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    overflow: hidden;
}

.vip-content-controls {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 20;
    margin-top: 0;
    padding-bottom: 5px; /* Aggressive vertical compaction */
}





.vip-image-frame {
    width: 100%;
    height: 100%; /* CRITICAL: Must be bound */
    position: relative; /* Fix for Safari/tablet flex rounding bugs */
    display: block; /* Removed flex */
    overflow: hidden;
}

.vip-full-img {
    width: 100%; /* Never break width boundary */
    height: 100%; /* Never break height boundary */
    position: absolute; /* Bypass flex height issues entirely */
    top: 0;
    left: 0;
    object-fit: cover; /* FORCE images to touch the edges completely on phones */
    padding: 0;
    margin: 0;
    display: block;
}

/* Fix for Tablets/iPads to show full uncropped images without distortion */
@media (min-width: 768px) {
    .vip-full-img {
        object-fit: contain;
        background-color: transparent; /* Allow screen gradient to shine through seamlessly */
    }
}

/* Slide 1: Brand Grid */
.brand-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 15px;
    width: 100vw; /* Force touching edges */
    height: auto;
    aspect-ratio: 1/1; /* Native modern square binding */
}

.brand-item {
    width: 100%;
    height: 100%;
    border-radius: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.2rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.brand-item:hover {
    transform: scale(1.05);
}

/* Slide 2: QR Pass */
.qr-preview-container {
    position: relative;
    width: 100%;
    max-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.qr-card {
    background: #fff;
    padding: 25px;
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    color: #000;
    width: 220px;
    transform: rotate(-3deg);
}

.qr-brand-icon {
    font-size: 1.5rem;
    color: #7000ff;
}

.qr-code-img {
    font-size: 6rem;
    opacity: 0.9;
}

.qr-brand-name {
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.floating-benefit {
    position: absolute;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    color: #ffca28;
    border: 1px solid rgba(255,255,255,0.2);
    animation: float-vip 4s infinite ease-in-out;
}

.b1 { top: -20px; right: 0; animation-delay: 0s; }
.b2 { bottom: 20px; left: -20px; animation-delay: 2s; }

@keyframes float-vip {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Controls & Bottom Area */
.vip-content-controls {
    padding: 0 30px 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.pagination-dots {
    display: flex;
    gap: 8px;
    margin-bottom: 30px;
}

#vip-dots .dot {
    width: 8px;
    height: 8px;
    background: #ffffff !important;
    opacity: 0.8 !important;
    border-radius: 50% !important;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: none !important;
}

#vip-dots .dot.active {
    width: 20px;
    height: 8px;
    background: #ffffff !important;
    opacity: 1 !important;
    border-radius: 8px !important;
}

.vip-info-texts h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.2;
    color: #fff;
    font-family: 'Inter', sans-serif;
}

/* VIP Event Info Card Styles */
.vip-event-info-card {
    width: 85%;
    max-width: 350px;
    background: none; /* No frame */
    border: none;
    padding: 5px 10px; /* Aggressive vertical compaction */
    margin: 5px 0; /* Aggressive vertical compaction */
    backdrop-filter: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: none;
}

.vip-dates-section {
    width: 100%;
    margin-bottom: 8px;
}

.vip-date-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 0 5px;
}

.vip-date-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    font-weight: 600;
}

.vip-date-value {
    color: #ffcc00;
    font-size: 0.85rem;
    font-weight: 800;
    text-shadow: 0 0 5px rgba(255, 204, 0, 0.3);
}

.vip-countdown-timer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.timer-num {
    background: rgba(255, 153, 51, 0.1);
    color: #ffcc00;
    font-size: 1.1rem;
    font-weight: 900;
    padding: 4px 8px;
    border-radius: 0;
    min-width: 42px;
    text-align: center;
    border: 1px solid rgba(255, 153, 51, 0.2);
    font-family: 'Inter', sans-serif;
}

.timer-dot-sep {
    color: #ffcc00;
    font-weight: 900;
    font-size: 1.1rem;
}

.vip-offer-progress {
    width: 100%;
    margin-top: 2px;
}

.progress-track {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffcc00, #ff3333);
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(255, 204, 0, 0.4);
}

.vip-info-texts p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 35px;
    max-width: 280px;
}

.vip-action-footer {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.btn-redeemo-primary {
    width: 100%;
    max-width: 320px;
    background: #ffffff;
    color: #000000;
    border: none;
    padding: 18px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.btn-redeemo-primary:active {
    transform: scale(0.97);
}

.btn-vip-subscribe {
    background: linear-gradient(45deg, #ff00cc, #ff3333, #ff9933, #ffcc00);
    background-size: 200% 200%;
    animation: vipGradientShift 3s ease infinite;
    color: #ffffff;
    border: none;
    padding: 18px 50px;
    border-radius: 50px;
    font-size: 1.4rem;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(255, 51, 51, 0.4);
    width: 320px;
    max-width: 90vw;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes vipGradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.btn-vip-subscribe::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    transform: skewX(-20deg);
    animation: vipShine 4s infinite ease-in-out;
}

.btn-vip-subscribe:active {
    transform: scale(0.95);
    box-shadow: 0 4px 15px rgba(255, 51, 51, 0.4);
}

.btn-vip-subscribe span {
    color: #ffffff;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 2;
}

@keyframes vipShine {
    0% { left: -150%; }
    40% { left: 200%; }
    100% { left: 200%; }
}

.redeemo-sub-link {
    color: #7000ff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
}

/* --- Premium Settings View & Vivid Toggles --- */
#settings-screen {
    background: #0a0a0a;
    /* Deep matte black */
    z-index: 1100;
}

.settings-container {
    padding: 20px;
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.settings-group {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    padding: 5px 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.settings-group-title {
    padding: 15px 20px 5px 20px;
    font-size: 0.95rem;
    /* Apply primary gradient to titles */
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 800;
}

.settings-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.settings-item:last-child {
    border-bottom: none;
}

.settings-label {
    font-size: 1.15rem;
    color: #ffffff;
    /* Clean white */
    font-weight: 400;
    font-family: 'Outfit', sans-serif;
    opacity: 0.95;
}

/* Vivid Lexnor Toggle (No Glow) */
.lex-switch {
    position: relative;
    display: inline-block;
    width: 76px;
    height: 38px;
    cursor: pointer;
}

.lex-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.lex-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #222;
    /* Faded dark gray */
    transition: 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    border-radius: 38px;
    border: 2px solid #000;
}

.lex-slider:before {
    position: absolute;
    content: "";
    height: 30px;
    width: 30px;
    left: 2px;
    bottom: 2px;
    background-color: #ffffff;
    transition: 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

/* ON State - App Brand Gradient */
.lex-switch input:checked+.lex-slider {
    background: var(--primary-gradient);
    border-color: rgba(255, 255, 255, 0.2);
}

.lex-switch input:checked+.lex-slider:before {
    transform: translateX(38px);
}

/* Text Indicators */
.lex-slider:after {
    content: 'OFF';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.4);
    font-size: 11px;
    font-weight: 900;
    font-family: 'Inter', sans-serif;
}

.lex-switch input:checked+.lex-slider:after {
    content: 'ON';
    left: 12px;
    right: auto;
    color: #ffffff;
    /* Clean white contrast */
}

/* Hover/Active states without glow */
.lex-switch:hover .lex-slider {
    border-color: rgba(255, 255, 255, 0.2);
}

/* --- Admin Panel Styles Removed (Moved to lexnor-admin.html) --- */

/* --- Notifications UI Updates --- */
.notifications-list {
    display: flex;
    flex-direction: column;
}

.notification-item {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.notif-content {
    flex: 1;
}

.delete-notif-btn {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.2);
    color: #ff4444;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
}

.delete-notif-btn:hover {
    background: #ff4444;
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 68, 68, 0.3);
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item.unread {
    background: rgba(255, 202, 40, 0.05);
}

.notif-time {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 5px;
}

.notif-msg {
    color: #eee;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0;
}

/* --- Store Search Refined Styling (Direct Fix) --- */
#store-search-v2 {
    display: block !important;
    width: 200px !important;
    padding: 10px 15px !important;
    background-color: #0d040a !important;
    /* Solid Deep Dark Purple */
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: 20px !important;
    color: #ffffff !important;
    text-align: center !important;
    font-size: 0.95rem !important;
    line-height: normal !important;
    outline: none !important;
}

#store-search-v2:focus {
    border-color: #ffca28 !important;
    background-color: #1a0b12 !important;
}

/* Redundant Placeholder Enforcement */
#store-search-v2::placeholder {
    color: #ffffff !important;
    opacity: 1 !important;
    -webkit-text-fill-color: #ffffff !important;
}

#store-search-v2::-webkit-input-placeholder {
    color: #ffffff !important;
    opacity: 1 !important;
}

#store-search-v2:-ms-input-placeholder {
    color: #ffffff !important;
    opacity: 1 !important;
}

/* Autofill Masking */
#store-search-v2:-webkit-autofill,
#store-search-v2:-webkit-autofill:hover,
#store-search-v2:-webkit-autofill:focus,
#store-search-v2:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #0d040a inset !important;
    -webkit-text-fill-color: #ffffff !important;
    transition: background-color 5000s ease-in-out 0s !important;
}

/* --- VIP Purchase Modal Shatter Assemble Animation --- */
@keyframes shatterPiece1 {
    0% { opacity: 0; transform: translate(-300px, -200px) rotate(-180deg) scale(0); filter: blur(10px); }
    30% { opacity: 1; transform: translate(-50px, -50px) rotate(-45deg) scale(1.5); filter: blur(2px); }
    60% { opacity: 0; transform: translate(0, 0) rotate(0deg) scale(3); filter: blur(0); }
    100% { opacity: 0; }
}
@keyframes shatterPiece2 {
    0% { opacity: 0; transform: translate(300px, 200px) rotate(180deg) scale(0); filter: blur(10px); }
    30% { opacity: 1; transform: translate(50px, 50px) rotate(45deg) scale(1.5); filter: blur(2px); }
    60% { opacity: 0; transform: translate(0, 0) rotate(0deg) scale(3); filter: blur(0); }
    100% { opacity: 0; }
}

@keyframes modalAssemble {
    0% { 
        opacity: 0; 
        transform: scale(1.5) translateZ(100px) translateY(50px) rotate(-5deg); 
        filter: blur(15px) contrast(200%); 
        clip-path: polygon(20% 0%, 80% 20%, 100% 80%, 10% 100%); 
    }
    40% { 
        opacity: 0.8; 
        transform: scale(0.95) translateZ(0) translateY(-10px) rotate(2deg); 
        filter: blur(4px) contrast(120%); 
        clip-path: polygon(5% 5%, 95% 0%, 100% 95%, 0% 100%); 
        box-shadow: 0 0 100px rgba(255,204,0,0.8); 
    }
    70% { 
        transform: scale(1.02) translateY(0) rotate(0deg); 
        filter: blur(0px) contrast(100%); 
        clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%); 
        box-shadow: 0 0 40px rgba(255,204,0,0.5); 
    }
    100% { 
        opacity: 1; 
        transform: scale(1); 
        clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%); 
    }
}

#vip-help-modal.active .modal-content,
#charge-help-modal.active .modal-content {
    animation: modalAssemble 1.25s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
    position: relative;
    transform-style: preserve-3d;
    overflow: visible !important; /* Allow shards to fly out of the box */
}

#vip-help-modal.active .modal-content::before,
#vip-help-modal.active .modal-content::after,
#charge-help-modal.active .modal-content::before,
#charge-help-modal.active .modal-content::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 200px; height: 200px;
    background: linear-gradient(135deg, rgba(255,204,0,0.6), rgba(255,85,0,0.8));
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    pointer-events: none;
    z-index: 100;
    mix-blend-mode: screen;
}

#vip-help-modal.active .modal-content::before,
#charge-help-modal.active .modal-content::before {
    animation: shatterPiece1 1.25s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

#vip-help-modal.active .modal-content::after,
#charge-help-modal.active .modal-content::after {
    background: linear-gradient(45deg, rgba(255,255,255,0.8), rgba(255,204,0,0.6));
    animation: shatterPiece2 1.25s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

/* Hard edges and disable scrollbars for VIP & Charge Modals to prevent animation scroll glitches */
#vip-rules-modal,
#vip-help-modal,
#charge-help-modal {
    overflow: hidden !important;
    perspective: 1000px;
    touch-action: none; /* Block all touch interaction with background */
}

#vip-rules-modal .modal-content,
#vip-help-modal .modal-content,
#charge-help-modal .modal-content {
    border-radius: 0 !important;
    overflow: visible !important; /* Allow shards but ensure overlay clips them */
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

/* Force body lock when these specifically intense models are open */
body.modal-open-fix {
    overflow: hidden !important;
    height: 100dvh !important;
}

/* --- Professional Premium Dashboard (Vibrant Theme) --- */
.premium-dashboard {
    width: 100%;
    min-height: 100%;
    padding: 20px;
    padding-bottom: 80px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Header */
.premium-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: rgba(20, 20, 20, 0.4);
    backdrop-filter: blur(15px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 40px rgba(233, 30, 99, 0.15);
    position: relative;
    overflow: hidden;
}
.premium-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: linear-gradient(90deg, #ffca28, #ff5722, #e91e63, #9c27b0);
}
.premium-avatar-ring {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, #ffca28, #e91e63, #9c27b0);
    flex-shrink: 0;
    box-shadow: 0 0 20px rgba(233, 30, 99, 0.4);
}
.premium-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #111;
}
.premium-user-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 1;
}
.premium-username {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 900;
    background: linear-gradient(135deg, #fff, #ffe082);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.5px;
}
.premium-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.premium-badge {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.8rem;
    color: #ccc;
    display: flex;
    align-items: center;
    gap: 6px;
}
.premium-badge svg {
    width: 14px;
    height: 14px;
    stroke: #ffca28;
}

/* Balance */
.premium-balance-card {
    position: relative;
    background: linear-gradient(135deg, rgba(20,20,20,0.8), rgba(10,10,10,0.9));
    border-radius: 20px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 202, 40, 0.2);
    box-shadow: 0 10px 40px rgba(255, 202, 40, 0.05);
    text-align: center;
    overflow: hidden;
}
.premium-glow-bg {
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle at center, rgba(255, 202, 40, 0.1) 0%, transparent 60%);
    top: -25%; left: -25%;
    pointer-events: none;
}
.premium-balance-label {
    font-size: 0.95rem;
    color: #ffd54f;
    margin-bottom: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    z-index: 1;
}
.premium-balance-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 100%;
    flex-wrap: wrap;
    z-index: 1;
}
.premium-balance-icon {
    width: 45px;
    height: 45px;
    flex-shrink: 0;
    filter: drop-shadow(0 0 10px rgba(255,202,40,0.5));
}
.premium-balance-value {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
    font-weight: 900;
    background: linear-gradient(to bottom, #ffffff, #ffca28);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.5));
    word-break: break-all;
    overflow-wrap: anywhere;
    line-height: 1.2;
}

/* Stats */
.premium-stats-header {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
}
.premium-stats-line {
    flex-grow: 1;
    height: 1px;
    background: linear-gradient(to left, rgba(233, 30, 99, 0.5), transparent);
}
.premium-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.premium-stat-box {
    position: relative;
    background: rgba(20, 20, 20, 0.5);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    transition: transform 0.2s, background 0.2s;
    overflow: hidden;
}
.premium-stat-box::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, #ffca28, #e91e63);
    opacity: 0.5;
}
.premium-stat-box:active {
    transform: scale(0.98);
    background: rgba(30, 30, 30, 0.8);
}
.pro-icon-wrap {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 202, 40, 0.15), rgba(233, 30, 99, 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
    border: 1px solid rgba(255, 202, 40, 0.2);
}
.pro-icon {
    width: 24px;
    height: 24px;
    stroke: url(#lexnor-grad); /* Fallback */
}
/* For SVG strokes without defining a linearGradient in HTML, we can just use a bright color, but SVG stroke doesn't support CSS gradients directly without defs. Let's use a solid premium color */
.premium-stat-box:nth-child(1) .pro-icon { stroke: #ffca28; }
.premium-stat-box:nth-child(2) .pro-icon { stroke: #4fc3f7; }
.premium-stat-box:nth-child(3) .pro-icon { stroke: #ff5722; }
.premium-stat-box:nth-child(4) .pro-icon { stroke: #e91e63; }
.premium-stat-box:nth-child(5) .pro-icon { stroke: #ba68c8; }

.premium-stat-label {
    font-size: 0.85rem;
    color: #aaa;
}
.premium-stat-value {
    font-size: 1.4rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}
.premium-stat-box.full-width {
    grid-column: span 2;
    flex-direction: row;
    justify-content: flex-start;
    padding: 20px 25px;
}
.premium-stat-box.full-width .pro-icon-wrap {
    margin-bottom: 0;
    margin-left: 20px;
}
.premium-stat-box.full-width .stat-flex {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: right;
}

/* --- Lexnor Lookbook Section --- */
#lookbook-screen {
    background: radial-gradient(circle at center, #2b111e, #000000);
    width: 100%;
    height: 100vh;
    overflow-y: auto;
    padding: 0 !important;
    padding-bottom: 80px !important;
}

.lookbook-grid {
    column-count: 2;
    column-gap: 15px;
    padding: 15px;
    margin-top: 10px;
}

.lookbook-item {
    break-inside: avoid;
    margin-bottom: 15px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: #1a1a20;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    cursor: pointer;
    transition: transform 0.2s;
    min-height: 200px;
    animation: fadeInLookbook 0.5s ease-out;
}

@keyframes fadeInLookbook {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.lookbook-item:active {
    transform: scale(0.97);
}

.lookbook-item img {
    width: 100%;
    display: block;
    object-fit: cover;
    border-radius: 12px;
}

.lookbook-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    padding: 20px 10px 10px;
    color: white;
    font-size: 0.85rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.loading-skeleton {
    background: linear-gradient(90deg, #222 25%, #333 50%, #222 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* --- Lookbook Zoom Modal --- */
.zoom-modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(10px);
}

.zoom-modal.active {
    opacity: 1;
}

.zoom-content-wrapper {
    position: relative;
    max-width: 95vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.zoom-modal.active .zoom-content-wrapper {
    transform: scale(1);
}

#lookbook-zoom-img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    object-fit: contain;
}

.zoom-close-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    right: auto;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.zoom-action-bar {
    margin-top: 15px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.buy-similar-btn {
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    color: #000;
    border: none;
    padding: 12px 25px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* --- Lookbook Categories --- */
.lookbook-categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 15px;
    width: 100%;
    box-sizing: border-box;
    background: transparent;
    margin-bottom: 5px;
}

.lookbook-categories::-webkit-scrollbar {
    display: none;
}

.category-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 12px 5px;
    border-radius: 0px !important; /* Perfectly square */
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease-in-out;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    outline: none;
}

.category-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.category-pill.active {
    background: linear-gradient(135deg, #ffd700, #ff8c00) !important;
    color: #000 !important;
    border-color: transparent !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.25) !important;
}