/* Hide desktop elements by default (mobile-first approach) */
.desktop-sidebar,
.desktop-main,
.desktop-content {
    display: none;
}

/* Desktop Bento Style - only for screens > 768px */
@media (min-width: 769px) {
    /* Desktop scale 120% */
    body {
        zoom: 1.0;
    }


    /* Hide mobile navigation */
    .bottom-nav {
        display: none !important;
    }

    /* App container */
    #app {
        display: flex;
        min-height: 100vh;
        background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 50%, #16213e 100%);
    }

    /* Sidebar navigation */
    .desktop-sidebar {
        width: 240px;
        min-width: 240px;
        background: rgba(20, 20, 35, 0.95);
        backdrop-filter: blur(20px);
        border-right: 1px solid rgba(var(--primary-rgb), 0.2);
        padding: 16px;
        display: flex;
        flex-direction: column;
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        z-index: 100;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Custom scrollbar for sidebar */
    .desktop-sidebar::-webkit-scrollbar {
        width: 6px;
    }
    .desktop-sidebar::-webkit-scrollbar-track {
        background: rgba(255,255,255,0.05);
        border-radius: 3px;
    }
    .desktop-sidebar::-webkit-scrollbar-thumb {
        background: rgba(var(--primary-rgb), 0.3);
        border-radius: 3px;
    }
    .desktop-sidebar::-webkit-scrollbar-thumb:hover {
        background: rgba(var(--primary-rgb), 0.5);
    }

    .desktop-sidebar .sidebar-logo {
        display: flex;
        justify-content: center;
        margin-bottom: 32px;
        padding: 0;
    }

    .desktop-sidebar .sidebar-logo-box {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        padding: 20px 32px;
        background: none;
        border: none;
        border-radius: 0;
    }

    .desktop-sidebar .sidebar-logo img {
        width: 78px;
        height: 78px;
        filter: drop-shadow(0 0 15px rgba(var(--primary-rgb), 0.5));
    }

    .desktop-sidebar .sidebar-logo h1 {
        font-size: 22px;
        font-weight: 800;
        background: linear-gradient(135deg, var(--primary), var(--accent-pink));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        letter-spacing: 1px;
        margin: 0;
    }

    .desktop-sidebar .sidebar-user {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 16px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 16px;
        margin-bottom: 24px;
    }

    .desktop-sidebar .sidebar-user-avatar {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--primary), var(--accent-pink));
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 15px;
        font-weight: 700;
        color: white;
    }

    .desktop-sidebar .sidebar-user-info {
        flex: 1;
    }

    .desktop-sidebar .sidebar-user-name {
        font-weight: 600;
        color: white;
        font-size: 14px;
    }

    .desktop-sidebar .sidebar-user-username {
        color: rgba(255, 255, 255, 0.5);
    }

    .desktop-sidebar .sidebar-nav {
        
    }

    .desktop-sidebar .nav-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px 16px;
        border-radius: 12px;
        color: rgba(255, 255, 255, 0.7);
        cursor: pointer;
        transition: all 0.2s;
        margin-bottom: 4px;
        font-size: 14px;
        font-weight: 500;
    }

    .desktop-sidebar .nav-item:hover {
        background: rgba(var(--primary-rgb), 0.15);
        color: white;
    }

    .desktop-sidebar .nav-item.active {
        background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.3), rgba(var(--accent-pink-rgb), 0.2));
        color: white;
        font-weight: 600;
    }

    .desktop-sidebar .nav-item svg {
        width: 20px;
        height: 20px;
        fill: currentColor;
    }

    .desktop-sidebar .sidebar-footer {
        margin-top: 0;
        padding-top: 16px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .desktop-sidebar .battery-mini {
        padding: 16px;
        background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(34, 197, 94, 0.05));
        border-radius: 16px;
        margin-bottom: 12px;
    }

    .desktop-sidebar .battery-mini-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 8px;
    }

    .desktop-sidebar .battery-mini-label {
        color: rgba(255, 255, 255, 0.7);
    }

    .desktop-sidebar .battery-mini-value {
        font-size: 14px;
        font-weight: 700;
        color: #22C55E;
    }

    .desktop-sidebar .battery-mini-bar {
        height: 6px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 3px;
        overflow: hidden;
    }

    .desktop-sidebar .battery-mini-fill {
        height: 100%;
        background: linear-gradient(90deg, #22C55E, #16A34A);
        border-radius: 3px;
        transition: width 0.3s;
    }

    /* Main content area */
    .desktop-main {
        display: block;
        flex: 1;
        margin-left: 240px;
        padding: 32px;
        overflow-y: auto;
    }

    /* Hide mobile screens, show desktop content */
    .screen, .screen.active {
        display: none !important;
    }

    .desktop-content {
        display: block !important;
    }

    /* Bento Grid */
    .bento-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        max-width: 1200px;
        margin: 0 auto;
    }

    .bento-card {
        background: rgba(20, 20, 35, 0.8);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(var(--primary-rgb), 0.2);
        border-radius: 24px;
        padding: 16px;
        transition: all 0.3s;
    }

    .bento-card:hover {
        transform: translateY(-4px);
        border-color: rgba(var(--primary-rgb), 0.4);
        box-shadow: 0 20px 40px rgba(var(--primary-rgb), 0.15);
    }

    .bento-card.large {
        grid-column: span 2;
    }

    .bento-card.tall {
        grid-row: span 2;
    }

    .bento-card.full {
        grid-column: span 3;
    }

    .bento-card-header {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 20px;
    }

    .bento-card-icon {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 24px;
    }

    .bento-card-icon.purple {
        background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.3), rgba(var(--primary-rgb), 0.1));
    }

    .bento-card-icon.pink {
        background: linear-gradient(135deg, rgba(var(--accent-pink-rgb), 0.3), rgba(var(--accent-pink-rgb), 0.1));
    }

    .bento-card-icon.green {
        background: linear-gradient(135deg, rgba(34, 197, 94, 0.3), rgba(34, 197, 94, 0.1));
    }

    .bento-card-icon.blue {
        background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(59, 130, 246, 0.1));
    }

    .bento-card-title {
        font-size: 18px;
        font-weight: 700;
        color: white;
    }

    .bento-card-subtitle {
        font-size: 13px;
        color: rgba(255, 255, 255, 0.5);
    }

    /* Packages Grid in Bento - 2 rows horizontal scroll */
    .bento-packages-grid {
        display: grid;
        justify-content: center;
        grid-template-columns: repeat(4, minmax(140px, 220px));
        grid-template-rows: repeat(3, auto);
        grid-auto-flow: row;
        gap: 12px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 8px;
        scrollbar-width: thin;
        scrollbar-color: rgba(var(--primary-rgb), 0.3) rgba(255, 255, 255, 0.05);
    }
    
    .bento-packages-grid::-webkit-scrollbar {
        height: 6px;
    }
    
    .bento-packages-grid::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 3px;
    }
    
    .bento-packages-grid::-webkit-scrollbar-thumb {
        background: rgba(var(--primary-rgb), 0.3);
        border-radius: 3px;
    }

    .bento-package {
        position: relative;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 16px;
        padding: 16px;
        text-align: center;
        cursor: pointer;
        transition: all 0.2s;
        scroll-snap-align: start;
        min-width: 80px;
    }

    .bento-package:hover {
        background: rgba(var(--primary-rgb), 0.2);
        border-color: rgba(var(--primary-rgb), 0.4);
        transform: scale(1.02);
    }

    .bento-package.selected {
        background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.3), rgba(var(--accent-pink-rgb), 0.2));
        border-color: var(--primary);
    }

    .bento-package-emoji {
        font-size: 28px;
        margin-bottom: 8px;
    }

    .bento-package-stars {
        font-size: 18px;
        font-weight: 700;
        color: white;
        margin-bottom: 4px;
    }

    .bento-package-price {
        font-size: 14px;
        color: #22C55E;
        font-weight: 600;
    }

    .bento-package-price-old {
        font-size: 12px;
        color: rgba(255, 255, 255, 0.4);
        text-decoration: line-through;
    }

    .bento-package-badge {
        position: absolute;
        top: -8px;
        right: -8px;
        background: linear-gradient(135deg, var(--accent-pink), var(--primary));
        color: white;
        font-size: 15px;
        font-weight: 600;
        padding: 4px 8px;
        
        border-radius: 8px;
        white-space: nowrap;
    }

    /* Stats in Bento */
    .bento-stats {
        display: flex;
        gap: 24px;
    }

    .bento-stat {
        flex: 1;
        text-align: center;
        padding: 20px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 16px;
    }

    .bento-stat-value {
        font-size: 32px;
        font-weight: 800;
        background: linear-gradient(135deg, var(--primary), var(--accent-pink));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .bento-stat-label {
        font-size: 13px;
        color: rgba(255, 255, 255, 0.6);
        margin-top: 4px;
    }

    /* Purchase Form in Bento */
    .bento-purchase-form {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .bento-input-group {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .bento-input-label {
        font-size: 13px;
        color: rgba(255, 255, 255, 0.7);
        font-weight: 500;
    }

    .bento-input {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        padding: 14px 16px;
        color: white;
        font-size: 14px;
        transition: all 0.2s;
    }

    .bento-input:focus {
        outline: none;
        border-color: var(--primary);
        background: rgba(var(--primary-rgb), 0.1);
    }

    .bento-btn {
        background: linear-gradient(135deg, var(--primary), var(--accent-pink));
        border: none;
        border-radius: 12px;
        padding: 16px 24px;
        color: white;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s;
    }

    .bento-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 20px rgba(var(--primary-rgb), 0.3);
    }

    .bento-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        transform: none;
    }

    /* Deals List in Bento */
    .bento-deals-list {
        display: flex;
        flex-direction: column;
        gap: 12px;
        max-height: 400px;
        overflow-y: auto;
    }

    .bento-deal {
        display: flex;
        align-items: center;
        gap: 16px;
        padding: 16px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 12px;
        cursor: pointer;
        transition: all 0.2s;
    }

    .bento-deal:hover {
        background: rgba(var(--primary-rgb), 0.15);
    }

    .bento-deal-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
    }

    .bento-deal-icon.completed {
        background: rgba(34, 197, 94, 0.2);
    }

    .bento-deal-icon.pending {
        background: rgba(var(--star-color-rgb), 0.2);
    }

    .bento-deal-icon.failed {
        background: rgba(var(--error-rgb), 0.2);
    }

    .bento-deal-info {
        flex: 1;
    }

    .bento-deal-stars {
        font-weight: 600;
        color: white;
    }

    .bento-deal-date {
        color: rgba(255, 255, 255, 0.5);
    }

    .bento-deal-price {
        font-weight: 600;
        color: #22C55E;
    }

    /* Referral Card */
    .bento-referral-code {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 16px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 12px;
        margin-bottom: 16px;
    }

    .bento-referral-code-value {
        flex: 1;
        font-size: 24px;
        font-weight: 800;
        font-family: monospace;
        color: white;
        letter-spacing: 2px;
    }

    .bento-copy-btn {
        padding: 10px 16px;
        background: linear-gradient(135deg, var(--primary), var(--accent-pink));
        border: none;
        border-radius: 8px;
        color: white;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s;
    }

    .bento-copy-btn:hover {
        transform: scale(1.05);
    }

    .bento-referral-stats {
        display: flex;
        gap: 16px;
    }

    .bento-referral-stat {
        flex: 1;
        text-align: center;
        padding: 16px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 12px;
    }

    .bento-referral-stat-value {
        font-size: 24px;
        font-weight: 700;
        color: var(--primary);
    }

    .bento-referral-stat-label {
        color: rgba(255, 255, 255, 0.5);
    }

    /* Battery Widget Desktop */
    .bento-battery {
        padding: 20px;
        background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(34, 197, 94, 0.05));
        border-radius: 16px;
    }

    .bento-battery-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 12px;
    }

    .bento-battery-label {
        font-size: 14px;
        color: rgba(255, 255, 255, 0.7);
    }

    .bento-battery-percent {
        font-size: 15px;
        font-weight: 700;
        color: #22C55E;
    }

    .bento-battery-bar {
        height: 12px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 6px;
        overflow: hidden;
        margin-bottom: 16px;
    }

    .bento-battery-fill {
        height: 100%;
        background: linear-gradient(90deg, #22C55E, #16A34A);
        border-radius: 6px;
        transition: width 0.5s;
    }

    .bento-battery-btn {
        width: 100%;
        padding: 12px;
        background: linear-gradient(135deg, #22C55E, #16A34A);
        border: none;
        border-radius: 10px;
        color: white;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s;
    }

    .bento-battery-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 20px rgba(34, 197, 94, 0.3);
    }

    .bento-battery-btn:disabled {
        opacity: 0.5;
        background: rgba(255, 255, 255, 0.1);
        cursor: not-allowed;
    }

    /* Active discount banner */
    .bento-discount-banner {
        padding: 16px;
        background: linear-gradient(135deg, rgba(34, 197, 94, 0.3), rgba(34, 197, 94, 0.1));
        border: 1px solid rgba(34, 197, 94, 0.3);
        border-radius: 12px;
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 16px;
    }

    .bento-discount-banner-icon {
        font-size: 24px;
    }

    .bento-discount-banner-text {
        flex: 1;
    }

    .bento-discount-banner-title {
        font-weight: 600;
        color: #22C55E;
    }

    .bento-discount-banner-desc {
        color: rgba(255, 255, 255, 0.6);
    }

    /* Scrollbar styling */
    .desktop-main::-webkit-scrollbar,
    .bento-deals-list::-webkit-scrollbar {
        width: 8px;
    }

    .desktop-main::-webkit-scrollbar-track,
    .bento-deals-list::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 4px;
    }

    .desktop-main::-webkit-scrollbar-thumb,
    .bento-deals-list::-webkit-scrollbar-thumb {
        background: rgba(var(--primary-rgb), 0.3);
        border-radius: 4px;
    }

    .desktop-main::-webkit-scrollbar-thumb:hover,
    .bento-deals-list::-webkit-scrollbar-thumb:hover {
        background: rgba(var(--primary-rgb), 0.5);
    }

    /* Hide header on desktop */
    .app-header {
        display: none !important;
    }

    .screen-header {
        display: none !important;
    }

    /* Hide floating stars on desktop */
    .floating-stars {
        opacity: 0.3;
    }
}

