/* ========================================
   MOBILE-SPECIFIC STYLES
   Applied at max-width: 1200px and below
   ======================================== */

@media (max-width: 1200px) {
    /* ========================================
       LAYOUT & BASE
       ======================================== */

    html, body {
        overflow-x: hidden;
        position: relative;
        width: 100%;
    }

    /* Hide Google's built-in search icon on mobile - multiple attempts */
    gmp-place-autocomplete::part(icon-button) {
        display: none !important;
    }

    gmp-place-autocomplete [role="button"] {
        display: none !important;
    }

    gmp-place-autocomplete button {
        display: none !important;
    }

    gmp-place-autocomplete svg {
        display: none !important;
    }

    /* Fix width overflow on mobile */
    .map-address-search {
        width: calc(100vw - 2rem) !important;
        max-width: calc(100vw - 2rem) !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
    }

    gmp-place-autocomplete {
        flex: 1;
        min-width: 0 !important;
        max-width: 100% !important;
        overflow: hidden;
    }

    gmp-place-autocomplete input {
        padding: 0.75rem 0.75rem !important;
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
        font-size: 0.85rem !important;
        box-sizing: border-box !important;
        background-image: none !important;
        background-position: 0 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Force remove any icon styling from Google's autocomplete */
    gmp-place-autocomplete input::before,
    gmp-place-autocomplete input::after {
        display: none !important;
        content: none !important;
    }

    .sidebar {
        display: none !important;
    }

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

    nav {
        flex-direction: row;
        justify-content: space-between;
        padding: 0.5rem 1rem;
        gap: 0;
    }

    .logo-text {
        font-size: 0.85rem !important;
        font-weight: 600 !important;
    }

    .logo {
        font-size: 0.85rem;
        margin: 0;
        display: flex;
        align-items: center;
        gap: 0.4rem;
    }

    .logo img {
        height: 24px !important;
        margin: 0 !important;
    }

    .mobile-menu-toggle {
        display: block;
    }

    /* Hide desktop nav, show mobile nav */
    .desktop-nav {
        display: none !important;
    }

    .mobile-nav {
        display: flex;
        position: fixed;
        top: 48px;
        right: -100%;
        width: 280px;
        max-width: 80vw;
        background: white;
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
        transition: right 0.3s ease;
        height: auto;
        max-height: calc(100vh - 48px);
        overflow-y: auto;
        z-index: 10000;
        gap: 0;
    }

    .mobile-nav.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid var(--border);
    }

    .nav-links a {
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 1rem;
        color: var(--text);
        border-radius: 0;
        display: block;
        transition: background 0.2s ease;
    }

    .nav-links a:hover {
        background: var(--bg);
        color: var(--primary);
    }

    /* Mobile active state - override desktop styling with ultra-specific selectors */
    ul.nav-links.mobile-nav li a.active,
    ul.nav-links.mobile-nav li a.nav-explore.active {
        background: #FF6B35 !important;
        color: #ffffff !important;
        border: none !important;
        border-bottom: none !important;
        box-shadow: none !important;
        font-weight: 600 !important;
        opacity: 1 !important;
    }

    /* Force white on SVG - target with extreme specificity */
    ul.nav-links.mobile-nav li a.active svg,
    ul.nav-links.mobile-nav li a.active svg * {
        color: #ffffff !important;
        stroke: #ffffff !important;
        fill: #ffffff !important;
        opacity: 1 !important;
    }

    /* Ensure text nodes are white */
    ul.nav-links.mobile-nav li a.active span,
    ul.nav-links.mobile-nav li a.active {
        color: #ffffff !important;
        opacity: 1 !important;
    }

    /* Override all icon animations/colors */
    ul.nav-links.mobile-nav li a.active .explore-icon *,
    ul.nav-links.mobile-nav li a.active .trips-icon *,
    ul.nav-links.mobile-nav li a.active .memories-icon *,
    ul.nav-links.mobile-nav li a.active .achievements-icon *,
    ul.nav-links.mobile-nav li a.active .profile-icon *,
    ul.nav-links.mobile-nav li a.active .logout-icon * {
        stroke: #ffffff !important;
        fill: #ffffff !important;
        filter: none !important;
        color: #ffffff !important;
    }

    /* Disable hover effects on mobile */
    ul.nav-links.mobile-nav li a.active:hover * {
        stroke: #ffffff !important;
        fill: #ffffff !important;
        color: #ffffff !important;
    }

    .nav-links a.btn {
        margin: 0.5rem 1rem;
        width: calc(100% - 2rem);
        text-align: center;
        padding: 0.75rem;
        border-radius: 0.5rem;
    }

    .nav-links li:has(.btn) {
        border-bottom: none;
    }

    /* ========================================
       MAP & SEARCH
       ======================================== */

    #map-container {
        height: calc(100vh - 48px);
        width: 100%;
        overflow: hidden;
    }

    #map {
        width: 100%;
        height: 100%;
    }

    .map-address-search {
        width: calc(100vw - 2rem) !important;
        max-width: calc(100vw - 2rem) !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        top: 1rem;
        gap: 0.25rem;
        box-sizing: border-box;
        padding: 0;
        margin: 0;
    }

    #gps-location-btn {
        width: 2.5rem;
        height: 2.5rem;
        min-width: 2.5rem;
        flex-shrink: 0;
    }

    #gps-location-btn svg {
        width: 18px;
        height: 18px;
    }

    #clear-search {
        right: 3rem;
        width: 1.75rem;
        height: 1.75rem;
        font-size: 1rem;
    }

    /* ========================================
       BOTTOM BUTTONS
       ======================================== */

    .bottom-left-buttons {
        left: 1rem;
        bottom: 1rem;
        flex-direction: row;
        gap: 0.5rem;
    }

    .action-btn {
        min-width: auto;
        padding: 0.6rem 0.8rem;
        gap: 0.5rem;
    }

    .action-btn svg {
        width: 18px;
        height: 18px;
    }

    .action-btn-label {
        font-size: 0.75rem;
    }

    /* ========================================
       MODALS
       ======================================== */

    .modal {
        width: calc(100vw - 2rem) !important;
        max-width: calc(100vw - 2rem) !important;
        margin: 1rem;
        padding: 1.5rem;
        max-height: 85vh !important;
        overflow-y: auto !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .modal-header {
        flex-shrink: 0 !important;
    }

    .modal-body {
        flex: 1 !important;
        overflow-y: auto !important;
        min-height: 0 !important;
    }

    /* Review form 2-column grid stacks on mobile */
    .review-form-grid {
        grid-template-columns: 1fr !important;
    }

    .auth-dropdown {
        width: calc(100vw - 2rem) !important;
        max-width: calc(100vw - 2rem) !important;
        left: 1rem !important;
        right: 1rem !important;
        top: 80px !important; /* Position below mobile header */
        z-index: 99999 !important; /* Above everything */
        transition: none !important; /* Disable CSS transitions on mobile */
    }

    .auth-dropdown.active.mobile-visible {
        opacity: 1 !important;
        transform: translateY(0) !important;
        pointer-events: all !important;
        display: block !important;
        visibility: visible !important;
    }

    .auth-dropdown-content {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Hide the arrow on mobile since positioning is different */
    .auth-dropdown-content::before,
    .auth-dropdown-content::after {
        display: none !important;
    }

    /* ========================================
       GENERAL LAYOUT
       ======================================== */

    header, nav, .nav-links {
        max-width: 100vw;
        overflow-x: hidden;
    }

    .container {
        padding: 1rem;
        max-width: 100vw;
        box-sizing: border-box;
    }

    .card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
}

/* ========================================
   MOBILE ADD LOCATION CARD
   ======================================== */

@media (max-width: 768px) {
    .add-location-card {
        bottom: 1rem;
        width: calc(100vw - 2rem) !important;
        max-width: calc(100vw - 2rem) !important;
        left: 1rem !important;
        right: 1rem !important;
        padding: 0;
    }

    .add-location-card > div {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0.75rem !important;
        box-sizing: border-box;
    }

    .add-location-card > * {
        max-width: 100%;
        box-sizing: border-box;
    }

    .add-location-header {
        padding: 0.5rem 0.75rem;
        margin-bottom: 0;
    }

    .add-location-header h4 {
        font-size: 0.95rem;
        font-weight: 700;
    }

    /* Hide subtitle on mobile - aesthetic noise */
    .add-location-subtitle {
        display: none !important;
    }

    .add-location-buttons {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        margin-top: 0;
        padding: 0 0.75rem 0.75rem 0.75rem;
    }

    .location-type-btn {
        flex-direction: row;
        justify-content: flex-start;
        padding: 0.65rem 0.85rem;
        gap: 0.65rem;
    }

    .location-type-btn .icon {
        font-size: 1.5rem;
    }

    .location-type-btn .label {
        font-size: 0.875rem;
        text-align: left;
        font-weight: 600;
    }

    /* Hide sublabel on mobile - aesthetic noise */
    .location-type-btn .sublabel {
        display: none !important;
    }

    /* Reduce petrol station button size on mobile */
    .location-type-divider {
        margin-top: 0.5rem;
        padding-top: 0.5rem;
        margin-bottom: 0;
    }

    .location-type-btn-compact {
        padding: 0.65rem 0.85rem !important;
        font-size: 0.875rem !important;
    }

    .location-type-btn-compact .location-type-btn-icon {
        font-size: 1.5rem;
    }

    .location-type-btn-compact .location-type-btn-description {
        display: none !important;
    }

    /* Override styles for mobile bottom sheet - keep desktop 3-column layout */
    .add-location-card.mobile-bottom-sheet .add-location-buttons {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
        padding: 0;
    }

    .add-location-card.mobile-bottom-sheet .location-type-btn {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 0.75rem 0.5rem;
        gap: 0.35rem;
    }

    .add-location-card.mobile-bottom-sheet .location-type-btn .icon {
        font-size: 1.75rem;
    }

    .add-location-card.mobile-bottom-sheet .location-type-btn .label {
        font-size: 0.75rem;
        font-weight: 600;
    }

    .add-location-card.mobile-bottom-sheet .location-type-btn .sublabel {
        display: block !important;
        font-size: 0.65rem;
        color: #94a3b8;
    }

    /* Petrol station button - keep horizontal layout with description visible */
    .add-location-card.mobile-bottom-sheet .location-type-btn-compact .location-type-btn-description {
        display: block !important;
        margin-left: auto;
        font-size: 0.7rem;
    }

    /* ========================================
       MOBILE BOTTOM SHEET FOR ADD LOCATION
       ======================================== */

    /* Base bottom sheet positioning */
    .add-location-card.mobile-bottom-sheet {
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        top: auto !important;
        transform: none !important; /* Override JS inline style */
        width: 100% !important;
        max-width: 100% !important;
        padding: 0;
        z-index: 1000;
        animation: slideUpMobile 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    /* Shared bottom sheet styles */
    .add-location-card.mobile-bottom-sheet .location-type-modal,
    .add-location-card.mobile-bottom-sheet .modal-popup-container,
    .add-location-card.mobile-bottom-sheet > div {
        background: white;
        border-radius: 1.25rem 1.25rem 0 0;
        box-shadow: 0 -10px 40px -10px rgba(0, 0, 0, 0.3);
    }

    /* Category selector bottom sheet */
    .add-location-card.mobile-bottom-sheet .location-type-modal {
        padding: 1.25rem;
        padding-bottom: calc(1.25rem + env(safe-area-inset-bottom));
        height: auto !important; /* Override the 50vh height for category selector */
        max-height: none !important;
    }

    /* Form bottom sheet container and location info container */
    .add-location-card.mobile-bottom-sheet .modal-popup-container,
    .add-location-card.mobile-bottom-sheet > div:first-child {
        display: flex;
        flex-direction: column;
        height: 50vh;
        max-height: 50vh;
        overflow: hidden;
    }

    /* Location info card needs scrollable content */
    .add-location-card.mobile-bottom-sheet > div:first-child > div {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Visual handle indicators */
    .add-location-card.mobile-bottom-sheet .location-type-modal::before,
    .add-location-card.mobile-bottom-sheet .modal-popup-container::before {
        content: '';
        display: block;
        width: 40px;
        height: 4px;
        background: var(--slate-300, #cbd5e1);
        border-radius: 2px;
        margin: 0.75rem auto 1rem auto;
        flex-shrink: 0;
    }

    .add-location-card.mobile-bottom-sheet .modal-popup-container::before {
        margin-top: 0.75rem;
        margin-bottom: 0;
    }

    /* Header styles */
    .add-location-card.mobile-bottom-sheet .location-type-modal-header,
    .add-location-card.mobile-bottom-sheet .modal-popup-header {
        flex-shrink: 0;
    }

    .add-location-card.mobile-bottom-sheet .location-type-modal-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 1rem;
    }

    .add-location-card.mobile-bottom-sheet .modal-popup-header {
        padding: 0.75rem 1rem;
    }

    .add-location-card.mobile-bottom-sheet .location-type-modal-header h4 {
        font-size: 1.1rem;
    }

    .add-location-card.mobile-bottom-sheet .location-type-modal-header p {
        font-size: 0.8rem;
        margin-top: 0.15rem;
    }

    /* Scrollable content */
    .add-location-card.mobile-bottom-sheet .modal-popup-scrollable {
        flex: 1;
        overflow-y: auto;
        overflow-x: hidden;
        padding: 0 1rem;
        -webkit-overflow-scrolling: touch;
    }

    /* Footer */
    .add-location-card.mobile-bottom-sheet .modal-popup-footer {
        flex-shrink: 0;
        padding: 1rem;
        padding-bottom: calc(1rem + env(safe-area-inset-bottom));
        border-top: 1px solid var(--border-light, #e2e8f0);
    }

    /* Form layout adjustments */
    .add-location-card.mobile-bottom-sheet .form-grid-2col {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }

    /* Edit Petrol Station form - single column on mobile */
    .add-location-card.mobile-bottom-sheet #edit-petrol-form {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .add-location-card.mobile-bottom-sheet .more-options-section {
        max-height: none;
        overflow: visible;
    }

    /* Slide up animation */
    @keyframes slideUpMobile {
        from {
            transform: translateY(100%);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }
}

/* ========================================
   MOBILE MEMORIES PAGE
   ======================================== */

@media (max-width: 768px) {
    .memories-container {
        padding: 0 1rem;
    }

    .memories-header h1 {
        font-size: 2rem;
    }

    .timeline-item {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
    }

    .timeline-card-wrapper,
    .timeline-dot,
    .timeline-date {
        grid-column: auto !important;
        text-align: center !important;
        max-width: 100% !important;
        float: none !important;
    }

    .memory-card {
        float: none !important;
        max-width: 100%;
    }

    .timeline-line {
        display: none;
    }
}

/* ========================================
   MOBILE BOTTOM NAVIGATION & RESULTS PANEL
   ======================================== */

/* Hide on desktop */
.mobile-bottom-nav,
.mobile-results-panel {
    display: none;
}

.desktop-only {
    /* No display property - inherits from parent */
}

/* Show on mobile */
@media (max-width: 1200px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-bottom-nav {
        display: flex;
    }

    .mobile-results-panel {
        display: block;
    }

    /* Bottom Navigation Bar */
    .mobile-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: white;
        border-top: 2px solid var(--border);
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem;
        gap: 0.5rem;
    }

    .bottom-nav-categories {
        display: flex;
        gap: 0.5rem;
        flex: 1;
    }

    .bottom-nav-btn {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0.6rem 0.5rem;
        background: white;
        border: 2px solid var(--border);
        border-radius: 0.75rem;
        cursor: pointer;
        transition: all 0.2s ease;
        position: relative;
        min-height: 60px;
    }

    .bottom-nav-btn:hover {
        background: var(--bg);
    }

    .bottom-nav-btn.active {
        background: var(--primary);
        border-color: var(--primary);
        color: white;
    }

    .bottom-nav-btn.active .bottom-nav-label {
        color: white;
    }

    .bottom-nav-icon {
        font-size: 1.5rem;
        line-height: 1;
        margin-bottom: 0.25rem;
    }

    .bottom-nav-label {
        font-size: 0.7rem;
        font-weight: 600;
        color: var(--text);
        text-align: center;
    }

    .bottom-nav-badge {
        position: absolute;
        top: 0.25rem;
        right: 0.25rem;
        background: #FF6B35;
        color: white;
        font-size: 0.65rem;
        font-weight: 700;
        padding: 0;
        border-radius: 50%;
        min-width: 22px;
        height: 22px;
        display: none;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 6px rgba(255, 107, 53, 0.4);
    }

    .bottom-nav-btn.active .bottom-nav-badge {
        background: #FF6B35;
        color: white;
    }

    .bottom-nav-badge.visible {
        display: flex;
    }

    .bottom-nav-controls {
        display: flex;
        gap: 0.5rem;
    }

    .bottom-nav-control-btn {
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: white;
        border: 2px solid var(--border);
        border-radius: 0.5rem;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .bottom-nav-control-btn:hover {
        background: var(--bg);
    }

    .bottom-nav-control-btn.active {
        background: var(--primary);
        border-color: var(--primary);
    }

    .bottom-nav-control-btn.active svg {
        stroke: white;
    }

    /* Mobile Results Panel */
    .mobile-results-panel {
        position: fixed;
        bottom: 76px; /* Above bottom nav */
        left: 0;
        right: 0;
        background: white;
        border-top: 2px solid var(--border);
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
        z-index: 999;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .mobile-results-panel.open {
        max-height: 45vh; /* Fixed height at 45% of viewport */
    }

    .mobile-results-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.65rem 0.75rem;
        border-bottom: 1px solid var(--border);
        background: var(--bg);
        flex-shrink: 0; /* Prevent header from shrinking */
    }

    .mobile-results-header h3 {
        margin: 0;
        font-size: 1rem;
        color: var(--text);
        flex: 1;
        text-align: center;
    }

    .mobile-results-back,
    .mobile-results-edit,
    .mobile-results-close {
        background: none;
        border: none;
        cursor: pointer;
        color: var(--text);
        padding: 0.5rem;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 0.5rem;
        transition: all 0.2s ease;
        flex-shrink: 0;
    }

    .mobile-results-edit {
        color: #3b82f6;
    }

    .mobile-results-back:hover,
    .mobile-results-edit:hover,
    .mobile-results-close:hover {
        background: var(--border);
    }

    .mobile-results-edit:hover {
        background: #dbeafe;
    }

    .mobile-results-back.hidden {
        opacity: 0;
        pointer-events: none;
        width: 0;
        padding: 0;
    }

    .mobile-results-list {
        overflow-y: auto;
        max-height: calc(45vh - 65px); /* Panel height minus header */
        padding: 0.5rem;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    }
}

@media (max-width: 1200px) {
    .mobile-results-minimize {
        background: none;
        border: none;
        cursor: pointer;
        color: var(--text-light);
        opacity: 0.6;
        padding: 0.5rem;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 0.5rem;
        transition: all 0.2s ease;
        flex-shrink: 0;
    }

    .mobile-results-minimize svg {
        transition: transform 0.3s ease;
    }

    .mobile-results-minimize:hover {
        opacity: 1;
    }

    .mobile-results-minimize.hidden {
        opacity: 0;
        pointer-events: none;
        width: 0;
        padding: 0;
    }

    .mobile-results-panel.minimized {
        max-height: 55px;
        bottom: 82px; /* Position above bottom navigation */
    }

    .mobile-results-panel.minimized .mobile-results-header {
        cursor: pointer;
    }

    .mobile-results-panel.minimized .mobile-results-list {
        display: none;
    }

    .mobile-results-panel.minimized .mobile-results-back {
        opacity: 0.3;
        pointer-events: none;
        cursor: not-allowed;
    }

    .photo-lightbox {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.95);
        z-index: 10000;
        display: none;
        align-items: center;
        justify-content: center;
    }

    .photo-lightbox.active {
        display: flex;
    }

    .photo-lightbox-content {
        position: relative;
        max-width: 95%;
        max-height: 95vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .photo-lightbox-image {
        max-width: 100%;
        max-height: 95vh;
        width: auto;
        height: auto;
        object-fit: contain;
    }

    .photo-lightbox-close {
        position: absolute;
        top: 1rem;
        right: 1rem;
        width: 50px;
        height: 50px;
        background: rgba(0, 0, 0, 0.6);
        border: 3px solid rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(10px);
        border-radius: 50%;
        color: white;
        font-size: 2rem;
        font-weight: bold;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10001;
        transition: all 0.2s ease;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    }

    .photo-lightbox-close:active {
        background: rgba(239, 68, 68, 0.8);
        transform: scale(0.95);
    }

    .photo-lightbox-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 44px;
        height: 44px;
        background: rgba(255, 255, 255, 0.25);
        border: 2px solid rgba(255, 255, 255, 0.3);
        backdrop-filter: blur(10px);
        border: none;
        border-radius: 50%;
        color: white;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10001;
        transition: all 0.2s ease;
    }

    .photo-lightbox-nav:hover {
        background: rgba(255, 255, 255, 0.3);
    }

    .photo-lightbox-nav.prev {
        left: 1rem;
    }

    .photo-lightbox-nav.next {
        right: 1rem;
    }

    .photo-lightbox-counter {
        position: absolute;
        bottom: 2rem;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(255, 255, 255, 0.25);
        border: 2px solid rgba(255, 255, 255, 0.3);
        backdrop-filter: blur(10px);
        color: white;
        padding: 0.5rem 1rem;
        border-radius: 2rem;
        font-size: 0.9rem;
        font-weight: 600;
        z-index: 10001;
    }

    /* ========================================
       MEMORIES PAGE - MOBILE STATS
       ======================================== */

    .stats-banner {
        gap: 0.75rem;
        margin-bottom: 1.5rem;
        grid-template-columns: repeat(3, 1fr);
    }

    .stats-banner .stat-card {
        padding: 0.75rem 0.5rem;
        border-radius: 0.75rem;
    }

    .stats-banner .stat-number {
        font-size: 1.5rem;
        margin-bottom: 0.125rem;
    }

    .stats-banner .stat-label {
        font-size: 0.7rem;
    }

    /* ========================================
       PROFILE PAGE - MOBILE STATS
       ======================================== */

    .stat-card {
        padding: 0.875rem 0.75rem;
        border-radius: 0.75rem;
    }

    .stat-card .icon svg {
        width: 32px;
        height: 32px;
    }

    .stat-card .value {
        font-size: 1.75rem;
        margin: 0.25rem 0;
    }

    .stat-card .label {
        font-size: 0.75rem;
    }
}
