/**
 * BonusCards Elementor Mobile App Design
 * Beautiful mobile-first design inspired by Google Play & YouTube Music
 * Fully compatible with Elementor widgets and responsive design
 */

/* CSS Custom Properties for Mobile App Theme */
:root {
    --app-primary: #ff6b35;
    --app-primary-dark: #e55a2e;
    --app-primary-light: #ff8561;
    --app-gradient: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    --app-gradient-hover: linear-gradient(135deg, #ff8561 0%, #ffb347 100%);
    
    /* Modern App Colors */
    --app-bg: #f8f9fa;
    --app-surface: #ffffff;
    --app-surface-secondary: #f1f3f4;
    --app-text-primary: #202124;
    --app-text-secondary: #5f6368;
    --app-text-tertiary: #80868b;
    --app-border: #dadce0;
    --app-border-light: #e8eaed;
    
    /* Interactive States */
    --app-hover: rgba(255, 107, 53, 0.08);
    --app-active: rgba(255, 107, 53, 0.12);
    --app-focus: rgba(255, 107, 53, 0.24);
    
    /* Shadows */
    --app-shadow-light: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    --app-shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.06);
    --app-shadow-heavy: 0 10px 25px rgba(0, 0, 0, 0.1), 0 4px 10px rgba(0, 0, 0, 0.06);
    --app-shadow-card: 0 2px 8px rgba(0, 0, 0, 0.08);
    
    /* Border Radius */
    --app-radius-sm: 8px;
    --app-radius-md: 12px;
    --app-radius-lg: 16px;
    --app-radius-xl: 24px;
    
    /* Spacing */
    --app-space-xs: 4px;
    --app-space-sm: 8px;
    --app-space-md: 16px;
    --app-space-lg: 24px;
    --app-space-xl: 32px;
    --app-space-2xl: 48px;
}

/* Dark Theme Variables */
[data-theme="dark"] {
    --app-bg: #121212;
    --app-surface: #1e1e1e;
    --app-surface-secondary: #2d2d2d;
    --app-text-primary: #ffffff;
    --app-text-secondary: #b3b3b3;
    --app-text-tertiary: #8a8a8a;
    --app-border: #3c3c3c;
    --app-border-light: #2d2d2d;
    --app-hover: rgba(255, 107, 53, 0.12);
    --app-active: rgba(255, 107, 53, 0.16);
    --app-shadow-light: 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.4);
    --app-shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.2), 0 2px 4px rgba(0, 0, 0, 0.16);
    --app-shadow-heavy: 0 10px 25px rgba(0, 0, 0, 0.3), 0 4px 10px rgba(0, 0, 0, 0.2);
    --app-shadow-card: 0 2px 8px rgba(0, 0, 0, 0.24);
}

/* Elementor Container Overrides */
.elementor-widget-container .bonuscards-mobile-app,
.elementor-element .bonuscards-mobile-app,
.elementor-widget-shortcode .bonuscards-mobile-app,
.elementor-section .bonuscards-mobile-app {
    /* Demo-style phone frame for Elementor */
    max-width: 400px !important;
    margin: 20px auto !important;
    padding: 0 !important;
    background: white !important;
    border-radius: 24px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15) !important;
    overflow: hidden !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Google Sans', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
    color: var(--app-text-primary) !important;
    line-height: 1.5 !important;
    position: relative !important;
    
    /* Phone frame effect */
    position: relative !important;
    z-index: 1 !important;
}

/* Elementor Phone Frame Override */
.elementor-widget-container .bonuscards-mobile-app::before,
.elementor-element .bonuscards-mobile-app::before,
.elementor-widget-shortcode .bonuscards-mobile-app::before,
.elementor-section .bonuscards-mobile-app::before {
    content: '' !important;
    position: absolute !important;
    top: -8px !important;
    left: -8px !important;
    right: -8px !important;
    bottom: -8px !important;
    background: linear-gradient(145deg, #1a1a1a, #2d2d2d) !important;
    border-radius: 32px !important;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3) !important;
    z-index: -1 !important;
}

/* Mobile App Container */
.bonuscards-mobile-app {
    min-height: 100vh;
    background: var(--app-bg);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Google Sans', Roboto, sans-serif;
    color: var(--app-text-primary);
    overflow-x: hidden;
    position: relative;
    padding-bottom: 80px; /* For bottom nav */
    
    /* Demo-style phone frame */
    max-width: 400px;
    margin: 20px auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border-radius: 24px;
    overflow: hidden;
    background: white;
}

