/* Desktop Bento Style - only for screens > 768px */
@media (min-width: 769px) {
    /* Hide mobile navigation */
    .bottom-nav {
        display: none !important;
    }

    /* ===== WELCOME BAR ===== */
    .desktop-welcome-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 24px;
        background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(236, 72, 153, 0.1));
        border: 1px solid rgba(139, 92, 246, 0.2);
        border-radius: 20px;
        margin-bottom: 24px;
    }

    .welcome-greeting {
        display: flex;
        align-items: center;
        gap: 16px;
    }

    .welcome-avatar {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        background: linear-gradient(135deg, #8B5CF6, #EC4899);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        font-weight: 700;
        color: white;
        overflow: hidden;
    }

    .welcome-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .welcome-text h2 {
        font-size: 18px;
        font-weight: 700;
        color: white;
        margin: 0 0 4px 0;
    }

    .welcome-text p {
        font-size: 13px;
        color: rgba(255, 255, 255, 0.6);
        margin: 0;
    }

    .welcome-stats {
        display: flex;
        gap: 24px;
    }

    .welcome-stat {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 16px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 12px;
    }

    .welcome-stat-icon {
        font-size: 20px;
    }

    .welcome-stat-info {
        display: flex;
        flex-direction: column;
    }

    .welcome-stat-value {
        font-size: 16px;
        font-weight: 700;
        color: white;
    }

    .welcome-stat-label {
        font-size: 11px;
        color: rgba(255, 255, 255, 0.5);
    }

    /* ===== HERO BANNER ===== */
    .desktop-hero-banner {
        position: relative;
        background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(236, 72, 153, 0.2));
        border: 1px solid rgba(139, 92, 246, 0.3);
        border-radius: 24px;
        padding: 32px 40px;
        margin-bottom: 24px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        overflow: hidden;
    }

    .desktop-hero-banner::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -10%;
        width: 300px;
        height: 300px;
        background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, transparent 70%);
        pointer-events: none;
    }

    .hero-content {
        position: relative;
        z-index: 1;
    }

    .hero-badge {
        display: inline-block;
        padding: 6px 14px;
        background: linear-gradient(135deg, #EC4899, #8B5CF6);
        border-radius: 20px;
        font-size: 12px;
        font-weight: 700;
        color: white;
        margin-bottom: 12px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .hero-title {
        font-size: 28px;
        font-weight: 800;
        color: white;
        margin: 0 0 8px 0;
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .hero-title .star-icon {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 14px;
        color: rgba(255, 255, 255, 0.7);
        margin: 0;
    }

    .hero-price-block {
        position: relative;
        z-index: 1;
        text-align: right;
    }

    .hero-price {
        font-size: 42px;
        font-weight: 800;
        background: linear-gradient(135deg, #22C55E, #10B981);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        line-height: 1;
    }

    .hero-price-per {
        font-size: 14px;
        color: rgba(255, 255, 255, 0.6);
        margin-top: 4px;
    }

    .hero-btn {
        margin-top: 16px;
        padding: 14px 32px;
        background: linear-gradient(135deg, #8B5CF6, #EC4899);
        border: none;
        border-radius: 14px;
        color: white;
        font-size: 16px;
        font-weight: 700;
        cursor: pointer;
        transition: all 0.2s;
        box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4);
    }

    .hero-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 32px rgba(139, 92, 246, 0.5);
    }

    /* ===== ADAPTIVE GRID ===== */
    .bento-grid-adaptive {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
        max-width: 1400px;
        margin: 0 auto;
    }

    @media (max-width: 1200px) {
        .bento-grid-adaptive {
            grid-template-columns: repeat(3, 1fr);
        }
    }

    @media (max-width: 900px) {
        .bento-grid-adaptive {
            grid-template-columns: repeat(2, 1fr);
        }
    }

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

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

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

    @media (max-width: 1200px) {
        .bento-grid-adaptive .bento-card.span-4 {
            grid-column: span 3;
        }
    }

    @media (max-width: 900px) {
        .bento-grid-adaptive .bento-card.span-3,
        .bento-grid-adaptive .bento-card.span-4 {
            grid-column: span 2;
        }
    }

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

    /* Sidebar navigation */
    .desktop-sidebar {
        width: 200px;
        min-width: 200px;
        background: rgba(20, 20, 35, 0.95);
        backdrop-filter: blur(20px);
        border-right: 1px solid rgba(139, 92, 246, 0.2);
        padding: 16px;
        display: flex;
        flex-direction: column;
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        z-index: 100;
    }

    .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: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(59, 130, 246, 0.08));
        border: 1px solid rgba(139, 92, 246, 0.25);
        border-radius: 20px;
    }

    .desktop-sidebar .sidebar-logo img {
        width: 64px;
        height: 64px;
        filter: drop-shadow(0 0 15px rgba(139, 92, 246, 0.5));
    }

    .desktop-sidebar .sidebar-logo h1 {
        font-size: 22px;
        font-weight: 800;
        background: linear-gradient(135deg, #8B5CF6, #EC4899);
        -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, #8B5CF6, #EC4899);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        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 {
        flex: 1;
    }

    .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(139, 92, 246, 0.15);
        color: white;
    }

    .desktop-sidebar .nav-item.active {
        background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(236, 72, 153, 0.2));
        color: white;
        font-weight: 600;
    }

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

    .desktop-sidebar .sidebar-footer {
        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 {
        flex: 1;
        margin-left: 200px;
        padding: 32px;
        overflow-y: auto;
    }

    /* Hide mobile screens, show desktop content */
    .screen {
        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(139, 92, 246, 0.2);
        border-radius: 24px;
        padding: 16px;
        transition: all 0.3s;
    }

    .bento-card:hover {
        transform: translateY(-4px);
        border-color: rgba(139, 92, 246, 0.4);
        box-shadow: 0 20px 40px rgba(139, 92, 246, 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(139, 92, 246, 0.3), rgba(139, 92, 246, 0.1));
    }

    .bento-card-icon.pink {
        background: linear-gradient(135deg, rgba(236, 72, 153, 0.3), rgba(236, 72, 153, 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;
        grid-template-rows: repeat(3, 1fr);
        grid-auto-flow: column;
        grid-auto-columns: minmax(140px, 180px);
        gap: 12px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 8px;
        scrollbar-width: thin;
        scrollbar-color: rgba(139, 92, 246, 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(139, 92, 246, 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: 140px;
    }

    .bento-package:hover {
        background: rgba(139, 92, 246, 0.2);
        border-color: rgba(139, 92, 246, 0.4);
        transform: scale(1.02);
    }

    .bento-package.selected {
        background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(236, 72, 153, 0.2));
        border-color: #8B5CF6;
    }

    .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, #EC4899, #8B5CF6);
        color: white;
        font-size: 10px;
        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, #8B5CF6, #EC4899);
        -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: #8B5CF6;
        background: rgba(139, 92, 246, 0.1);
    }

    .bento-btn {
        background: linear-gradient(135deg, #8B5CF6, #EC4899);
        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(139, 92, 246, 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(139, 92, 246, 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(251, 191, 36, 0.2);
    }

    .bento-deal-icon.failed {
        background: rgba(239, 68, 68, 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, #8B5CF6, #EC4899);
        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: #8B5CF6;
    }

    .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: 20px;
        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(139, 92, 246, 0.3);
        border-radius: 4px;
    }

    .desktop-main::-webkit-scrollbar-thumb:hover,
    .bento-deals-list::-webkit-scrollbar-thumb:hover {
        background: rgba(139, 92, 246, 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: 200px;
    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(16, 185, 129, 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, #10B981);
    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(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 0%, rgba(236, 72, 153, 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(251, 191, 36, 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(251, 191, 36, 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(251, 191, 36, 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, #0a0a1b 0%, #1a1a2e 50%, #0a0a1b 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(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 20px;
    color: #A78BFA;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.quick-amount-btn:hover {
    background: rgba(139, 92, 246, 0.25);
    border-color: rgba(139, 92, 246, 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: 140px;
    font-size: 16px !important;
}

/* Updated bento-custom-form layout */
@media (min-width: 769px) {
    .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);
}

.destination-username-input .bento-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 10px;
    color: white;
    font-size: 14px;
}

.destination-username-input .bento-input:focus {
    outline: none;
    border-color: rgba(139, 92, 246, 0.6);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 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 {
    flex: 0 0 calc(30% - 20px);
    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: 20px;
}

.bento-custom-30 .custom-price-display {
    text-align: center;
    padding: 16px 24px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(236, 72, 153, 0.1));
    border-radius: 16px;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.bento-custom-30 .price-main {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, #8B5CF6, #EC4899);
    -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, #10B981);
    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 ===== */
.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;
}

/* ===== THEME COMPATIBILITY FOR DESKTOP ===== */

/* Crystal Red Theme */
[data-theme="crystal-red"] .desktop-welcome-bar {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.15), rgba(153, 27, 27, 0.1));
    border-color: rgba(220, 38, 38, 0.2);
}

[data-theme="crystal-red"] .desktop-hero-banner {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.25), rgba(153, 27, 27, 0.2));
    border-color: rgba(220, 38, 38, 0.3);
}

[data-theme="crystal-red"] .desktop-hero-banner::before {
    background: radial-gradient(circle, rgba(220, 38, 38, 0.3) 0%, transparent 70%);
}

[data-theme="crystal-red"] .hero-badge {
    background: linear-gradient(135deg, #DC2626, #991B1B);
}

[data-theme="crystal-red"] .hero-btn {
    background: linear-gradient(135deg, #DC2626, #991B1B);
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.4);
}

[data-theme="crystal-red"] .hero-btn:hover {
    box-shadow: 0 12px 32px rgba(220, 38, 38, 0.5);
}

/* Emerald Theme */
[data-theme="emerald"] .desktop-welcome-bar {
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.15), rgba(4, 120, 87, 0.1));
    border-color: rgba(5, 150, 105, 0.2);
}

[data-theme="emerald"] .desktop-hero-banner {
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.25), rgba(4, 120, 87, 0.2));
    border-color: rgba(5, 150, 105, 0.3);
}

[data-theme="emerald"] .desktop-hero-banner::before {
    background: radial-gradient(circle, rgba(5, 150, 105, 0.3) 0%, transparent 70%);
}

[data-theme="emerald"] .hero-badge {
    background: linear-gradient(135deg, #059669, #047857);
}

[data-theme="emerald"] .hero-btn {
    background: linear-gradient(135deg, #059669, #047857);
    box-shadow: 0 8px 24px rgba(5, 150, 105, 0.4);
}

[data-theme="emerald"] .hero-btn:hover {
    box-shadow: 0 12px 32px rgba(5, 150, 105, 0.5);
}

/* Asimov Theme */
[data-theme="asimov"] .desktop-welcome-bar {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(29, 78, 216, 0.1));
    border-color: rgba(59, 130, 246, 0.2);
}

[data-theme="asimov"] .desktop-hero-banner {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(29, 78, 216, 0.2));
    border-color: rgba(59, 130, 246, 0.3);
}

[data-theme="asimov"] .desktop-hero-banner::before {
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, transparent 70%);
}

[data-theme="asimov"] .hero-badge {
    background: linear-gradient(135deg, #3B82F6, #1D4ED8);
}

[data-theme="asimov"] .hero-btn {
    background: linear-gradient(135deg, #3B82F6, #1D4ED8);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
}

[data-theme="asimov"] .hero-btn:hover {
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.5);
}
