.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.5);
}

.sidebar-solid-white {
    background: #ffffff !important;
    border-right: 1px solid rgba(255, 255, 255, 0.5);
}

.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 85, 255, 0.1);
    border-radius: 10px;
}



.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Sidebar Scroll Area - enable touch scrolling */
#sidebar-scroll-area {
    -webkit-overflow-scrolling: touch;
    /* Smooth momentum scrolling on iOS */
    overscroll-behavior: contain;
    /* Prevent scroll chaining */
}

/* Gradient Backgrounds */
.active-nav-bg {
    background: linear-gradient(135deg, #0055ff 0%, #00ccff 100%);
}

.aspect-card-image {
    aspect-ratio: 4/3;
}

@media (min-width: 768px) {
    .aspect-card-image {
        aspect-ratio: auto;
    }
}

/* Active Bubble Animation */
#active-bubble {
    position: absolute;
    left: 0;
    width: 6rem;
    height: 5rem;
    /* w-20 equivalent */
    background: linear-gradient(135deg, #0055ff 0%, #00ccff 100%);
    border-radius: 50%;
    z-index: 0;
    transition: top 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
        height 0.3s ease,
        opacity 0.3s ease,
        transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 10px 15px -3px rgba(0, 85, 255, 0.3), 0 4px 6px -2px rgba(0, 85, 255, 0.1);
    pointer-events: none;
    opacity: 0;
    /* Hidden initially until JS positions it */
    transform-origin: center;
}

#active-bubble.visible {
    opacity: 1;
}

#active-bubble.bubble-moving {
    transform: scaleX(0.85) scaleY(1.15);
    /* Stretch vertically */
}

.filter-tab {
    position: relative;
    z-index: 1;
    background: transparent !important;
    transition: transform 0.2s ease;
    touch-action: pan-y;
    /* Allow vertical scrolling when touching buttons */
}

.filter-tab:active {
    transform: scale(0.95);
}

.filter-tab span {
    transition: color 0.3s ease;
}

