/* ============================================================
   HEADER STYLES
   ============================================================ */

/* Hide Submit link on desktop (it's in sidebar) */
@media (min-width: 1025px) {
    .nav-link[href="/upload.html"]:not(.mobile-icon-btn) {
        display: none !important;
    }
}

/* ============================================================
   SEARCH BAR STYLING (Moved from styles.css)
   ============================================================ */

/* Search Input Field - DEPRECATED (Hero search bar - now hidden) */
#search-bar {
    width: 100%;
    padding: 16px 50px 16px 20px;
    font-size: 16px;
    border: 2px solid #d1d5db !important;
    border-radius: 15px;
    box-sizing: border-box;
    outline: none;
    background-color: rgb(245, 245, 245);
    color: #0f172a;
    box-shadow: none !important;
    transition: all 0.2s ease;
}

#search-bar:focus {
    border-color: #6b7280 !important;
    box-shadow: none !important;
    transform: none;
}

#search-bar::placeholder {
    color: #64748b;
}

/* Search Icon */
.search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    pointer-events: none;
    transition: transform 0.2s ease;
}

.desktop-search-container:hover .search-icon {
    transform: translateY(-50%) scale(1.2);
}

/* Header Container - Three Column Layout */
.header-nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 20px;
    height: 70px;
    background: white;
    border-bottom: 2px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* ============================================================
   LOGO SECTION (LEFT)
   ============================================================ */
.logo-section {
    flex: 0 0 auto;
}

.logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    width: fit-content;
}

.logo {
    height: 60px;
    width: auto;
    transition: transform 0.2s ease;
}

.logo:hover {
    transform: scale(1.05);
}

/* ============================================================
   ADMIN LINK STYLING
   ============================================================ */
.admin-link {
    background: linear-gradient(135deg, #75fc4c 0%, #16361c 100%);
    color: white !important;
    padding: 8px 16px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(249, 115, 22, 0.2);
    position: relative;
}

.admin-link::after {
    display: none;
}

.admin-link:hover {
    background: linear-gradient(135deg, #12c402 0%, #72ec4d 100%);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(249, 115, 22, 0.3);
}

.admin-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #dc2626;
    color: white;
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

/* ============================================================
   NAV LINKS SECTION (RIGHT)
   ============================================================ */
.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: flex-end;
}

/* Mobile actions - hidden on desktop, shown on mobile */
.mobile-actions {
    display: none;
}

@media (max-width: 768px) {
    .mobile-actions {
        display: flex !important;
        align-items: center;
        gap: 12px;
    }
}

/* Desktop Search Container - Truly Centered in Header */
.desktop-search-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 450px;
    justify-self: center;
}

.desktop-search-input {
    width: 100%;
    padding: 13px 20px 13px 50px !important;
    border: 3px solid #d1d5db;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 500;
    background: white;
    color: #1f2937;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    text-indent: 0 !important;
}

.desktop-search-input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.desktop-search-input:hover {
    border-color: #9ca3af;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.desktop-search-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15),
                0 6px 20px rgba(59, 130, 246, 0.2);
    transform: translateY(-1px);
}

.desktop-search-input:focus::placeholder {
    color: #bfdbfe;
}

.desktop-search-container .search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 20px;
    color: #6b7280;
    transition: all 0.3s ease;
    z-index: 1;
}

.desktop-search-input:hover ~ .search-icon {
    color: #3b82f6;
    transform: translateY(-50%) scale(1.05);
}

.desktop-search-input:focus ~ .search-icon {
    color: #2563eb;
    transform: translateY(-50%) scale(1.1);
}

/* Mobile Search Dropdown */
.mobile-search-dropdown {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    max-height: 70vh;
    background: white;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    padding: 12px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    pointer-events: none;
}

.mobile-search-dropdown.show {
    display: block;
    pointer-events: auto;
}

.mobile-search-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s;
}

.mobile-search-input:focus {
    border-color: #2563eb;
}

.mobile-search-results {
    margin-top: 12px;
    padding-bottom: 20px;
    display: none;
}

.mobile-search-results.show {
    display: block;
}

.mobile-search-section {
    margin-bottom: 16px;
}

.mobile-search-header {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: #6b7280;
    padding: 8px 12px;
    margin-bottom: 4px;
}

.mobile-search-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    color: #1f2937;
    transition: background-color 0.2s;
}

.mobile-search-item:hover,
.mobile-search-item:active {
    background-color: #f3f4f6;
}

