/* Shared shell and reusable components. Loaded once by the shared styles include. */
/* ============================================
   AMEZPRICE - SHARED SHELL AND COMPONENT FOUNDATIONS
   ============================================ */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Basic Styles */
body {
    font-family: 'Open Sans', sans-serif;
    background-color: #0B0E14;
    color: #ffffff;
    overflow-x: hidden;
}

main, section, footer {
    position: relative;
    z-index: 1;
}

/* Modern Overlay Scrollbar */
html {
    scrollbar-gutter: stable;
}

body::-webkit-scrollbar {
    width: 12px;
}

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

body::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #4285f4 0%, #3b82f6 100%);
    border-radius: 10px;
    border: 3px solid #f8f9fa;
}

body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5568d3 0%, #653a8b 100%);
}

/* Firefox Scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: #4285f4 #f8f9fa;
}

/* ============================================
   NAVBAR - ARGON THEME DESIGN
   ============================================ */

/* Top Bar */
.navbar-top-bar {
    background: #02050A; /* Darker navy */
    color: #ffffff;
    padding: 8px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar-top-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

.top-bar-link {
    color: #ffffff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 13px;
}

.top-bar-link:hover {
    color: #4285f4;
    border-color: #4285f4;
    background: rgba(66, 133, 244, 0.1);
}

.top-bar-link i {
    font-size: 12px;
}

/* ============================================
   COUNTRY SELECTOR DROPDOWN
   ============================================ */
.country-selector {
    position: relative;
}

.country-selector-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.country-selector-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.country-selector-btn .country-flag-img {
    width: 22px;
    height: 16px;
    object-fit: cover;
    border-radius: 2px;
    vertical-align: middle;
    flex-shrink: 0;
}

.country-selector-btn .country-name {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.country-selector-btn .country-caret {
    font-size: 12px;
    transition: transform 0.3s ease;
    opacity: 0.7;
}

.country-selector.open .country-caret {
    transform: rotate(180deg);
}

/* Dropdown Panel */
.country-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 280px;
    background: rgba(20,20,30,0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.97);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    overflow: hidden;
}

.country-selector.open .country-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.country-dropdown-header {
    padding: 14px 18px;
    font-size: 13px;
    font-weight: 700;
    color: #94a3b8;
    background: rgba(0,0,0,0.2);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.country-dropdown-header i {
    font-size: 16px;
    color: #087dff;
}

.country-dropdown-list {
    max-height: 340px;
    overflow-y: auto;
    padding: 6px;
    scrollbar-width: thin;
    scrollbar-color: #d1d5db transparent;
}

.country-dropdown-list::-webkit-scrollbar {
    width: 5px;
}

.country-dropdown-list::-webkit-scrollbar-track {
    background: transparent;
}

.country-dropdown-list::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
}

.country-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    text-decoration: none;
    color: #e2e8f0;
    transition: all 0.2s ease;
    position: relative;
    cursor: pointer;
    width: 100%;
    border: 0;
    background: transparent;
    font: inherit;
    text-align: left;
}

.country-dropdown-item:hover {
    background: rgba(255,255,255,0.08);
    color: #ffffff;
}

.country-dropdown-item.active {
    background: rgba(8,125,255,0.1);
    border: 1px solid rgba(8,125,255,0.2);
    color: #087dff;
}

.country-item-flag-img {
    width: 30px;
    height: 20px;
    object-fit: cover;
    border-radius: 3px;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.country-item-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex: 1;
    min-width: 0;
}

.country-item-name {
    font-size: 13px;
    font-weight: 600;
    color: inherit;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.country-item-currency {
    font-size: 11px;
    color: #8392ab;
    font-weight: 500;
}

.country-item-check {
    font-size: 18px;
    color: #087dff;
    flex-shrink: 0;
    margin-left: auto;
}

/* Main Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(4, 10, 24, 0.85); /* Dark navy translucent */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(99, 102, 241, 0.4); /* Glowing Indigo Top */
    border-bottom: 1px solid rgba(99, 102, 241, 0.4); /* Glowing Indigo Bottom */
    box-shadow: 0 -2px 15px rgba(99, 102, 241, 0.15), 0 2px 15px rgba(99, 102, 241, 0.15), 0 4px 30px rgba(0, 0, 0, 0.5);
    padding: 0;
    transition: all 0.3s ease;
}