/* ========== Search Overlay ========== */
.search-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(10, 22, 40, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    visibility: hidden;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-overlay.visible {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

/* Search Header */
.search-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.search-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.search-input-wrapper .material-symbols-outlined {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.5rem;
}

.search-input-wrapper input {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.25rem;
    font-weight: 500;
    outline: none;
    caret-color: #00ccff;
}

.search-input-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.search-close-btn {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.search-close-btn:active {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(0.95);
}

/* Search Results Area */
.search-results {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    padding-bottom: 0;
}

.search-section {
    margin-bottom: 1.5rem;
}

.search-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding: 0 0.25rem;
}

.search-section-title {
    color: #00ccff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.search-section-count {
    background: rgba(100, 116, 139, 0.4);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    letter-spacing: 0.02em;
}

/* Restaurant Result Card */
.search-restaurant-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 0.75rem;
    transition: all 0.15s ease;
}

.search-restaurant-card:active {
    background: rgba(255, 255, 255, 0.12);
    transform: scale(0.98);
}

.search-restaurant-logo {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.75rem;
    background: rgba(0, 85, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.search-restaurant-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-restaurant-logo .material-symbols-outlined {
    color: #0055ff;
    font-size: 1.75rem;
}

.search-restaurant-info {
    flex: 1;
    min-width: 0;
}

.search-restaurant-name {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-restaurant-name .verified-badge {
    color: #00ccff;
    font-size: 1rem;
}

.search-restaurant-meta {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}

.search-restaurant-badge {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    margin-top: 0.5rem;
    display: inline-block;
}

.search-restaurant-arrow {
    color: rgba(255, 255, 255, 0.3);
}

/* Product Result Card */
.search-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.search-product-card {
    background: linear-gradient(145deg, rgba(0, 85, 255, 0.15) 0%, rgba(0, 204, 255, 0.1) 100%);
    border-radius: 1rem;
    border: 1px solid rgba(0, 85, 255, 0.2);
    overflow: hidden;
    transition: all 0.15s ease;
}

.search-product-card:active {
    transform: scale(0.97);
    border-color: rgba(0, 204, 255, 0.4);
}

.search-product-image {
    width: 100%;
    aspect-ratio: 4/3;
    background: rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.search-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-product-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 85, 255, 0.2) 0%, rgba(0, 204, 255, 0.1) 100%);
}

.search-product-image-placeholder .material-symbols-outlined {
    color: rgba(255, 255, 255, 0.3);
    font-size: 2.5rem;
}

.search-product-restaurant-tag {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: rgba(0, 85, 255, 0.9);
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.search-product-info {
    padding: 0.75rem;
}

.search-product-name {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-product-price {
    color: #00ccff;
    font-size: 1rem;
    font-weight: 700;
}

.search-product-add {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: rgba(0, 204, 255, 0.2);
    border: 1px solid rgba(0, 204, 255, 0.3);
    color: #00ccff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-top: 0.5rem;
    transition: all 0.15s ease;
}

.search-product-add:active {
    background: #00ccff;
    color: #0a1628;
}

/* Search Empty State */
.search-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

.search-empty .material-symbols-outlined {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.search-empty p {
    font-size: 1rem;
}

/* Search Keyboard */
.search-keyboard {
    background: rgba(15, 23, 42, 0.98);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0.75rem 2.625rem;
}

.search-keyboard-row {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.search-keyboard-row:last-child {
    margin-bottom: 0;
}

.search-key {
    flex: 1;
    max-width: 6.75rem;
    height: 6rem;
    border-radius: 0.5rem;
    background: #1e293b;
    border: none;
    color: white;
    font-size: 2.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.1s ease;
    box-shadow: 0 2px 0 #0f172a;
}

.search-key:active {
    background: #0055ff;
    transform: translateY(2px);
    box-shadow: none;
}

.search-key-wide {
    max-width: none;
    flex: 1.5;
}

.search-key-space {
    flex: 4;
    max-width: none;
}

.search-key-action {
    background: linear-gradient(135deg, #0055ff 0%, #00ccff 100%);
    flex: 1.5;
    max-width: none;
}

.search-key-action:active {
    background: #00ccff;
}

.search-key-secondary {
    background: #334155;
}

.search-key .material-symbols-outlined {
    font-size: 2.25rem;
}

/* Keyboard close button (X) - red tint */
.search-key-close {
    background: rgba(239, 68, 68, 0.3);
    border: 1px solid rgba(239, 68, 68, 0.4);
    flex: 1;
    max-width: 7.5rem;
}

.search-key-close:active {
    background: #ef4444;
}

/* Keyboard hide button */
.search-key-hide {
    background: linear-gradient(135deg, #0055ff 0%, #00ccff 100%);
    flex: 1;
    max-width: 7.5rem;
}

.search-key-hide:active {
    background: #00ccff;
}

/* Keyboard show/hide animation */
.search-keyboard {
    transform: translateY(0);
    opacity: 1;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
        opacity 0.25s ease;
}

.search-keyboard.collapsed {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s cubic-bezier(0.4, 0, 1, 1),
        opacity 0.2s ease;
}

/* Keyboard FAB button (floating, shows when keyboard hidden) */
.search-keyboard-fab {
    position: absolute;
    bottom: 1.5rem;
    right: 0.5rem;
    height: 3rem;
    padding: 0 1.25rem;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, #0055ff 0%, #00ccff 100%);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 85, 255, 0.4);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10;
}

.search-keyboard-fab.hidden {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
    pointer-events: none;
}

.search-keyboard-fab:active {
    transform: scale(0.95);
    background: #00ccff;
}

.search-keyboard-fab .material-symbols-outlined {
    font-size: 1.5rem;
}

/* ========== Daily Deal Carousel ========== */
.daily-deal-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.daily-deal-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
}

.daily-deal-track::-webkit-scrollbar {
    display: none;
}

.daily-deal-track {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Animations for Daily Deal Content */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.5) rotate(-5deg);
    }

    to {
        opacity: 1;
        transform: scale(1) rotate(-5deg);
    }
}

.daily-deal-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    padding: 0.25rem;
    position: relative;
    overflow: hidden;
    border-radius: 1.75rem;
    /* Slightly larger than card to accommodate padding */
}

/* ========== Daily Deal Card V2 (New Design) ========== */
.daily-deal-card-v2 {
    position: relative;
    width: 100%;
    height: 280px;
    border-radius: 1.5rem;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.daily-deal-card-v2:active {
    transform: scale(0.98);
}

/* Full Background Image */
.daily-deal-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.6s ease;
}

/* Hover effect removed for touch screens
.daily-deal-card-v2:hover .daily-deal-bg {
    transform: scale(1.05);
}
*/

/* Gradient Overlay */
.daily-deal-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, transparent 40%, rgba(0, 0, 0, 0.1) 100%);
    pointer-events: none;
}

/* Discount Badge (Rotated Circle) - Positioned relative to slide */
.daily-deal-badge {
    position: absolute;
    bottom: -1.5rem;
    left: -0.8rem;
    z-index: 30;
    width: 6rem;
    height: 6rem;
    background: white;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 4px solid #0055ff;
    box-shadow: 0 10px 25px rgba(0, 85, 255, 0.3);
    transform: rotate(-5deg);

    /* Initial hidden state */
    opacity: 0;
    pointer-events: none;
}

/* Animate badge only when slide is active */
.daily-deal-slide.slide-active .daily-deal-badge {
    animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: 0.5s;
    /* Staggered delay */
    pointer-events: auto;
}


.daily-deal-badge-value {
    color: #0055ff;
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
    margin-top: -0.125rem;
    max-width: 4.75rem;
    text-align: center;
    white-space: nowrap;
}

.daily-deal-badge-value.is-compact {
    font-size: 1.2rem;
    line-height: 1.05;
    white-space: normal;
}

.daily-deal-badge-label {
    color: #0055ff;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Glass Panel - Symmetric positioning */
.daily-deal-glass-panel {
    position: absolute;
    bottom: 1rem;
    /* Revert to original position */
    left: 1rem;
    right: 1rem;
    z-index: 10;
    z-index: 10;
    height: auto;
    /* min-height removed/reduced for compactness */
    padding: 0.75rem 1rem;
    /* Reduced padding */
    border-radius: 1.25rem;
    background: linear-gradient(90deg, rgba(20, 50, 100, 0.5) 0%, rgba(37, 99, 235, 0.35) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;

    /* Initial hidden state */
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

/* Animate panel only when slide is active */
.daily-deal-slide.slide-active .daily-deal-glass-panel {
    animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.3s;
    /* Start slightly after slide snap */
    pointer-events: auto;
}


.daily-deal-title {
    font-size: 1.5rem;
    /* Reduced from 1.75rem */
    font-weight: 800;
    color: white;
    margin: 0;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.daily-deal-subtitle {
    font-size: 1rem;
    /* Reduced from 1.1rem */
    color: rgba(255, 255, 255, 0.9);
    margin-top: 0.15rem;
    /* Reduced spacing */
    font-weight: 500;
}

.daily-deal-description {
    font-size: 0.9rem;
    /* Reduced from 1rem */
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.15rem;
    max-width: 90%;
    margin-bottom: 0.75rem;
    opacity: 0.85;
}

/* CTA Button */
.daily-deal-cta-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #22d3ee 0%, #3b82f6 100%);
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.625rem 1.25rem;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.5);
}

.daily-deal-cta-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 85, 255, 0.4);
    background: #0044cc;
}

.daily-deal-cta-btn .material-symbols-outlined {
    font-size: 1rem;
}

/* ==========/* Info badge for general campaigns (replaces CTA button) */
.daily-deal-info-badge {
    margin-top: 0.5rem;
    /* Reduced top margin */
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    /* Reduced padding */
    background: rgba(255, 255, 255, 0.15);
    border-radius: 9999px;
    /* Pill shape */
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    /* Slightly smaller font */
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
}

.daily-deal-info-badge .material-symbols-outlined {
    font-size: 1.1rem;
}

/* ========== Dots Navigation ========== */
.daily-deal-dots-container {
    position: absolute;
    bottom: 0.5rem;
    /* Slightly more space from bottom */
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    z-index: 50;
    /* Above glass panel */
    pointer-events: none;
}

.daily-deal-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    /* More transparent */
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* Subtle border */
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    pointer-events: auto;
    /* Enable clicking on dots */
    backdrop-filter: blur(2px);
}

/* removed hover effect for dots */
.daily-deal-dot:active {
    background: rgba(255, 255, 255, 0.5);
}

.daily-deal-dot.active {
    background: rgba(37, 99, 235, 0.6);
    /* Solid rgba for smooth transition */
    width: 1.5rem;
    border-radius: 999px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
}

/* RTL Support */
[dir="rtl"] .daily-deal-badge {
    left: auto;
    right: -0.8rem;
    transform: rotate(5deg);
}