/* Phone Frame Effect (like in demo) */
.bonuscards-mobile-app::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    background: linear-gradient(145deg, #1a1a1a, #2d2d2d);
    border-radius: 32px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    z-index: -1;
}

/* Screen effect */
.bonuscards-mobile-app {
    position: relative;
    z-index: 1;
}

/* ==================== MODERN APP HEADER ==================== */

/* Modern App Header */
.app-header {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 50%, #ff8561 100%);
    position: sticky;
    top: 0;
    z-index: 100;
    overflow: hidden;
    position: relative;
    border-radius: 24px 24px 0 0; /* Rounded top corners like demo */
}

.app-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.header-top {
    padding: 16px 20px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.app-info {
    flex: 1;
}

.app-title {
    color: white;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.app-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 400;
    opacity: 0.95;
}

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

.header-btn {
    width: 44px;
    height: 44px;
    border-radius: 22px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.header-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

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

.notification-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    background: #ff1744;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(255, 23, 68, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Enhanced Search Section */
.search-section {
    padding: 0 20px 20px;
    position: relative;
    z-index: 2;
}

.search-container {
    position: relative;
}

.search-wrapper {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 28px;
    padding: 4px 8px 4px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.search-wrapper:focus-within {
    background: white;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 16px;
    color: #333;
    padding: 14px 0;
    outline: none;
}

.search-input::placeholder {
    color: #888;
    font-weight: 400;
}

.search-actions {
    display: flex;
    gap: 4px;
}

.search-btn {
    width: 40px;
    height: 40px;
    border-radius: 20px;
    border: none;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.search-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(255, 107, 53, 0.4);
}

.voice-btn {
    background: rgba(255, 107, 53, 0.1);
    color: #ff6b35;
    box-shadow: none;
}

.voice-btn:hover {
    background: rgba(255, 107, 53, 0.15);
}

/* Quick Stats */
.quick-stats {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    margin: 0 20px;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    justify-content: space-around;
    position: relative;
    z-index: 2;
    margin-bottom: 20px;
}

.stat-item {
    text-align: center;
    color: white;
}

.stat-number {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.stat-label {
    font-size: 12px;
    opacity: 0.9;
    font-weight: 500;
}

/* Floating Elements */
.floating-element {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) {
    width: 20px;
    height: 20px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    width: 15px;
    height: 15px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.floating-element:nth-child(3) {
    width: 25px;
    height: 25px;
    top: 40%;
    right: 5%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(180deg); }
}

/* Legacy search support for backwards compatibility */
.mobile-search-container .search-input-wrapper {
    display: none;
}

.mobile-search-input {
    display: none;
}

/* ==================== QUICK ACTIONS REMOVED ==================== */

.quick-actions {
    display: none !important; /* Completely hidden on all devices */
}

/* ==================== CATEGORIES SECTION ==================== */

.categories-section {
    padding: 0 var(--app-space-lg) var(--app-space-lg) var(--app-space-lg);
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--app-text-primary);
    margin: 0 0 var(--app-space-md) 0;
    letter-spacing: -0.2px;
}

.categories-carousel {
    display: flex;
    gap: var(--app-space-md);
    overflow-x: auto;
    padding-bottom: var(--app-space-sm);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.categories-carousel::-webkit-scrollbar {
    display: none;
}

.category-card {
    min-width: 100px;
    background: var(--app-surface);
    border: 1px solid var(--app-border-light);
    border-radius: var(--app-radius-lg);
    padding: var(--app-space-md);
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--app-shadow-light);
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--app-shadow-medium);
}

.category-card.active {
    background: var(--app-gradient);
    border-color: var(--app-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--app-shadow-medium);
}

.category-icon {
    font-size: 24px;
    margin-bottom: var(--app-space-xs);
}

.category-name {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 2px;
}

.category-count {
    font-size: 11px;
    opacity: 0.8;
}

.category-card.active .category-name,
.category-card.active .category-count {
    color: white;
}

/* ==================== CARDS SECTION ==================== */

.mobile-cards-container {
    padding: 0 var(--app-space-lg) var(--app-space-lg) var(--app-space-lg);
}

.cards-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--app-space-lg);
}

.filter-btn {
    background: var(--app-surface-secondary);
    border: 1px solid var(--app-border-light);
    border-radius: var(--app-radius-lg);
    padding: var(--app-space-sm) var(--app-space-md);
    display: flex;
    align-items: center;
    gap: var(--app-space-xs);
    font-size: 14px;
    font-weight: 500;
    color: var(--app-text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    background: var(--app-hover);
    border-color: var(--app-primary);
    color: var(--app-primary);
}

.filter-icon {
    font-size: 16px;
}

/* Mobile Cards Grid */
.mobile-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--app-space-md);
}