/* Large desktop */
@media (min-width: 1400px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 1400px;
    }

    .bento-card.full {
        grid-column: span 4;
    }

    .bento-packages-grid {
        grid-auto-columns: minmax(160px, 200px);
    }
}

/* New Main Layout */
.bento-grid-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bento-full {
    width: 100%;
}

.bento-row {
    display: flex;
    gap: 20px;
    width: 100%;
}

.bento-wide {
    flex: 4;
    min-width: 0;
}

.bento-narrow {
    flex: 1;
    min-width: 240px;
    max-width: 280px;
}

/* Custom form horizontal layout */
.bento-custom-form {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 0;
}

.bento-custom-input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 16px;
}

.bento-custom-input-wrap .bento-input {
    flex: 1;
    max-width: 200px;
}

.bento-custom-price {
    font-size: 24px;
    font-weight: 700;
    color: #22C55E;
    min-width: 100px;
}

.bento-custom-form .bento-btn {
    padding: 14px 32px;
    white-space: nowrap;
}

/* Compact Battery with Circle */
.bento-battery-compact {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    gap: 12px;
}

.bento-battery-circle {
    position: relative;
    width: 100px;
    height: 100px;
}

.bento-battery-circle svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.bento-battery-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 3;
}

.bento-battery-progress {
    fill: none;
    stroke: url(#batteryGradient);
    stroke-width: 3;
    stroke-linecap: round;
    transition: stroke-dasharray 0.5s ease;
}

.bento-battery-circle::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(var(--success-rgb), 0.05));
    border-radius: 50%;
}