.mobile-search-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.mobile-search-meme {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.mobile-search-info {
    flex: 1;
    min-width: 0;
    margin-left: 5px;
}

.mobile-search-name {
    font-weight: 600;
    font-size: 14px;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: -6px;
}

.mobile-search-username {
    font-size: 13px;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-left: 6px;
}

.mobile-search-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 12px 0;
}

.mobile-search-no-results {
    padding: 24px;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
}

/* Mobile Search Follow Button */
.mobile-search-follow-btn {
    padding: 6px 16px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.mobile-search-follow-btn:hover,
.mobile-search-follow-btn:active {
    background: #1d4ed8;
    transform: translateY(-1px);
}

/* Following state - Red unfollow button */
.mobile-search-follow-btn.following {
    background: #ef4444;
}

.mobile-search-follow-btn.following:hover,
.mobile-search-follow-btn.following:active {
    background: #dc2626;
}

/* Mobile Search Memes Option */
.mobile-search-memes-option:hover,
.mobile-search-memes-option:active {
    background: #eff6ff;
}

/* Desktop Search Dropdown */
.desktop-search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: -100px;
    right: -100px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    max-height: 500px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1002;
}

.desktop-search-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-results-section {
    padding: 12px;
}

.search-results-header {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #6b7280;
    padding: 8px 12px;
    letter-spacing: 0.5px;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    color: #1f2937;
    transition: all 0.2s ease;
    cursor: pointer;
}

.search-result-item:hover {
    background: #f3f4f6;
}

.search-result-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e5e7eb;
    flex-shrink: 0;
}

.search-result-info {
    flex: 1;
    min-width: 0;
    margin-left: 5px;
}

.search-result-name {
    font-weight: 600;
    font-size: 14px;
    color: #1f2937;
    margin-bottom: -6px;
}

.search-result-username {
    font-size: 13px;
    color: #6b7280;
    padding-left: 6px;
}

.search-result-meme {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.search-no-results {
    padding: 32px;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
}

.search-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 8px 0;
}