.mobile-bonus-card {
    background: var(--app-surface);
    border: 1px solid var(--app-border-light);
    border-radius: var(--app-radius-lg);
    padding: var(--app-space-lg);
    box-shadow: var(--app-shadow-card);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.mobile-bonus-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--app-shadow-medium);
    border-color: var(--app-primary);
}

.mobile-bonus-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--app-gradient);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.mobile-bonus-card:hover::before {
    opacity: 1;
}

.card-header-mobile {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: var(--app-space-md);
}

.card-icon-mobile {
    font-size: 32px;
    line-height: 1;
}

.card-actions-mobile {
    display: flex;
    gap: var(--app-space-xs);
}

.mobile-favorite-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--app-border);
    background: var(--app-surface-secondary);
    color: var(--app-text-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-favorite-btn:hover {
    background: var(--app-hover);
    border-color: var(--app-primary);
    color: var(--app-primary);
}

.mobile-favorite-btn.active {
    background: #ffebee;
    border-color: #e91e63;
    color: #e91e63;
}

.card-content-mobile {
    margin-bottom: var(--app-space-lg);
}

.card-title-mobile {
    font-size: 18px;
    font-weight: 600;
    color: var(--app-text-primary);
    margin: 0 0 var(--app-space-xs) 0;
    line-height: 1.3;
}

.card-badge-mobile {
    display: inline-block;
    background: var(--app-gradient);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: var(--app-radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: var(--app-space-sm);
}

.card-description-mobile {
    color: var(--app-text-secondary);
    line-height: 1.5;
    font-size: 14px;
    margin-bottom: var(--app-space-md);
}

.card-details-mobile {
    display: flex;
    gap: var(--app-space-lg);
    margin-bottom: var(--app-space-lg);
}

.detail-item-mobile {
    text-align: center;
}

.detail-value-mobile {
    font-size: 20px;
    font-weight: 700;
    color: var(--app-primary);
    margin-bottom: 2px;
}

.detail-label-mobile {
    font-size: 12px;
    color: var(--app-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.mobile-claim-btn {
    width: 100%;
    background: var(--app-gradient);
    color: white;
    border: none;
    border-radius: var(--app-radius-lg);
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: block;
    text-align: center;
    box-shadow: var(--app-shadow-light);
}

.mobile-claim-btn:hover {
    background: var(--app-gradient-hover);
    transform: translateY(-1px);
    box-shadow: var(--app-shadow-medium);
    color: white;
    text-decoration: none;
}

.mobile-claim-btn:active {
    transform: translateY(0);
}

/* ==================== PAGINATION BUTTONS ==================== */

.mobile-pagination-container {
    padding: var(--app-space-lg);
    text-align: center;
    background: var(--app-bg);
}

.pagination-btn {
    background: var(--app-gradient);
    color: white;
    border: none;
    border-radius: var(--app-radius-lg);
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--app-shadow-light);
    margin: 0 var(--app-space-sm);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 140px;
    justify-content: center;
}

.pagination-btn:hover {
    background: var(--app-gradient-hover);
    transform: translateY(-2px);
    box-shadow: var(--app-shadow-medium);
}

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

.pagination-btn:disabled {
    background: var(--app-surface-secondary);
    color: var(--app-text-tertiary);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.pagination-btn .btn-icon {
    font-size: 18px;
    transition: transform 0.2s ease;
}

.pagination-btn:hover .btn-icon {
    transform: scale(1.1);
}

.pagination-counter {
    font-size: 14px;
    color: var(--app-text-secondary);
    margin-top: var(--app-space-sm);
    font-weight: 500;
}

.pagination-counter strong {
    color: var(--app-primary);
    font-weight: 700;
}

/* Hidden cards for pagination */
.mobile-bonus-card.hidden-pagination {
    display: none !important;
}

/* Loading state for pagination */
.mobile-cards-grid.pagination-loading {
    opacity: 0.6;
    pointer-events: none;
}

.mobile-cards-grid.pagination-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 32px;
    height: 32px;
    border: 3px solid var(--app-border);
    border-top: 3px solid var(--app-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
    z-index: 10;
}

/* ==================== BOTTOM NAVIGATION ==================== */

.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    max-width: 400px;
    width: 100%;
    background: var(--app-surface);
    border-top: 3px solid #10b981 !important;
    border-radius: 0 0 24px 24px; /* Rounded bottom corners like demo */
    display: flex;
    padding: var(--app-space-sm) 0;
    z-index: 100;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

.nav-item {
    flex: 1;
    background: none;
    border: none;
    padding: var(--app-space-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--app-text-tertiary);
}

.nav-item:hover {
    background: var(--app-hover);
    color: var(--app-primary);
}

.nav-item.active {
    color: var(--app-primary);
}

.nav-icon {
    font-size: 20px;
}

.nav-label {
    font-size: 11px;
    font-weight: 500;
}

/* ==================== FLOATING ACTION BUTTON ==================== */

.floating-action-btn {
    position: fixed;
    bottom: 100px;
    right: var(--app-space-lg);
    width: 56px;
    height: 56px;
    background: var(--app-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: var(--app-shadow-heavy);
    transition: all 0.2s ease;
    z-index: 50;
}

.floating-action-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
}

.floating-action-btn:active {
    transform: scale(0.95);
}

/* ==================== RESPONSIVE DESIGN ==================== */

/* Mobile specific adjustments */
@media (max-width: 480px) {
    .bonuscards-mobile-app {
        margin: 10px;
        max-width: none;
        border-radius: 20px;
    }
    
    .bonuscards-mobile-app::before {
        top: -4px;
        left: -4px;
        right: -4px;
        bottom: -4px;
        border-radius: 24px;
    }
    
    .app-header {
        border-radius: 20px 20px 0 0;
    }
    
    .mobile-bottom-nav {
        max-width: none;
        left: 0;
        transform: none;
        width: 100%;
        border-radius: 0 0 20px 20px;
    }
}

/* Tablet Portrait */
@media (min-width: 768px) {
    .mobile-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--app-space-lg);
    }
    
    .categories-carousel {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .mobile-bottom-nav {
        max-width: 600px;
    }
}

/* Tablet Landscape & Small Desktop */
@media (min-width: 1024px) {
    .bonuscards-mobile-app {
        max-width: 800px; /* Bigger but still phone-like */
        margin: 20px auto;
        padding-bottom: 0;
        min-height: auto;
        border-radius: 24px;
    }
    
    .bonuscards-mobile-app::before {
        border-radius: 32px;
    }
    
    .app-header {
        position: relative;
        border-radius: 24px 24px 0 0;
    }
    
    .mobile-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .mobile-bottom-nav {
        position: relative;
        border-radius: 0 0 24px 24px;
        border-top: 3px solid #10b981 !important;
    }
    
    .floating-action-btn {
        display: none;
    }
}

/* Large Desktop */
@media (min-width: 1440px) {
    .mobile-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .bonuscards-mobile-app {
        max-width: 900px; /* Keep phone-like appearance */
    }
}

/* Dark Theme Adjustments */
[data-theme="dark"] .mobile-bonus-card {
    border-color: var(--app-border);
}

[data-theme="dark"] .mobile-bonus-card:hover {
    border-color: var(--app-primary);
}

[data-theme="dark"] .category-card {
    border-color: var(--app-border);
}

[data-theme="dark"] .quick-action-btn {
    border-color: var(--app-border);
}

[data-theme="dark"] .mobile-bottom-nav {
    border-top: 3px solid #10b981 !important;
}

/* Dark mode support for new header */
[data-theme="dark"] .app-header {
    background: linear-gradient(135deg, #ff6b35 0%, #e55a2e 50%, #d14a1e 100%);
}

[data-theme="dark"] .search-wrapper {
    background: rgba(30, 30, 30, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .search-wrapper:focus-within {
    background: #2d2d2d;
    border: 1px solid #ff6b35;
}

[data-theme="dark"] .search-input {
    color: #ffffff;
}

[data-theme="dark"] .search-input::placeholder {
    color: #888;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --app-border: #000000;
        --app-border-light: #333333;
    }
    
    [data-theme="dark"] {
        --app-border: #ffffff;
        --app-border-light: #cccccc;
    }
}

/* Print styles */
@media print {
    .mobile-bottom-nav,
    .floating-action-btn,
    .header-btn {
        display: none !important;
    }
    
    .bonuscards-mobile-app {
        background: white !important;
        color: black !important;
    }
    
    .mobile-bonus-card {
        break-inside: avoid;
        margin-bottom: 20px;
        border: 1px solid #ccc !important;
    }
}

/* ==================== LOADING STATES ==================== */

.mobile-cards-grid.loading {
    position: relative;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.mobile-cards-grid.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid var(--app-surface-variant);
    border-top: 3px solid var(--app-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.no-bonuses {
    text-align: center;
    padding: var(--app-space-xxl);
    color: var(--app-text-secondary);
    font-size: 16px;
    grid-column: 1 / -1;
}