.bento-battery-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 22px;
    font-weight: 700;
    color: #22C55E;
}

.bento-battery-btn-sm {
    width: 100%;
    padding: 10px 16px;
    background: linear-gradient(135deg, #22C55E, var(--success));
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.bento-battery-btn-sm:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
    cursor: not-allowed;
}

.bento-battery-btn-sm:not(:disabled):hover {
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.3);
}

/* Responsive for narrower desktop */
@media (max-width: 1100px) {
    .bento-row {
        flex-direction: column;
    }
    
    .bento-narrow {
        max-width: none;
    }
    
    .bento-battery-compact {
        flex-direction: row;
        justify-content: center;
    }
    
    .bento-battery-circle {
        width: 80px;
        height: 80px;
    }
    
    .bento-battery-btn-sm {
        width: auto;
        padding: 10px 24px;
    }
}

/* Starry background for desktop */
.desktop-main::before {
    content: '';
    position: fixed;
    top: 0;
    left: 200px;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 0%, rgba(var(--primary-rgb), 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 0%, rgba(var(--accent-pink-rgb), 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 100%, rgba(6, 182, 212, 0.08) 0%, transparent 50%),
        radial-gradient(1.5px 1.5px at 10% 10%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1.5px 1.5px at 20% 25%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(2px 2px at 30% 5%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1.5px 1.5px at 40% 35%, rgba(255, 255, 255, 0.65), transparent),
        radial-gradient(2px 2px at 50% 15%, rgba(255, 255, 255, 0.85), transparent),
        radial-gradient(1.5px 1.5px at 60% 45%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(2.5px 2.5px at 70% 20%, rgba(var(--star-color-rgb), 0.9), transparent),
        radial-gradient(1.5px 1.5px at 80% 55%, rgba(255, 255, 255, 0.65), transparent),
        radial-gradient(2px 2px at 90% 30%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1.5px 1.5px at 15% 60%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(2.5px 2.5px at 25% 75%, rgba(var(--star-color-rgb), 0.85), transparent),
        radial-gradient(1.5px 1.5px at 35% 50%, rgba(255, 255, 255, 0.65), transparent),
        radial-gradient(2px 2px at 45% 85%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1.5px 1.5px at 55% 65%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1.5px 1.5px at 65% 95%, rgba(255, 255, 255, 0.65), transparent),
        radial-gradient(2.5px 2.5px at 75% 70%, rgba(var(--star-color-rgb), 0.9), transparent),
        radial-gradient(1.5px 1.5px at 85% 80%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(2px 2px at 95% 60%, rgba(255, 255, 255, 0.8), transparent),
        linear-gradient(135deg, var(--bg-dark) 0%, #1a1a2e 50%, var(--bg-dark) 100%);
    pointer-events: none;
    z-index: -1;
    animation: bgPulse 8s ease-in-out infinite;
}

@keyframes bgPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

.desktop-main {
    position: relative;
    background: transparent;
}

/* Custom Amount Block Styles */
.bento-custom-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bento-quick-amounts {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.quick-amount-btn {
    padding: 8px 16px;
    background: rgba(var(--primary-rgb), 0.15);
    border: 1px solid rgba(var(--primary-rgb), 0.3);
    border-radius: 20px;
    color: var(--primary-light);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.quick-amount-btn:hover {
    background: rgba(var(--primary-rgb), 0.25);
    border-color: rgba(var(--primary-rgb), 0.5);
    transform: translateY(-1px);
}

.quick-amount-btn:active {
    transform: translateY(0);
}

.custom-input-group {
    position: relative;
    flex: 1;
}

.custom-stars-input {
    padding-right: 40px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
}

.input-suffix {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    opacity: 0.7;
}

.custom-price-display {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    min-width: 150px;
}

.price-main {
    font-size: 28px;
    font-weight: 800;
    color: #22C55E;
    line-height: 1;
}

.price-details {
    display: flex;
    gap: 12px;
    font-size: 12px;
}

.price-per-star {
    color: rgba(255, 255, 255, 0.6);
}

.price-savings {
    color: #22C55E;
    font-weight: 600;
    background: rgba(34, 197, 94, 0.15);
    padding: 2px 8px;
    border-radius: 10px;
}

.custom-buy-btn {
    min-width: 80px;
    font-size: 16px !important;
}

/* Updated bento-custom-form layout */
@media (min-width: 769px) {
    /* Desktop scale 120% */
    body {
        zoom: 1.0;
    }

    }

    .bento-custom-form {
        display: flex;
        align-items: center;
        gap: 20px;
    }
    
    .bento-custom-input-wrap {
        flex: 1;
        display: flex;
        align-items: center;
        gap: 20px;
    }
}

@media (max-width: 1000px) {
    .bento-custom-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .bento-custom-input-wrap {
        flex-direction: column;
        gap: 12px;
    }
    
    .custom-price-display {
        align-items: center;
    }
    
    .custom-buy-btn {
        width: 100%;
    }
}

/* Username input inside destination button */
.destination-username-input {
    width: 100%;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.destination-username-input .bento-input {
    flex: 1;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(var(--primary-rgb), 0.3);
    border-radius: 10px;
    color: white;
    font-size: 14px;
}

.destination-username-input .bento-input:focus {
    outline: none;
    border-color: rgba(var(--primary-rgb), 0.6);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.destination-btn {
    flex-direction: column;
    align-items: flex-start;
}

.destination-btn > .destination-icon {
    position: absolute;
    left: 16px;
    top: 16px;
}

.destination-btn {
    position: relative;
    padding-left: 78px;
}

/* ===== PACKAGES + CUSTOM ROW LAYOUT ===== */
.bento-row-packages {
    display: flex;
    gap: 20px;
    width: 100%;
    align-items: stretch;
}

.bento-packages-70 {
    flex: 0 0 70%;
    max-width: 70%;
}

.bento-custom-30 {
    max-width: calc(30% - 20px);
    display: flex;
    flex-direction: column;
}

.bento-custom-30 .bento-custom-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 0;
}

.bento-custom-30 .bento-custom-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.bento-custom-30 .bento-custom-input-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.bento-custom-30 .custom-input-group {
    width: 100%;
    max-width: 200px;
}

.bento-custom-30 .custom-input-group input {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    padding: 16px 20px;
}

.bento-custom-30 .input-suffix {
    font-size: 15px;
}

.bento-custom-30 .custom-price-display {
    text-align: center;
    padding: 16px 24px;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.15), rgba(var(--accent-pink-rgb), 0.1));
    border-radius: 16px;
    border: 1px solid rgba(var(--primary-rgb), 0.2);
}

.bento-custom-30 .price-main {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

.bento-custom-30 .price-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bento-custom-30 .price-per-star {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.bento-custom-30 .price-savings {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, #22C55E, var(--success));
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: white;
}

.bento-custom-30 .custom-buy-btn {
    width: 100%;
    max-width: 200px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 700;
}

/* Fix package badges overflow - only for wide desktop */
@media (min-width: 1001px) {
    .bento-packages-grid {
        overflow: visible !important;
        padding-top: 20px !important;
        margin-top: -10px;
    }
    
    .bento-packages-70 {
        overflow: visible;
    }
    
    .bento-card.bento-packages-70 {
        overflow: visible;
    }
}

.bento-package {
    position: relative;
    overflow: visible;
}

.bento-package-badge {
    position: absolute;
    top: -10px;
    right: -5px;
    z-index: 10;
}

/* ===== PACKAGE TIER BACKGROUNDS ===== */
/* Normal tier - default dark */
.bento-package.tier-normal {
    background: linear-gradient(135deg, rgba(40, 40, 60, 0.8), rgba(30, 30, 50, 0.9));
    border-color: rgba(100, 100, 140, 0.3);
}

/* Epic tier - purple gradient */
.bento-package.tier-epic {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.25), rgba(88, 28, 135, 0.4));
    border-color: rgba(var(--primary-rgb), 0.5);
}
.bento-package.tier-epic:hover {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.35), rgba(88, 28, 135, 0.5));
    border-color: rgba(var(--primary-rgb), 0.7);
}

/* Legendary tier - gold gradient */
.bento-package.tier-legendary {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(184, 134, 11, 0.35));
    border-color: rgba(255, 215, 0, 0.5);
}
.bento-package.tier-legendary:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(184, 134, 11, 0.45));
    border-color: rgba(255, 215, 0, 0.7);
}

/* Special badges colors */
.bento-package-badge.badge-hit {
    background: linear-gradient(135deg, var(--accent-pink), #F97316);
}
.bento-package-badge.badge-best {
    background: linear-gradient(135deg, #3B82F6, #06B6D4);
}
.bento-package-badge.badge-epic {
    background: linear-gradient(135deg, var(--primary), #A855F7);
}
.bento-package-badge.badge-legendary {
    background: linear-gradient(135deg, var(--accent-orange), var(--star-color));
    color: #1a1a2e;
}
.bento-package-badge.badge-deal {
    background: linear-gradient(135deg, #22C55E, var(--success));
}

/* Admin-configurable badge colors */
.bento-package-badge.badge-blue {
    background: linear-gradient(135deg, #3B82F6, #1D4ED8);
}
.bento-package-badge.badge-purple {
    background: linear-gradient(135deg, #8B5CF6, #6D28D9);
}
.bento-package-badge.badge-red {
    background: linear-gradient(135deg, #EF4444, #DC2626);
}
.bento-package-badge.badge-yellow {
    background: linear-gradient(135deg, #FBBF24, #F59E0B);
    color: #1a1a2e;
}
.bento-package-badge.badge-orange {
    background: linear-gradient(135deg, #F97316, #EA580C);
}
.bento-package-badge.badge-green {
    background: linear-gradient(135deg, #22C55E, #16A34A);
}
.bento-package-badge.badge-pink {
    background: linear-gradient(135deg, #EC4899, #DB2777);
}
.bento-package-badge.badge-cyan {
    background: linear-gradient(135deg, #06B6D4, #0891B2);
}

/* ===== BATTERY INFO SECTION IN SIDEBAR ===== */
.desktop-sidebar .battery-info-section {
    margin-top: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}
.desktop-sidebar .battery-info-section h4 {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.desktop-sidebar .battery-info-item {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
}
.desktop-sidebar .battery-info-value {
    color: #22C55E;
    font-weight: 600;
}
.desktop-sidebar .battery-info-group {
    margin-bottom: 10px;
}
.desktop-sidebar .battery-info-group h5 {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 6px;
    font-weight: 600;
}
.desktop-sidebar .battery-prizes {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.desktop-sidebar .battery-prizes h5 {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 6px;
}
.desktop-sidebar .battery-prize-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 0;
    font-size: 11px;
}

/* ===== DEAL DETAILS PANEL ===== */
.bento-deal-details {
    margin-top: 8px;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1), rgba(var(--accent-pink-rgb), 0.05));
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    border-radius: 16px;
    display: none !important;
}
.bento-deal-details.visible {
    display: block !important;
    animation: slideUp 0.3s ease;
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.bento-deal-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.bento-deal-details-title {
    font-size: 18px;
    font-weight: 700;
    color: white;
}
.bento-deal-details-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bento-deal-details-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.bento-deal-details-row:last-child {
    border-bottom: none;
}
.bento-deal-details-label {
    color: rgba(255, 255, 255, 0.6);
}
.bento-deal-details-value {
    color: white;
    font-weight: 600;
}
.bento-deal-details-value.status-completed {
    color: #22C55E;
}
.bento-deal-details-value.status-pending {
    color: var(--star-color);
}
.bento-deal-details-value.status-failed {
    color: var(--error);
}


.bento-custom-30::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(var(--primary-rgb), 0.6), rgba(var(--accent-pink-rgb), 0.6), transparent);
}

.bento-custom-30 .bento-custom-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px 16px;
}

.bento-custom-30 .bento-custom-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.bento-custom-30 .bento-custom-input-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.bento-custom-30 .custom-input-group {
    width: 100%;
    max-width: 220px;
    position: relative;
}

.bento-custom-30 .custom-input-group input {
    width: 100%;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    padding: 16px 45px 16px 20px;
    background: rgba(15, 10, 30, 0.8);
    border: 2px solid rgba(var(--primary-rgb), 0.3);
    border-radius: 16px;
    color: #fff;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.bento-custom-30 .custom-input-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-size: 15px;
    font-weight: 500;
}

.bento-custom-30 .custom-input-group input:focus {
    outline: none;
    border-color: rgba(var(--primary-rgb), 0.7);
    box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.3), inset 0 0 20px rgba(var(--primary-rgb), 0.05);
}

.bento-custom-30 .custom-input-group input:not(:placeholder-shown) {
    border-color: rgba(var(--primary-rgb), 0.5);
    background: rgba(var(--primary-rgb), 0.08);
}

.bento-custom-30 .input-suffix {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    pointer-events: none;
    opacity: 0.8;
}

.bento-custom-30 .custom-price-display {
    text-align: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.12), rgba(var(--accent-pink-rgb), 0.08));
    border-radius: 16px;
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    width: 100%;
    max-width: 220px;
    box-sizing: border-box;
    animation: fadeInUp 0.3s ease;
}

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

.bento-custom-30 .price-main {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent-pink), var(--accent-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.bento-custom-30 .price-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
}

.bento-custom-30 .price-per-star {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.bento-custom-30 .price-savings {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, #22C55E, var(--success));
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: white;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.bento-custom-30 .custom-buy-btn {
    width: 100%;
    max-width: 220px;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--accent-pink));
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
    text-transform: none;
}

.bento-custom-30 .custom-buy-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(var(--primary-rgb), 0.4);
}

.bento-custom-30 .custom-buy-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.4), rgba(var(--accent-pink-rgb), 0.4));
    box-shadow: none;
}

.bento-custom-30 .custom-buy-btn:not(:disabled) {
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
    }
    50% {
        box-shadow: 0 4px 25px rgba(var(--primary-rgb), 0.5), 0 0 40px rgba(var(--accent-pink-rgb), 0.2);
    }
}

/* Quick amount buttons */
.bento-custom-30 .quick-amounts {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 4px;
}

.bento-custom-30 .quick-amount-btn {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(var(--primary-rgb), 0.15);
    border: 1px solid rgba(var(--primary-rgb), 0.3);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.2s ease;
}

.bento-custom-30 .quick-amount-btn:hover {
    background: rgba(var(--primary-rgb), 0.3);
    border-color: rgba(var(--primary-rgb), 0.5);
    color: white;
}
/* ===== COMPLETELY NEW CUSTOM AMOUNT CARD ===== */
.bento-custom-30 {
    flex: 0 0 calc(30% - 20px);
    max-width: calc(30% - 20px);
    display: flex;
    flex-direction: column;
    background: radial-gradient(ellipse at top, rgba(var(--primary-rgb), 0.15) 0%, transparent 50%),
                linear-gradient(180deg, rgba(20, 15, 40, 0.98) 0%, rgba(15, 10, 30, 0.99) 100%) !important;
    border: 1px solid rgba(var(--primary-rgb), 0.2) !important;
    position: relative;
    overflow: hidden;
}

.bento-custom-30 .bento-card-header {
    padding-bottom: 0;
}

.bento-custom-30 .bento-custom-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0 20px 20px;
}

.bento-custom-30 .bento-custom-form {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Main input area with large star display */
.bento-custom-30 .custom-input-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
}

.bento-custom-30 .star-input-display {
    position: relative;
    width: 100%;
    max-width: 200px;
    margin-bottom: 16px;
}

.bento-custom-30 .star-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bento-custom-30 .star-icon-big {
    font-size: 48px;
    margin-bottom: 12px;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.5));
    animation: floatStar 3s ease-in-out infinite;
}