/* Search Follow Button Styling */
.search-follow-btn {
    padding: 6px 16px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.search-follow-btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.search-follow-btn:active {
    transform: translateY(0);
}

/* Following state - Red unfollow button */
.search-follow-btn.following {
    background: #ef4444;
}

.search-follow-btn.following:hover {
    background: #dc2626;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

/* Search Memes Option Styling */
.search-memes-option {
    border-bottom: 1px solid #e5e7eb;
}

.search-memes-option:hover {
    background: #eff6ff;
}

.nav-link {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.2s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 3px;
    background: #2563eb;
    transition: width 0.2s ease;
}

.nav-link:hover {
    color: #2563eb;
}

.nav-link:hover::after {
    width: 100%;
}

/* Login/Register Buttons */
.nav-links .login-btn {
    background: transparent !important;
    color: #2563eb !important;
    padding: 4px 14px !important;
    border-radius: 8px;
    transition: all 0.2s ease;
    width: auto !important;
}

.nav-links .login-btn:hover {
    background: #eff6ff !important;
    color: #1d4ed8 !important;
    transform: translateY(-2px) !important;
}

.nav-links .register-btn {
    background: #2563eb;
    color: white;
    padding: 4px 16px !important;
    border-radius: 8px;
    transition: all 0.2s ease;
    width: auto !important;
}

.nav-links .register-btn:hover {
    background: #1d4ed8 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3) !important;
}

/* ============================================================
   USER MENU DROPDOWN
   ============================================================ */
.user-menu {
    position: relative;
}

.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 6px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-menu-btn:hover {
    border-color: #2563eb;
    background: #eff6ff;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.username {
    color: #333;
    font-weight: 600;
    font-size: 15px;
}

.dropdown-arrow {
    color: #666;
    transition: transform 0.2s ease;
}

.user-menu-btn:hover .dropdown-arrow {
    transform: translateY(2px);
}

/* Dropdown Menu */
.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1001;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.dropdown-item:first-child {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.dropdown-item:last-child {
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.dropdown-item:hover {
    background: #eff6ff;
    color: #2563eb;
}

.dropdown-item svg {
    color: #666;
    transition: color 0.2s ease;
}

.dropdown-item:hover svg {
    color: #2563eb;
}

.dropdown-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 8px 0;
}

.logout-btn {
    color: #ef4444;
    font-weight: 600;
}

.logout-btn:hover {
    background: #fef2f2;
    color: #dc2626;
}

.logout-btn svg {
    color: #ef4444;
}

.logout-btn:hover svg {
    color: #dc2626;
}

/* Install button styling to match other dropdown items EXACTLY */
.install-btn {
    /* Override button defaults to match links */
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    text-align: left;
}

.install-btn svg {
    width: 16px;
    height: 16px;
    min-width: 16px;
    flex-shrink: 0;
    color: #666;
    transition: color 0.2s ease;
}

.install-btn:hover svg {
    color: #2563eb;
}

/* ============================================================
   FACEBOOK-STYLE MOBILE HEADER (BELOW 768PX)
   ============================================================ */
@media (max-width: 768px) {
    /* Light mobile header - Revert to flexbox */
    .header-nav {
        display: flex;
        justify-content: space-between;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        padding: 0 12px;
        height: 50px;
        background: #ffffff;
        border-bottom: 1px solid #e5e7eb;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        transform: translateY(0);
        transition: transform 0.3s ease;
        z-index: 9999;
    }
    
    /* Hidden state (scrolling down) */
    .header-nav.hidden {
        transform: translateY(-100%);
    }
    
    /* Adjust body padding for fixed header */
    body {
        padding-top: 50px;
    }
    
    /* Mobile logo styling */
    .logo-section {
        flex: 0 0 auto;
    }
    
    .logo {
        height: 32px;
    }
    
    /* Hide desktop nav items but keep Login/Sign Up */
    .nav-links > .nav-link:not(.user-menu):not(.login-btn):not(.register-btn) {
        display: none !important;
    }
    
    /* Hide desktop search on mobile */
    .desktop-search-container {
        display: none !important;
    }
    
    /* Mobile action buttons container */
    .mobile-actions {
        display: flex !important;
        align-items: center;
        gap: 12px;
    }
    
    /* Mobile admin button styling */
    .mobile-admin-btn {
        color: #10b981 !important;
        position: relative;
    }
    
    .mobile-admin-btn:hover {
        background: rgba(16, 185, 129, 0.1) !important;
        color: #059669 !important;
    }
    
    /* Mobile admin badge */
    .mobile-admin-badge {
        position: absolute;
        top: 0;
        right: 0;
        background: #dc2626;
        color: white;
        font-size: 10px;
        font-weight: 700;
        min-width: 18px;
        height: 18px;
        border-radius: 9px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 5px;
        border: 2px solid white;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        z-index: 1;
    }
    
    /* Mobile icon buttons - Light theme */
    .mobile-icon-btn {
        background: none;
        border: none;
        color: #6b7280;
        font-size: 24px;
        cursor: pointer;
        padding: 8px;
        border-radius: 50%;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        position: relative;
        z-index: 10001;
    }
    
    /* Mobile back button specific styling */
    .mobile-back-btn {
        margin-right: 4px;
    }
    
    .mobile-back-btn svg {
        width: 24px;
        height: 24px;
    }
    
    .mobile-icon-btn svg {
        pointer-events: none;
    }
    
    .mobile-icon-btn:hover {
        background: #f3f4f6;
        color: #1f2937;
    }
    
    /* Plus button (create) */
    .mobile-create-btn {
        position: relative;
    }
    
    /* Mobile search dropdown - Light theme */
    .mobile-search-dropdown {
        display: none !important;
        position: fixed;
        top: 50px;
        left: 0;
        right: 0;
        min-height: 80px;
        max-height: 70vh;
        background: white;
        border: none;
        border-radius: 0 0 16px 16px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
        padding: 16px;
        z-index: 10000;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        pointer-events: none;
    }
    
    .mobile-search-dropdown.show {
        display: block !important;
        pointer-events: auto;
        animation: slideDown 0.2s ease;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .mobile-search-input {
        width: 100%;
        padding: 14px 16px;
        font-size: 16px;
        border: 2px solid #e5e7eb;
        border-radius: 8px;
        outline: none;
        background: white;
        color: #1f2937;
        transition: all 0.2s ease;
    }
    
    .mobile-search-input:focus {
        border-color: #2563eb;
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    }
    
    /* Mobile dropdown backdrop overlay */
    .mobile-dropdown-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1000;
    }
    
    .mobile-dropdown-backdrop.show {
        opacity: 1;
        visibility: visible;
    }
    
    /* Mobile dropdown - Light theme */
    .mobile-dropdown {
        position: fixed;
        top: 60px;
        right: 10px;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        min-width: 200px;
        opacity: 0;
        visibility: hidden;
        transform: scale(0.9);
        transition: all 0.2s ease;
        z-index: 1001;
    }
    
    .mobile-dropdown.show {
        opacity: 1;
        visibility: visible;
        transform: scale(1);
    }
    
    .mobile-dropdown-item {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 8px 12px;
        color: #1f2937;
        text-decoration: none;
        font-size: 14px;
        font-weight: 500;
        transition: all 0.2s ease;
        border-radius: 4px;
        margin: 0;
    }
    
    .mobile-dropdown-item:hover {
        background: #f3f4f6;
    }
    
    .mobile-dropdown-item svg {
        font-size: 20px;
        color: #6b7280;
    }
    
    /* Hide existing back links on mobile */
    .back-link {
        display: none !important;
    }
    
    /* Floating Mobile Back Button - Ultra transparent, fixed in bottom left */
    .floating-mobile-back-btn {
        position: fixed;
        bottom: 20px;
        left: 12px;
        width: 48px;
        height: 48px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(10px);
        border: 2px solid rgba(37, 99, 235, 0.1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 9998;
        transition: all 0.3s ease;
    }
    
    .floating-mobile-back-btn:hover,
    .floating-mobile-back-btn:active {
        background: rgba(37, 99, 235, 0.95);
        border-color: #2563eb;
        transform: scale(1.05);
        box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
    }
    
    .floating-mobile-back-btn img {
        width: 24px;
        height: 24px;
        pointer-events: none;
        display: block;
    }
    
    .floating-mobile-back-btn:hover img,
    .floating-mobile-back-btn:active img {
        filter: brightness(0) invert(1);
    }
    
    /* Mobile user menu adjustments - Light theme */
    .user-menu-btn {
        background: none;
        border: none;
        padding: 0;
    }
    
    .user-avatar {
        width: 32px;
        height: 32px;
        border: 2px solid #e5e7eb;
    }
    
    .username {
        display: none;
    }
    
    .dropdown-arrow {
        display: none;
    }
    
    /* Mobile user dropdown - Light theme */
    .user-dropdown {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        border: 1px solid #e5e7eb;
        top: 60px;
        right: 10px;
    }
    
    .dropdown-item {
        color: #1f2937;
    }
    
    .dropdown-item:hover {
        background: #f3f4f6;
        color: #2563eb;
    }
    
    .logo {
        height: 42px;
    }
    
    .nav-links {
        gap: 15px;
    }
    
    .nav-link {
        font-size: 14px;
    }
    
    .admin-panel-btn {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .username {
        font-size: 14px;
    }
    
    .user-avatar {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 480px) {
    .header-nav {
        height: 55px;
        padding: 0 12px;
    }
    
    .logo {
        height: 38px;
    }
    
    .username {
        display: none;
    }
    
    .user-menu-btn {
        padding: 4px 8px;
    }
    
    .user-avatar {
        width: 28px;
        height: 28px;
    }
    
    .dropdown-arrow {
        width: 10px;
        height: 10px;
    }
    
    .login-btn,
    .register-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
}

/* ============================================================
   INSTALL APP MODAL
   ============================================================ */
.install-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.install-modal {
    background: white;
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.install-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 2px solid #e5e7eb;
}

.install-modal-header h3 {
    margin: 0;
    color: #1f2937;
    font-size: 20px;
    font-weight: 700;
}

.install-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.install-modal-close:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.install-modal-body {
    padding: 24px;
}

.install-modal-body p {
    margin: 0 0 16px 0;
    color: #374151;
    font-size: 16px;
    line-height: 1.6;
}

.install-modal-body ol {
    margin: 16px 0;
    padding-left: 24px;
}

.install-modal-body li {
    margin-bottom: 12px;
    color: #374151;
    font-size: 15px;
    line-height: 1.6;
}

.install-modal-body strong {
    color: #1f2937;
    font-weight: 600;
}

.install-note {
    background: #eff6ff;
    border-left: 4px solid #2563eb;
    padding: 12px 16px;
    margin: 16px 0 0 0;
    border-radius: 8px;
    color: #1e40af;
    font-size: 14px;
}

.install-modal-footer {
    padding: 16px 24px;
    border-top: 2px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
}

.install-modal-btn {
    background: #2563eb;
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.install-modal-btn:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

@media (max-width: 480px) {
    .install-modal {
        max-width: 100%;
        margin: 20px;
    }
    
    .install-modal-header h3 {
        font-size: 18px;
    }
    
    .install-modal-body {
        padding: 20px;
    }
    
    .install-modal-body p,
    .install-modal-body li {
        font-size: 14px;
    }
}