.navbar::after {
    display: none;
}

/* Navbar Container */
.navbar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 10px 30px;
    min-height: 55px;
    gap: 20px;
}

/* Left Section - Logo */
.navbar-left {
    justify-self: start;
    display: flex;
    align-items: center;
    gap: 15px;
}

.navbar-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.3s ease;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid transparent;
}

.navbar-logo:hover {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.navbar-logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

/* Center Section - Search Box */
.navbar-center {
    justify-self: center;
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 500px;
    margin-left: min(300px, 15vw);
    margin-right: 10px;
}

.navbar-search {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05); /* Glassmorphism input background */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.navbar-search:focus-within {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
}

.navbar-search-input {
    flex: 1;
    padding: 12px 16px;
    padding-right: 45px;
    border: none;
    background: transparent;
    font-size: 14px;
    color: #ffffff; /* White text for dark mode */
    outline: none;
}

.navbar-search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Fix WebKit Autofill Background Issue */
.navbar-search-input:-webkit-autofill,
.navbar-search-input:-webkit-autofill:hover,
.navbar-search-input:-webkit-autofill:focus,
.navbar-search-input:-webkit-autofill:active {
    -webkit-transition: background-color 5000s ease-in-out 0s, color 5000s ease-in-out 0s;
    transition: background-color 5000s ease-in-out 0s, color 5000s ease-in-out 0s;
    -webkit-text-fill-color: #ffffff !important;
    color: #ffffff !important;
    caret-color: #ffffff;
    border-radius: inherit;
}

.navbar-search-clear {
    position: absolute;
    right: 60px;
    background: transparent;
    border: none;
    color: #8392ab;
    cursor: pointer;
    padding: 8px;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 50%;
    width: 32px;
    height: 32px;
}

.navbar-search-clear:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #ffffff;
}

.navbar-search-clear i {
    font-size: 16px;
}