@keyframes floatStar {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-5px) scale(1.05); }
}

.bento-custom-30 .custom-main-input {
    width: 100%;
    text-align: center;
    font-size: 36px;
    font-weight: 800;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-bottom: 3px solid rgba(var(--primary-rgb), 0.4);
    color: #fff;
    outline: none;
    transition: all 0.3s ease;
    letter-spacing: -1px;
}

.bento-custom-30 .custom-main-input::placeholder {
    color: rgba(255, 255, 255, 0.25);
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -1px;
}

/* Hide number input spinner arrows */
.bento-custom-30 .custom-main-input::-webkit-outer-spin-button,
.bento-custom-30 .custom-main-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.bento-custom-30 .custom-main-input[type=number] {
    -moz-appearance: textfield;
}

.bento-custom-30 .custom-main-input:focus {
    border-bottom-color: var(--primary);
}

.bento-custom-30 .custom-main-input:not(:placeholder-shown) {
    border-bottom-color: var(--primary);
}

.bento-custom-30 .input-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 8px;
    text-align: center;
}

/* Preset buttons */
.bento-custom-30 .preset-row {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

.bento-custom-30 .preset-btn {
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.2s ease;
}

.bento-custom-30 .preset-btn:hover {
    background: rgba(var(--primary-rgb), 0.2);
    border-color: rgba(var(--primary-rgb), 0.4);
    color: #fff;
    transform: translateY(-1px);
}

.bento-custom-30 .preset-btn:active {
    transform: translateY(0);
}

/* Price display - inline compact */
.bento-custom-30 .price-row {
    display: none !important;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: 12px;
    margin-bottom: 16px;
    animation: slideIn 0.3s ease;
}

.bento-custom-30 .price-row.visible {
    display: flex;
}

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

.bento-custom-30 .price-amount {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, #E0E0E0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bento-custom-30 .price-divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
}

.bento-custom-30 .price-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bento-custom-30 .price-per {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

.bento-custom-30 .price-save {
    font-size: 11px;
    font-weight: 600;
    color: #22C55E;
}

/* Buy button */
.bento-custom-30 .buy-button {
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.bento-custom-30 .buy-button:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
}

.bento-custom-30 .buy-button:not(:disabled) {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent-pink) 50%, var(--accent-orange) 100%);
    background-size: 200% 200%;
    color: white;
    box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.4);
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.bento-custom-30 .buy-button:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(var(--primary-rgb), 0.5);
}

.bento-custom-30 .buy-button:not(:disabled):active {
    transform: translateY(0);
}

/* Override tier backgrounds - return to semi-transparent */
.bento-package.tier-normal,
.bento-package.tier-epic,
.bento-package.tier-legendary {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.bento-package.tier-normal:hover,
.bento-package.tier-epic:hover,
.bento-package.tier-legendary:hover {
    background: rgba(var(--primary-rgb), 0.2);
    border-color: rgba(var(--primary-rgb), 0.4);
}

/* === PACKAGE BACKGROUND COLORS === */
/* === METALLIC TRANSPARENT BENTO PACKAGE BACKGROUNDS === */

.bento-package.bg-blue {
    background: linear-gradient(165deg, 
        rgba(59, 130, 246, 0.2) 0%, 
        rgba(37, 99, 235, 0.3) 50%,
        rgba(29, 78, 216, 0.2) 100%) !important;
    border: 1px solid rgba(59, 130, 246, 0.4) !important;
    box-shadow: 
        0 4px 24px rgba(59, 130, 246, 0.2),
        0 0 40px rgba(59, 130, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.bento-package.bg-blue:hover {
    background: linear-gradient(165deg, 
        rgba(59, 130, 246, 0.3) 0%, 
        rgba(37, 99, 235, 0.4) 50%,
        rgba(29, 78, 216, 0.3) 100%) !important;
    border-color: rgba(59, 130, 246, 0.6) !important;
    box-shadow: 
        0 8px 40px rgba(59, 130, 246, 0.35),
        0 0 60px rgba(59, 130, 246, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.bento-package.bg-purple {
    background: linear-gradient(165deg, 
        rgba(var(--primary-rgb), 0.25) 0%, 
        rgba(var(--primary-dark-rgb), 0.35) 50%,
        rgba(109, 40, 217, 0.25) 100%) !important;
    border: 1px solid rgba(var(--primary-rgb), 0.5) !important;
    box-shadow: 
        0 4px 24px rgba(var(--primary-rgb), 0.25),
        0 0 50px rgba(var(--primary-rgb), 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.bento-package.bg-purple:hover {
    background: linear-gradient(165deg, 
        rgba(var(--primary-rgb), 0.35) 0%, 
        rgba(var(--primary-dark-rgb), 0.45) 50%,
        rgba(109, 40, 217, 0.35) 100%) !important;
    border-color: rgba(var(--primary-rgb), 0.7) !important;
    box-shadow: 
        0 8px 40px rgba(var(--primary-rgb), 0.4),
        0 0 70px rgba(var(--primary-rgb), 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.bento-package.bg-red {
    background: linear-gradient(165deg, 
        rgba(var(--error-rgb), 0.08) 0%, 
        rgba(220, 38, 38, 0.14) 50%,
        rgba(185, 28, 28, 0.08) 100%) !important;
    border: 1px solid rgba(var(--error-rgb), 0.2) !important;
    box-shadow: 
        0 4px 24px rgba(var(--error-rgb), 0.08),
        inset 0 1px 0 rgba(var(--error-rgb), 0.12);
}
.bento-package.bg-red:hover {
    background: linear-gradient(165deg, 
        rgba(var(--error-rgb), 0.14) 0%, 
        rgba(220, 38, 38, 0.2) 50%,
        rgba(185, 28, 28, 0.14) 100%) !important;
    border-color: rgba(var(--error-rgb), 0.35) !important;
}

.bento-package.bg-yellow {
    background: linear-gradient(165deg, 
        rgba(var(--star-color-rgb), 0.25) 0%, 
        rgba(var(--accent-orange-rgb), 0.35) 50%,
        rgba(217, 119, 6, 0.25) 100%) !important;
    border: 1px solid rgba(var(--star-color-rgb), 0.5) !important;
    box-shadow: 
        0 4px 24px rgba(var(--star-color-rgb), 0.25),
        0 0 50px rgba(var(--star-color-rgb), 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.bento-package.bg-yellow:hover {
    background: linear-gradient(165deg, 
        rgba(var(--star-color-rgb), 0.35) 0%, 
        rgba(var(--accent-orange-rgb), 0.45) 50%,
        rgba(217, 119, 6, 0.35) 100%) !important;
    border-color: rgba(var(--star-color-rgb), 0.7) !important;
    box-shadow: 
        0 8px 40px rgba(var(--star-color-rgb), 0.4),
        0 0 70px rgba(var(--star-color-rgb), 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.bento-package.bg-orange {
    background: linear-gradient(165deg, 
        rgba(249, 115, 22, 0.08) 0%, 
        rgba(234, 88, 12, 0.14) 50%,
        rgba(194, 65, 12, 0.08) 100%) !important;
    border: 1px solid rgba(249, 115, 22, 0.2) !important;
    box-shadow: 
        0 4px 24px rgba(249, 115, 22, 0.08),
        inset 0 1px 0 rgba(249, 115, 22, 0.12);
}
.bento-package.bg-orange:hover {
    background: linear-gradient(165deg, 
        rgba(249, 115, 22, 0.14) 0%, 
        rgba(234, 88, 12, 0.2) 50%,
        rgba(194, 65, 12, 0.14) 100%) !important;
    border-color: rgba(249, 115, 22, 0.35) !important;
}

/* Battery case button */
.battery-case-btn {
    width: 100%;
    padding: 10px 16px;
    margin-top: 12px;
    background: linear-gradient(135deg, var(--primary), var(--accent-pink));
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    animation: pulse-glow 2s infinite;
}

.battery-case-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.4);
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.3); }
    50% { box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.6); }
}

/* Discount styles for packages */
.bento-package-price-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.bento-package-price-old {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    text-decoration: line-through;
}

.bento-package-price.discounted {
    color: #22C55E;
    font-weight: 700;
}

/* Discount banner */
.bento-discount-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(var(--primary-rgb), 0.15));
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 12px;
    animation: discount-pulse 2s infinite;
}

@keyframes discount-pulse {
    0%, 100% { box-shadow: 0 0 10px rgba(34, 197, 94, 0.2); }
    50% { box-shadow: 0 0 20px rgba(34, 197, 94, 0.4); }
}

.bento-discount-banner-icon {
    font-size: 24px;
}

.bento-discount-banner-title {
    font-size: 16px;
    font-weight: 700;
    color: #22C55E;
}

.bento-discount-banner-sub {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
}

/* Custom price discount styles */
.custom-price-old {
    font-size: 18px;
    color: rgba(255,255,255,0.4);
    text-decoration: line-through;
    margin-right: 8px;
}

.custom-price-new {
    font-size: 28px;
    color: #22C55E;
    font-weight: 700;
}

.price-save.discount-active {
    color: #22C55E !important;
    font-weight: 600;
    animation: discount-pulse 2s infinite;
}

/* === GOLD PACKAGE BACKGROUND === */
.bento-package.bg-gold {
    background: linear-gradient(165deg, 
        rgba(255, 215, 0, 0.06) 0%, 
        rgba(var(--star-color-rgb), 0.12) 30%,
        rgba(var(--accent-orange-rgb), 0.14) 60%,
        rgba(218, 165, 32, 0.08) 100%) !important;
    border: 1px solid rgba(255, 215, 0, 0.22) !important;
    box-shadow: 
        0 4px 24px rgba(255, 215, 0, 0.08),
        inset 0 1px 0 rgba(255, 215, 0, 0.15);
}
.bento-package.bg-gold:hover {
    background: linear-gradient(165deg, 
        rgba(255, 215, 0, 0.12) 0%, 
        rgba(var(--star-color-rgb), 0.18) 30%,
        rgba(var(--accent-orange-rgb), 0.2) 60%,
        rgba(218, 165, 32, 0.14) 100%) !important;
    border-color: rgba(255, 215, 0, 0.35) !important;
    box-shadow: 
        0 8px 32px rgba(255, 215, 0, 0.15),
        inset 0 1px 0 rgba(255, 215, 0, 0.2);
}
.bento-package.bg-gold .bento-package-stars,
.bento-package.bg-gold .bento-package-price {
    text-shadow: 0 0 12px rgba(255, 215, 0, 0.2);
}

/* ===== SIDEBAR VIEWPORT FIT ===== */
@media (min-width: 769px) {
    /* Desktop scale 120% */
    body {
        zoom: 1.0;
    }

    }

    .desktop-sidebar {
        height: 100vh;
        overflow: hidden;
        padding: 12px 16px;
        gap: 0;
        box-sizing: border-box;
    }

    .desktop-sidebar .sidebar-logo {
        margin-bottom: 12px;
        flex-shrink: 0;
    }

    .desktop-sidebar .sidebar-logo-box {
        padding: 14px 24px;
        gap: 8px;
    }

    .desktop-sidebar .sidebar-logo img {
        width: 48px;
        height: 48px;
    }

    .desktop-sidebar .sidebar-logo h1 {
        font-size: 18px;
    }

    .desktop-sidebar .sidebar-user {
        margin-bottom: 12px;
        padding: 10px 12px;
        flex-shrink: 0;
    }

    .desktop-sidebar .sidebar-user-avatar {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .desktop-sidebar .sidebar-user-name {
        font-size: 13px;
    }

    .desktop-sidebar .sidebar-user-username {
        font-size: 11px;
    }

    .desktop-sidebar .sidebar-nav {
        flex: 0 1 auto;
        overflow: hidden;
    }

    .desktop-sidebar .nav-item {
        padding: 10px 14px;
        margin-bottom: 2px;
        font-size: 13px;
        gap: 10px;
    }

    .desktop-sidebar .nav-item svg {
        width: 18px;
        height: 18px;
    }

    .desktop-sidebar .sidebar-footer {
        margin-top: 0;
        padding-top: 10px;
        flex-shrink: 0;
        overflow-y: auto;
        overflow-x: hidden;
        max-height: 45vh;
        scrollbar-width: thin;
        scrollbar-color: rgba(var(--primary-rgb), 0.2) transparent;
    }

    .desktop-sidebar .sidebar-footer::-webkit-scrollbar {
        width: 3px;
    }

    .desktop-sidebar .sidebar-footer::-webkit-scrollbar-thumb {
        background: rgba(var(--primary-rgb), 0.3);
        border-radius: 3px;
    }

    .desktop-sidebar .battery-mini {
        padding: 10px 12px;
        margin-bottom: 8px;
        border-radius: 12px;
    }

    .desktop-sidebar .battery-mini-header {
        margin-bottom: 6px;
    }

    .desktop-sidebar .battery-mini-label {
        font-size: 12px;
    }

    .desktop-sidebar .battery-mini-value {
        font-size: 13px;
    }

    .desktop-sidebar .battery-info-section {
        margin-top: 8px;
        padding: 10px;
        border-radius: 10px;
        font-size: 15px;
    }

    .desktop-sidebar .battery-info-section h4 {
        font-size: 11px;
        margin-bottom: 6px;
    }

    .desktop-sidebar .battery-info-item {
        padding: 3px 0;
        font-size: 15px;
    }

    .desktop-sidebar .battery-prizes {
        margin-top: 6px;
        padding-top: 6px;
    }

    .desktop-sidebar .battery-prizes h5 {
        font-size: 15px;
        margin-bottom: 4px;
    }

    .desktop-sidebar .battery-prize-item {
        font-size: 15px;
        padding: 2px 0;
    }

    .desktop-sidebar .battery-case-btn {
        padding: 8px 12px;
        margin-top: 8px;
        font-size: 12px;
        border-radius: 8px;
    }

    .desktop-sidebar .sidebar-theme-toggle .theme-toggle-wrapper {
        padding: 10px 12px;
        margin-top: 6px;
    }

    .desktop-sidebar .sidebar-theme-toggle .theme-toggle-wrapper div[style*="font-size:13px"] {
        font-size: 12px !important;
    }
}

/* Tall screens (1000px+): more breathing room */
@media (min-width: 769px) and (min-height: 1000px) {
    .desktop-sidebar {
        padding: 16px;
    }

    .desktop-sidebar .sidebar-logo {
        margin-bottom: 20px;
    }

    .desktop-sidebar .sidebar-logo-box {
        padding: 18px 28px;
        gap: 10px;
    }

    .desktop-sidebar .sidebar-logo img {
        width: 56px;
        height: 56px;
    }

    .desktop-sidebar .sidebar-user {
        margin-bottom: 18px;
        padding: 14px;
    }

    .desktop-sidebar .sidebar-user-avatar {
        width: 44px;
        height: 44px;
    }

    .desktop-sidebar .nav-item {
        padding: 12px 16px;
        margin-bottom: 3px;
        font-size: 14px;
    }

    .desktop-sidebar .battery-mini {
        padding: 14px;
    }
}

/* Short screens (<750px height): ultra-compact */
@media (min-width: 769px) and (max-height: 750px) {
    .desktop-sidebar {
        padding: 8px 12px;
    }

    .desktop-sidebar .sidebar-logo {
        margin-bottom: 8px;
    }

    .desktop-sidebar .sidebar-logo-box {
        padding: 10px 16px;
        gap: 6px;
    }

    .desktop-sidebar .sidebar-logo img {
        width: 36px;
        height: 36px;
    }

    .desktop-sidebar .sidebar-logo h1 {
        font-size: 15px;
    }

    .desktop-sidebar .sidebar-user {
        margin-bottom: 8px;
        padding: 8px 10px;
    }

    .desktop-sidebar .sidebar-user-avatar {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }

    .desktop-sidebar .sidebar-user-name {
        font-size: 12px;
    }

    .desktop-sidebar .nav-item {
        padding: 8px 12px;
        margin-bottom: 1px;
        font-size: 12px;
        gap: 8px;
    }

    .desktop-sidebar .nav-item svg {
        width: 16px;
        height: 16px;
    }

    .desktop-sidebar .sidebar-footer {
        padding-top: 6px;
        max-height: 40vh;
    }

    .desktop-sidebar .battery-mini {
        padding: 8px 10px;
        margin-bottom: 6px;
        border-radius: 10px;
    }

    .desktop-sidebar .battery-info-section {
        padding: 8px;
    }
}

/* Hide theme toggle in sidebar */
.sidebar-theme-toggle {
    display: none !important;
}

/* Falling Star Animation for Desktop App */
@media (min-width: 769px) {
    .desktop-falling-star {
        position: fixed;
        font-size: 15px;
        z-index: 9999;
        pointer-events: none;
        opacity: 0;
        filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.9)) drop-shadow(0 0 16px rgba(251, 191, 36, 0.6));
    }

    .desktop-falling-star.animate {
        animation: desktopFallingStar 0.44s ease-in forwards;
    }

    @keyframes desktopFallingStar {
        0% {
            top: -50px;
            right: 15%;
            opacity: 0;
            transform: rotate(0deg) scale(1);
        }
        10% {
            opacity: 1;
        }
        50% {
            transform: rotate(-10deg) scale(1.1);
        }
        90% {
            opacity: 1;
        }
        100% {
            top: 110%;
            right: 75%;
            opacity: 0;
            transform: rotate(-25deg) scale(0.8);
        }
    }
}

/* Desktop Username Avatar & Validation */
.desktop-username-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(var(--primary-rgb), 0.25);
    display: none !important;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    margin-right: 8px;
    border: 2px solid var(--primary);
}
.desktop-username-avatar.visible { display: flex !important; }
.desktop-username-avatar img { width: 100%; height: 100%; object-fit: cover; }
.desktop-input-status { width: 20px; height: 20px; margin-left: 8px; flex-shrink: 0; }
.desktop-input-status.valid::after { content: '✓'; color: var(--success); font-weight: bold; }
.desktop-input-status.invalid::after { content: '✗'; color: var(--error); font-weight: bold; }
.desktop-input-status.loading::after { content: ''; display: block; width: 16px; height: 16px; border: 2px solid var(--text-muted); border-top-color: var(--primary); border-radius: 50%; animation: spin 1s linear infinite; }

/* Price savings row for desktop */
.price-savings-row {
    text-align: center;
    margin-top: 8px;
    display: none !important;
}
.price-savings-row.visible {
}
.price-savings-row .price-save {
    color: var(--success);
    font-size: 14px;
    font-weight: 600;
}

/* Referral code input section */
.bento-referral-input-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.bento-referral-input-section .input-label {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 8px;
}
.bento-referral-input-row {
    display: flex;
    gap: 8px;
}
.bento-referral-input-row input {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 10px 12px;
    color: #fff;
    font-size: 14px;
    text-transform: uppercase;
}
.bento-referral-input-row input::placeholder {
    color: rgba(255,255,255,0.3);
    text-transform: none;
}
.bento-referral-input-row button {
    background: var(--primary);
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
}
.bento-referral-input-row button:hover {
    background: var(--primary-dark);
}
.bento-referral-input-row button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* === Navigation scroll and compact layout === */
.desktop-sidebar .sidebar-nav {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    max-height: 35vh;
    margin-bottom: 8px;
}

.desktop-sidebar .sidebar-nav::-webkit-scrollbar {
    width: 4px;
}

.desktop-sidebar .sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.desktop-sidebar .sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(var(--primary-rgb), 0.3);
    border-radius: 2px;
}

.desktop-sidebar .sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(var(--primary-rgb), 0.5);
}

/* Compact horizontal nav items */
.desktop-sidebar .nav-item {
    flex-direction: row !important;
    padding: 10px 14px !important;
    gap: 10px !important;
}

/* Battery info section - match font size to mini header */
.desktop-sidebar .battery-info-section {
    font-size: 13px !important;
}

.desktop-sidebar .battery-info-section h4 {
    font-size: 13px !important;
}

.desktop-sidebar .battery-info-item {
    font-size: 13px !important;
}

.desktop-sidebar .battery-prizes {
    font-size: 13px !important;
}

.desktop-sidebar .battery-prize-item {
    font-size: 13px !important;
}

/* Referred by section */
.bento-referral-invited-section {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 12px;
    margin-top: 12px;
}

.bento-referral-invited-section .invited-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
}