.navbar-search-btn {
    position: absolute;
    right: 5px;
    background: linear-gradient(90deg, #087dff, #075cf5); /* Match auth primary btn gradient */
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 16px 34px rgba(0, 101, 255, 0.29);
}

.navbar-search-btn:hover {
    transform: scale(1.05);
    filter: brightness(1.08);
    box-shadow: 0 18px 38px rgba(0, 101, 255, 0.36);
}

.navbar-search-btn i {
    font-size: 20px;
    line-height: 1;
}

/* ===== Search Suggestions Dropdown ===== */
.search-suggestions-dropdown {
    position: absolute;
    top: calc(100% + 15px); /* Detached card */
    left: 0;
    right: 0;
    background: rgba(18, 20, 28, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    z-index: 9999;
    max-height: 420px;
    overflow-y: auto;
}

.search-suggestions-dropdown::-webkit-scrollbar {
    width: 6px;
}
.search-suggestions-dropdown::-webkit-scrollbar-track {
    background: transparent;
}
.search-suggestions-dropdown::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.search-dd-list {
    padding: 8px 0;
}

.search-dd-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    text-decoration: none;
    color: #e2e8f0;
    transition: background 0.15s ease;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.search-dd-item:last-child {
    border-bottom: none;
}

.search-dd-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.search-dd-img {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
}

.search-dd-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.search-dd-img i {
    font-size: 1.5rem;
    color: #cbd5e0;
}

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

.search-dd-name {
    font-size: 0.85rem;
    font-weight: 550;
    color: #f1f5f9;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-dd-price-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

.search-dd-price {
    font-size: 0.9rem;
    font-weight: 700;
    color: #38bdf8;
}

.search-dd-highest {
    font-size: 0.8rem;
    color: #64748b;
    text-decoration: line-through;
}

.search-dd-discount {
    font-size: 0.7rem;
    font-weight: 700;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.15);
    padding: 2px 6px;
    border-radius: 4px;
}

.search-dd-viewmore {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px;
    text-decoration: none;
    color: #38bdf8;
    font-weight: 600;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 0 0 16px 16px;
}

.search-dd-viewmore:hover {
    background: #38bdf8;
    color: #0f172a;
}

.search-dd-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 25px;
    color: #94a3b8;
    font-size: 0.9rem;
}

.search-dd-empty i {
    font-size: 1.8rem;
    color: #64748b;
}

/* Right Section - Action Buttons */
.navbar-right {
    justify-self: end;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

/* Button Styles */
.navbar-right .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    color: #ffffff; /* Ensure white text */
}

/* Login Button */
.login-btn {
    background: linear-gradient(90deg, #087dff, #075cf5);
    color: #ffffff;
    border: none;
    box-shadow: 0 16px 34px rgba(0, 101, 255, 0.29);
}

.login-btn:hover {
    filter: brightness(1.08);
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(0, 101, 255, 0.36);
}

/* Dashboard Button */
.dashboard-btn {
    background: transparent;
    color: #4285f4;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dashboard-btn:hover {
    background: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Logout Button */
.logout-btn {
    background: rgba(245, 54, 92, 0.9);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(245, 54, 92, 0.3);
}

.logout-btn:hover {
    background: rgba(245, 54, 92, 1);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 54, 92, 0.4);
}

/* Notification Button */
.notification-btn {
    background: linear-gradient(135deg, #4285f4 0%, #3b82f6 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
    position: relative;
    border: none;
    cursor: pointer;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.notification-btn:hover {
    background: linear-gradient(135deg, #5568d3 0%, #653a8b 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(66, 133, 244, 0.4);
}

.notification-btn i {
    font-size: 20px;
}

.notification-btn span {
    display: none;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #f5365c;
    color: white;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    animation: pulse 2s infinite;
}

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

.navbar-right .btn i {
    font-size: 16px;
}

/* Tooltip for Mobile */
.tooltip-btn {
    position: relative;
}

.tooltip-btn::after {
    content: attr(title);
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    background: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.tooltip-btn:hover::after {
    transform: translateX(-50%) scale(1);
    opacity: 1;
}

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

/* Tablets and Below */
/* Mobile Search Toggle Button (Hidden on Desktop) */
.mobile-search-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #4285f4 0%, #3b82f6 100%);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
    position: relative;
    z-index: 1001;
    margin-right: 8px;
}

.mobile-search-toggle:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.mobile-search-toggle i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.mobile-search-toggle.active i {
    transform: rotate(90deg);
}

/* Tablets */
@media (max-width: 992px) {
    .navbar {
        grid-template-columns: auto 1fr auto;
        gap: 15px;
    }

    .navbar-center {
        max-width: 400px;
        margin-left: min(150px, 10vw);
    }

    .navbar-search {
        max-width: 100%;
    }
}

/* Tablets and Small Screens */
@media (max-width: 768px) {
    .navbar {
        padding: 12px 18px;
        min-height: 60px;
        grid-template-columns: auto 1fr auto auto;
        gap: 6px;
    }

    .navbar-logo img {
        height: 32px;
    }

    .navbar-left {
        gap: 12px;
    }

    /* Show mobile search toggle, hide desktop search */
    .mobile-search-toggle {
        display: flex !important;
        order: 3;
    }

    .navbar-center {
        position: fixed;
        top: 0;
        left: 0 !important;
        right: 0 !important;
        width: 100vw;
        max-width: 100vw;
        height: 100vh;
        margin: 0 !important;
        padding: 20px;
        background: rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(10px);
        z-index: 1000;
        display: none;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transition: opacity 0.3s ease;
        box-sizing: border-box;
    }

    .navbar-center.active {
        display: flex;
        opacity: 1;
        animation: fadeIn 0.3s ease;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }

    .navbar-search {
        width: calc(100% - 40px);
        max-width: calc(100% - 40px);
        height: 56px;
        background: rgba(255, 255, 255, 0.06); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
        border-radius: 28px;
        padding: 0;
        margin: 0 auto;
        transform: scale(0.9);
        opacity: 0;
        animation: searchExpand 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
        animation-delay: 0.1s;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    }

    @keyframes searchExpand {
        0% {
            transform: scale(0.8) translateY(20px);
            opacity: 0;
        }
        100% {
            transform: scale(1) translateY(0);
            opacity: 1;
        }
    }

    .navbar-search-input {
        padding: 16px 24px;
        font-size: 16px;
        color: #ffffff;
    }

    .navbar-search-btn {
        width: 56px;
        height: 56px;
        border-radius: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .navbar-search-clear {
        right: 70px;
    }

    /* Hide text on small screens, show only icons */
    .navbar-right .btn span {
        display: none;
    }

    .navbar-right .btn {
        padding: 12px 14px;
        min-width: auto;
        order: 4;
    }

    .navbar-right {
        gap: 6px;
        margin-right: -6px;
    }

    .btn-deals span {
        display: none;
    }

    .btn-deals {
        padding: 10px 12px;
    }

    /* Country selector - tablet */
    .country-selector-btn .country-name {
        display: none;
    }
    .country-selector-btn {
        padding: 4px 8px;
    }
    .country-dropdown {
        width: 260px;
    }
}

/* Mobile Phones */
@media (max-width: 480px) {
    .navbar-top-bar {
        padding: 6px 15px;
        font-size: 11px;
    }

    /* Country selector - mobile */
    .country-selector-btn {
        padding: 3px 7px;
        gap: 4px;
    }
    .country-selector-btn .country-flag {
        font-size: 14px;
    }
    .country-selector-btn .country-caret {
        font-size: 10px;
    }
    .country-dropdown {
        width: 250px;
        right: -15px;
    }
    .country-dropdown-list {
        max-height: 280px;
    }
    .navbar-top-right {
        gap: 10px;
    }

    .navbar {
        padding: 10px 12px;
        min-height: 55px;
        gap: 6px;
    }

    .navbar-logo img {
        height: 28px;
    }

    .navbar-left {
        gap: 6px;
    }

    .mobile-search-toggle {
        width: 40px;
        height: 40px;
    }

    .mobile-search-toggle i {
        font-size: 16px;
    }

    .navbar-center {
        padding: 15px;
    }

    .navbar-search {
        height: 52px;
        border-radius: 26px;
    }

    .navbar-search-input {
        padding: 14px 20px;
        font-size: 15px;
    }

    .navbar-search-btn {
        width: 52px;
        height: 52px;
        border-radius: 26px;
        padding: 0;
    }

    .navbar-search-btn i {
        font-size: 22px;
    }

    .navbar-search-clear {
        right: 65px;
        width: 30px;
        height: 30px;
    }

    .navbar-right .btn {
        padding: 11px 13px;
        font-size: 14px;
    }

    .navbar-right .btn i {
        font-size: 17px;
    }

    .btn-deals {
        padding: 8px 10px;
    }

    .btn-deals i {
        font-size: 14px;
    }
}

/* ============================================
   CONTAINER AND LAYOUT
   ============================================ */

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
}

/* Ensure content doesn't overlap navbar */
main {
    padding-top: 20px;
    min-height: calc(100vh - 70px);
}

/* Remove padding and min-height for auth pages */
main:has(.auth-login-page) {
    padding-top: 0;
    min-height: 0;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection colors */
::selection {
    background: #4285f4;
    color: #ffffff;
}

::-moz-selection {
    background: #4285f4;
    color: #ffffff;
}

/* ============================================
   FOOTER - ARGON THEME DESIGN
   ============================================ */

.footer {
    background: #040A18;
    color: #ffffff;
    margin-top: 0;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.footer-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
}

.footer-shape-1 {
    width: 300px;
    height: 300px;
    background: #8728d7; /* Purple */
    top: -50px;
    right: -50px;
}

.footer-shape-2 {
    width: 250px;
    height: 250px;
    background: #0f828a; /* Cyan */
    bottom: -50px;
    left: -50px;
}

/* Remove footer margin for auth pages */
main:has(.auth-login-page) + .footer {
    margin-top: 0;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

/* Footer Main Section */
.footer-main {
    padding: 50px 30px 30px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
}

/* Footer Brand Section */
.footer-brand {
    padding-right: 20px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    height: 45px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-description {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 20px;
}

/* Social Icons */
.footer-social {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.social-icon i {
    font-size: 18px;
}

/* Footer Sections */
.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #ffffff;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 2px;
}

/* Footer Links */
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-links a::before {
    content: '›';
    font-size: 18px;
    font-weight: bold;
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #ffffff;
    transform: translateX(5px);
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* Telegram Section */
/* Telegram Widget Box */
.telegram-widget {
    background: rgba(255,255,255,0.05);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
}

.telegram-widget :is(h3, h4) {
    color: #fff;
    margin: 0 0 12px 0;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.telegram-widget :is(h3, h4) i {
    font-size: 1.1rem;
}

.btn-group {
    display: flex;
    gap: 10px;
}

.tg-btn {
    flex: 1;
    font-size: 0.8rem;
    padding: 8px 5px;
    text-align: center;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    color: white;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.tg-btn.tg-blue {
    background: #0088cc;
}

.tg-btn.tg-red {
    background: #e15554;
}

.tg-btn.tg-social.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.tg-btn.tg-social.twitter {
    background: #000000;
}

.tg-btn.tg-social.facebook {
    background: #1877F2;
}

.tg-btn.tg-social.telegram {
    background: #1DA1F2;
}

.tg-btn.tg-social:hover {
    filter: brightness(1.15);
}

.tg-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.tg-btn i {
    font-size: 14px;
}

/* Footer Bottom */
.footer-bottom {
    background: rgba(0, 0, 0, 0.15);
    padding: 25px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.footer-copyright p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.footer-location {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-disclaimer {
    max-width: 500px;
}

.footer-disclaimer p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    margin: 0;
}

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

/* Tablets */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .footer-brand {
        grid-column: 1 / -1;
        padding-right: 0;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .footer-main {
        padding: 40px 20px 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-brand {
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-title {
        text-align: center;
    }

    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-links {
        align-items: center;
        text-align: center;
    }

    .footer-telegram {
        align-items: center;
    }

    .telegram-group {
        width: 100%;
        text-align: center;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-disclaimer {
        max-width: 100%;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .footer-main {
        padding: 30px 15px 15px;
    }

    .footer-bottom {
        padding: 20px 15px;
    }

    .footer-logo img {
        height: 38px;
    }

    .social-icon {
        width: 36px;
        height: 36px;
    }

    .social-icon i {
        font-size: 16px;
    }
}

/* ============================================
   SEARCH TOAST NOTIFICATIONS
   ============================================ */

.search-toast {
    position: fixed;
    top: 100px;
    right: 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10000;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 400px;
    font-size: 14px;
    border-left: 4px solid #4285f4;
}

.search-toast.show {
    transform: translateX(0);
    opacity: 1;
}

.search-toast-error {
    border-left-color: #f5365c;
}

.search-toast-error i {
    color: #f5365c;
}

.search-toast i {
    font-size: 18px;
    color: #4285f4;
}

.category-title {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.discount-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #FF4444;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(255, 68, 68, 0.4);
    width: fit-content;
    display: inline-block;
}

.merchant-badge {
    text-align: center;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 20px;
}

.merchant-badge img {
    height: 18px;
    width: auto;
    object-fit: contain;
}

.stat-box {
    background: #f0f4ff;
    border: 1px solid #d4e0ff;
    border-radius: 8px;
    padding: 0.35rem 0.6rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat-value {
    font-size: 1rem;
    font-weight: 700;
    color: #4285f4;
}

.stat-label {
    font-size: 0.65rem;
    color: #000000;
    font-weight: 500;
}

@media (max-width: 768px) {

    .category-title {
        font-size: 22px;
    }
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.stat-icon i {
    font-size: 32px;
    color: white;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: white;
    margin: 0;
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {

    .stat-card {
        padding: 20px 16px;
    }

    .stat-icon {
        width: 50px;
        height: 50px;
    }

    .stat-icon i {
        font-size: 24px;
    }

    .stat-number {
        font-size: 24px;
    }

    .stat-label {
        font-size: 12px;
    }
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: #087dff;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 18px;
    color: #a0aec0;
    font-weight: 400;
}

.step-card {
    background: rgba(255, 255, 255, 0.06); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    flex: 1;
    max-width: 320px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;

}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 40px rgba(103, 61, 230, 0.15);
    border-color: rgba(103, 61, 230, 0.2);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #4285f4 0%, #3b82f6 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(103, 61, 230, 0.3);
}

.step-card:hover .step-icon {
    background: #087dff;
    transform: scale(1.1) rotate(5deg);
}

.step-card:hover .step-icon i {
    -webkit-text-fill-color: white;
}

.step-title {
    font-size: 22px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 12px;
}
@media (max-width: 1024px) {

    .step-card {
        padding: 35px 25px;
    }

    .section-title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {

    .section-title {
        font-size: 28px;
    }

    .section-subtitle {
        font-size: 16px;
    }

    .step-card {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 24px;
    }

    .section-subtitle {
        font-size: 14px;
    }

    .step-card {
        padding: 30px 20px;
    }

    .step-title {
        font-size: 18px;
    }
}

.theme-bg.theme-dark {
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: -1;
    background: #0B0E14;
}

.theme-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.6;
}

.shape-1 {
    width: 50vw;
    height: 50vw;
    max-width: 600px;
    max-height: 600px;
    background: #8728d7;
    top: 10%;
    left: -10%;
}

.shape-2 {
    width: 40vw;
    height: 40vw;
    max-width: 500px;
    max-height: 500px;
    background: #0f828a;
    bottom: 0%;
    right: -5%;
}

.shape-3 {
    width: 35vw;
    height: 35vw;
    max-width: 400px;
    max-height: 400px;
    background: #3b1480;
    top: 40%;
    left: 30%;
}

.premium-glass-card {
    background: rgba(255, 255, 255, 0.06) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37) !important;
    color: #f8fafc !important;
}


/* Apply native dark mode controls for inputs */
html.dark {
    color-scheme: dark;
}
/* Shared toast notifications live in a stylesheet so every rendered page keeps
   valid HTML; the component itself is included inside <body>. */
.ap-toast-container {
    position: fixed;
    inset: 96px 22px auto auto;
    z-index: 9999999;
    display: flex;
    width: min(420px, calc(100vw - 28px));
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    isolation: isolate;
}

.ap-toast {
    --ap-toast-accent: var(--pb-primary, #3b82f6);
    display: flex;
    width: 100%;
    min-width: 0;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    overflow: hidden;
    border: 1px solid var(--pb-border, rgba(148, 163, 184, 0.28));
    border-left: 4px solid var(--ap-toast-accent);
    border-radius: 14px;
    background: var(--pb-surface-raised, #0f172a);
    color: var(--pb-heading, #f8fafc);
    font-size: 14px;
    font-weight: 650;
    pointer-events: auto;
    box-shadow: var(--pb-shadow-lg, 0 18px 45px rgba(2, 6, 23, 0.34));
    animation: apToastSlideIn 0.28s ease both;
}

.ap-toast.ap-toast-success { --ap-toast-accent: var(--pb-positive, #10b981); }
.ap-toast.ap-toast-error { --ap-toast-accent: var(--pb-danger, #ef4444); }
.ap-toast.ap-toast-info { --ap-toast-accent: var(--pb-primary, #3b82f6); }
.ap-toast.ap-toast-warning { --ap-toast-accent: var(--pb-warning, #f59e0b); }

.ap-toast-icon {
    flex-shrink: 0;
    font-size: 22px;
}

.ap-toast .ap-toast-icon { color: var(--ap-toast-accent); }

.ap-toast-message {
    flex: 1;
    line-height: 1.4;
    word-break: break-word;
}

.ap-toast-close {
    flex-shrink: 0;
    margin-left: auto;
    padding: 2px;
    border: none;
    background: none;
    color: var(--pb-muted, #cbd5e1);
    font-size: 18px;
    cursor: pointer;
    transition: color 0.2s;
}

.ap-toast-close:hover { color: var(--pb-heading, #ffffff); }

html[data-theme-mode="light"] .ap-toast {
    border-color: var(--pb-border, rgba(148, 163, 184, 0.42));
    border-left-color: var(--ap-toast-accent);
    background: var(--pb-surface-raised, #ffffff);
    color: var(--pb-heading, #0f172a);
    box-shadow: var(--pb-shadow-lg, 0 18px 45px rgba(15, 23, 42, 0.2));
}

html[data-theme-mode="light"] .ap-toast-close { color: var(--pb-muted, #64748b); }
html[data-theme-mode="light"] .ap-toast-close:hover { color: var(--pb-heading, #0f172a); }

.ap-toast.ap-toast-removing {
    animation: apToastSlideOut 0.3s ease forwards;
}

@keyframes apToastSlideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes apToastSlideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

@media (max-width: 480px) {
    .ap-toast-container {
        inset: 84px 12px auto 12px;
        width: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ap-toast,
    .ap-toast.ap-toast-removing {
        animation-duration: 1ms;
    }
}

/* Shared admin/subscription native select fallback; custom dropdowns keep their page styles. */
.dashboard-layout-admin select,
.subscription-page select {
    background-color: var(--pb-surface) !important;
    color: var(--pb-heading) !important;
    border-radius: 10px !important;
    padding: 12px 36px 12px 16px !important;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    background-size: 16px !important;
    border: 1px solid var(--pb-border) !important;
    cursor: pointer;
    font-size: 14px !important;
}
.dashboard-layout-admin select:focus,
.subscription-page select:focus {
    border-color: var(--pb-primary) !important;
    box-shadow: var(--pb-ring) !important;
    outline: none;
}
.dashboard-layout-admin select option,
.subscription-page select option {
    background-color: var(--pb-surface) !important;
    color: var(--pb-heading) !important;
    padding: 10px !important;
}

/* Shared feedback animations used by navbar and account/admin actions. */
.spinner-rotate {
    display: inline-block;
    animation: searchSpin 900ms linear infinite;
}

@keyframes searchSpin {
    to { transform: rotate(360deg); }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(-20px);
        opacity: 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Button Icons */

/* Navbar menu control, shared by both workspace sidebars. */
#sidebar-toggle {
    position: relative;
}

#sidebar-toggle i {
    display: block;
    position: relative;
    color: transparent !important;
    transition: all 0.3s ease;
}
#sidebar-toggle i::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 14px;
    background: 
        linear-gradient(currentColor, currentColor) no-repeat center 0 / 20px 2.5px,
        linear-gradient(currentColor, currentColor) no-repeat center 6px / 20px 2.5px,
        linear-gradient(currentColor, currentColor) no-repeat center 12px / 20px 2.5px;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
body:has(:is(.user-sidebar, .admin-sidebar).active) #sidebar-toggle i::before {
    background: 
        linear-gradient(currentColor, currentColor) no-repeat center 0 / 20px 2.5px,
        linear-gradient(currentColor, currentColor) no-repeat left 6px / 16px 2.5px,
        linear-gradient(currentColor, currentColor) no-repeat center 12px / 20px 2.5px;
}

@media (prefers-reduced-motion: reduce) {
    .spinner-rotate { animation: none; }
}