.bento-referral-invited-section .invited-name {
    color: #22C55E;
    font-weight: 600;
    font-size: 14px;
}

/* Compact package list for narrow desktop screens */
@media (min-width: 769px) and (max-width: 1000px) {
    .bento-packages-70 {
        display: flex !important;
        flex-direction: column !important;
        max-height: calc(100vh - 200px) !important;
        overflow: hidden !important;
    }
    
    .bento-packages-70 .bento-card-header {
        flex-shrink: 0;
        margin-bottom: 12px;
    }
    
    .bento-packages-70 .bento-packages-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        flex: 1;
        padding: 8px 16px !important;
        margin-top: 0 !important;
    }
    
    .bento-package {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        width: 100% !important;
        max-width: none !important;
        min-width: auto !important;
        padding: 10px 16px !important;
        gap: 12px !important;
        text-align: left !important;
        position: relative;
        flex-shrink: 0;
    }
    
    .bento-package-emoji {
        font-size: 20px !important;
        flex-shrink: 0;
        width: 28px;
        text-align: center;
    }
    
    .bento-package-stars {
        font-size: 14px !important;
        flex: 1;
    }
    
    .bento-package-price {
        font-size: 14px !important;
        font-weight: 600;
        flex-shrink: 0;
    }
    
    .bento-package-badge {
        position: absolute !important;
        top: -4px !important;
        right: -4px !important;
        font-size: 11px !important;
        padding: 4px 8px !important;
        transform: none;
        transform-origin: top right;
    }
}

/* Stack packages and custom amount vertically on narrow desktop */
@media (min-width: 769px) and (max-width: 1120px) {
    .bento-row-packages {
        flex-direction: column !important;
    }
    
    .bento-packages-70 {
        flex: none !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .bento-custom-30 {
        flex: none !important;
        max-width: 100% !important;
        width: 100% !important;
        margin-top: 20px;
    }
}


/* ===== COMPACT MODE FOR NARROW DESKTOP (769-1000px) ===== */
@media screen and (min-width: 769px) and (max-width: 1000px) {
    /* Card container */
    .bento-card.bento-packages-70 {
        display: flex !important;
        flex-direction: column !important;
        max-height: 70vh !important;
        overflow: visible !important;
    }
    
    /* Header stays fixed at top */
    .bento-card.bento-packages-70 > .bento-card-header {
        flex-shrink: 0 !important;
        margin-bottom: 8px !important;
    }
    
    /* Scrollable list container */
    .bento-card.bento-packages-70 > .bento-packages-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        flex: 1 1 auto !important;
        padding: 8px 16px !important;
        margin: 0 !important;
        max-height: calc(70vh - 80px) !important;
    }
    
    /* Individual package item */
    .bento-card.bento-packages-70 > .bento-packages-grid > .bento-package {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        justify-content: flex-start !important;
        width: 100% !important;
        max-width: none !important;
        min-width: auto !important;
        min-height: 44px !important;
        padding: 10px 16px !important;
        gap: 12px !important;
        flex-shrink: 0 !important;
        position: relative !important;
    }
    
    .bento-card.bento-packages-70 .bento-package-emoji {
        font-size: 20px !important;
        width: 30px !important;
        text-align: center !important;
        flex-shrink: 0 !important;
    }
    
    .bento-card.bento-packages-70 .bento-package-stars {
        font-size: 14px !important;
        flex: 1 !important;
    }
    
    .bento-card.bento-packages-70 .bento-package-price {
        font-size: 14px !important;
        font-weight: 600 !important;
        flex-shrink: 0 !important;
    }
    
    .bento-card.bento-packages-70 .bento-package-badge {
        position: absolute !important;
        top: -6px !important;
        right: -6px !important;
        font-size: 11px !important;
        padding: 4px 8px !important;
        z-index: 5 !important;
    }
}

/* ===== DESKTOP REVIEWS SECTION ===== */
.desktop-reviews-card {
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid rgba(var(--primary-rgb), 0.15);
}

.desktop-reviews-card .bento-card-icon.gold {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
}

.desktop-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    max-height: 400px;
    overflow-y: auto;
}

.desktop-reviews-list::-webkit-scrollbar {
    width: 4px;
}

.desktop-reviews-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
}

.desktop-reviews-list::-webkit-scrollbar-thumb {
    background: rgba(var(--primary-rgb), 0.3);
    border-radius: 2px;
}

.desktop-review-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.desktop-review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.desktop-review-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.desktop-review-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent-pink) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: white;
}

.desktop-review-user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.desktop-review-username {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

.desktop-review-stars-bought {
    font-size: 12px;
    color: var(--text-secondary);
}

.desktop-review-rating {
    color: #fbbf24;
    font-size: 14px;
    letter-spacing: 1px;
}

.desktop-review-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-top: 4px;
}

.desktop-reviews-empty {
    text-align: center;
    color: var(--text-secondary);
    padding: 24px;
    font-size: 14px;
}

.desktop-reviews-loading {
    text-align: center;
    color: var(--text-secondary);
    padding: 16px;
    font-size: 13px;
}

/* Updated Reviews Styles */
.desktop-reviews-card {
    background: linear-gradient(135deg, rgba(30, 27, 75, 0.6) 0%, rgba(20, 20, 40, 0.6) 100%);
    border: 1px solid rgba(255,255,255,0.05);
}

.desktop-review-card {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(99, 102, 241, 0.05) 100%);
    border: 1px solid rgba(139, 92, 246, 0.1);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.desktop-review-card:hover {
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-2px);
}

.desktop-review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B5CF6 0%, #6366F1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    color: #fff;
}

.desktop-review-username {
    font-weight: 600;
    font-size: 14px;
    color: #fff;
}

.desktop-review-stars-bought {
    background: rgba(139, 92, 246, 0.2);
    color: #A78BFA;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    display: inline-block;
    margin-top: 4px;
}

.desktop-review-rating {
    color: #FFD700;
    font-size: 14px;
    letter-spacing: 2px;
}

.desktop-review-text {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    line-height: 1.5;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.desktop-reviews-empty {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255,255,255,0.4);
}

/* Bento copy button animation */
.bento-copy-btn {
    transition: all 0.3s ease;
}

.bento-copy-btn.copied {
    background: linear-gradient(135deg, #22C55E, #16A34A) !important;
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.5) !important;
    transform: scale(1.02);
    animation: bento-copy-pulse 0.4s ease;
}

@keyframes bento-copy-pulse {
    0% { transform: scale(1); }
    30% { transform: scale(1.08); }
    60% { transform: scale(0.98); }
    100% { transform: scale(1.02); }
}

    /* Desktop purchase mode - override default hiding */
    .screen.desktop-purchase-active {
        display: block !important;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1000;
        background: var(--bg-primary);
    }
    
    .desktop-content.desktop-hidden {
        display: none !important;
    }

    /* Show back button in desktop purchase mode */
    .screen.desktop-purchase-active .back-btn {
        display: flex !important;
        position: fixed;
        top: 20px;
        left: 20px;
        width: 48px;
        height: 48px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 1001;
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .screen.desktop-purchase-active .back-btn:hover {
        background: rgba(255, 255, 255, 0.2);
    }
    
    .screen.desktop-purchase-active .back-btn svg {
        width: 24px;
        height: 24px;
        fill: white;
    }

    /* Show screen-header in desktop purchase mode */
    .screen.desktop-purchase-active .screen-header {
        display: flex !important;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 60px;
        background: var(--bg-primary);
        align-items: center;
        padding: 0 20px;
        z-index: 1001;
    }

/* ===== Sidebar Battery Section Redesign ===== */
@media (min-width: 769px) {
    .desktop-sidebar .sidebar-footer .battery-info-section {
        background: rgba(139, 92, 246, 0.08);
        border: 1px solid rgba(139, 92, 246, 0.15);
        border-radius: 12px;
        padding: 12px;
        margin-top: 10px;
    }

    .desktop-sidebar .sidebar-footer .battery-info-section h4 {
        font-size: 12px;
        font-weight: 600;
        color: #A78BFA;
        margin: 0 0 8px 0;
        white-space: nowrap;
    }

    .desktop-sidebar .sidebar-footer .battery-info-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 4px 0;
        font-size: 11px;
        gap: 8px;
    }

    .desktop-sidebar .sidebar-footer .battery-info-item > span:first-child {
        color: rgba(255, 255, 255, 0.8);
        white-space: nowrap;
    }

    .desktop-sidebar .sidebar-footer .battery-info-value {
        color: #22C55E;
        font-weight: 700;
        font-size: 11px;
        flex-shrink: 0;
        white-space: nowrap;
    }

    .desktop-sidebar .sidebar-footer .battery-prizes {
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .desktop-sidebar .sidebar-footer .battery-prizes h5 {
        font-size: 11px;
        font-weight: 600;
        color: #EC4899;
        margin: 0 0 6px 0;
        white-space: nowrap;
    }

    .desktop-sidebar .sidebar-footer .battery-prize-item {
        font-size: 11px;
        color: rgba(255, 255, 255, 0.7);
        padding: 3px 0;
        white-space: nowrap;
    }

    .desktop-sidebar .sidebar-footer .battery-case-btn {
        width: 100%;
        margin-top: 10px;
        padding: 10px 12px;
        background: linear-gradient(135deg, #8B5CF6, #EC4899);
        border: none;
        border-radius: 10px;
        font-size: 12px;
        font-weight: 700;
        color: #fff;
        cursor: pointer;
        transition: all 0.3s ease;
        white-space: nowrap;
    }

    .desktop-sidebar .sidebar-footer .battery-case-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
    }
}

/* Compact prizes grid */
@media (min-width: 769px) {
    .desktop-sidebar .sidebar-footer .battery-prizes {
        display: block;
    }
    
    .desktop-sidebar .sidebar-footer .battery-prizes-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2px 8px;
    }
    
    .desktop-sidebar .sidebar-footer .battery-prize-item {
        font-size: 10px;
        padding: 2px 0;
    }
}

/* Premium card selected state */
@media (min-width: 769px) {
    .premium-desktop-card.selected {
        border-color: rgba(255, 215, 0, 0.6);
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
        transform: scale(1.02);
    }
    
    .premium-desktop-card.selected .premium-desktop-btn {
        background: linear-gradient(135deg, #FFD700, #FFA500);
    }
}
