:root {
    --primary-color: #0f172a;
    /* Slate 900 */
    --secondary-color: #f59e0b;
    /* Amber 500 */
    --accent-color: #3b82f6;
    /* Blue 500 */
    --bg-color: #f8fafc;
    /* Slate 50 */
    --text-color: #1e293b;
    /* Slate 800 */
    --light-text: #475569;
    /* Slate 500 */
    --border-color: #e2e8f0;
    /* Slate 200 */
    --white: #fff;
    --danger: #ef4444;
    /* Red 500 */
    --success: #10b981;
    /* Emerald 500 */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --header-bg: rgba(255, 255, 255, 0.8);
    --gradient-primary: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --gradient-accent: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --card-bg: #ffffff;
    --card-border: 1px solid var(--border-color);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: #f8f9fa;
    color: #333;
    overflow-x: hidden;
    direction: rtl;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

/* Accessibility: Override Bootstrap text-muted for better contrast */
.text-muted {
    color: #475569 !important;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header & Navbar Optimization */
header {
    background: var(--header-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1050;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar-brand {
    padding: 0;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.logo a:hover {
    transform: scale(1.02);
}

.logo-icon-wrapper {
    background: var(--gradient-accent);
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.4s ease;
}

.custom-navbar {
    display: flex !important;
    flex-direction: row !important;
    /* Force horizontal even on mobile */
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    height: 70px;
    width: 100%;
}

/* Right Side (Start in RTL) */
.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu-trigger {
    background: rgba(0, 0, 0, 0.04);
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--primary-color);
    cursor: pointer;
    transition: 0.3s;
}

.menu-trigger:hover {
    background: rgba(0, 0, 0, 0.08);
    transform: scale(1.05);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.nav-list li {
    display: flex;
    align-items: center;
}

.nav-list li a {
    padding: 8px 15px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.nav-list li a:hover {
    background: rgba(15, 23, 42, 0.05);
    color: var(--secondary-color);
}

.nav-list li a i {
    font-size: 1.1rem;
    color: var(--light-text);
}

.msg-box {
    position: relative;
}

.unread-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger);
    color: white;
    font-size: 0.7rem;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

.add-btn-premium {
    background: var(--gradient-accent) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px !important;
    border-radius: 12px !important;
}

.add-btn-premium i {
    color: white !important;
}

.header-points-box {
    background: rgba(245, 158, 11, 0.05);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 12px;
    padding: 2px 12px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 42px;
    min-width: 100px;
    text-decoration: none !important;
}

.header-points-box:hover {
    background: rgba(245, 158, 11, 0.1);
    transform: translateY(-1px);
}

.nav-list li a:not(.add-btn-premium):not(.header-points-box) {
    height: 42px;
    display: flex;
    align-items: center;
}

.mobile-points-box {
    background: #fff;
    padding: 2px 12px;
    border-radius: 12px;
    border: 1px solid #fcebb6;
    color: #2c3e50;
    text-decoration: none;
    text-align: center;
    line-height: 1.2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 42px;
}

.add-btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

/* Login Button - Desktop */
.login-btn-desktop {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px !important;
    border-radius: 12px !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

.login-btn-desktop:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
}

.login-btn-desktop i {
    color: white !important;
    margin-left: 6px;
}

/* Login Button - Mobile */
.mobile-login-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white !important;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 14px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mobile-login-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.mobile-login-btn i {
    font-size: 0.95rem;
}

/* Left Side (End in RTL) */
.header-left {
    display: flex;
    align-items: center;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: 0.3s;
}

.site-logo:hover {
    transform: scale(1.03);
}

.logo-name {
    font-family: 'Segoe UI', sans-serif;
    font-weight: 850;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-box {
    background: var(--gradient-accent);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: white;
    font-size: 1.3rem;
    box-shadow: 0 5px 15px rgba(245, 158, 11, 0.3);
}

/* Fix Sidebar redundancy & Behavior */
@media (min-width: 992px) {

    #nav-menu,
    .menu-overlay,
    .menu-trigger {
        display: none !important;
    }
}

.menu-close-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

/* Sidebar Navigation (Mobile) */
@media (max-width: 992px) {
    #nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        /* Keep initial hidden state */
        width: 320px;
        /* Slightly wider */
        height: 100vh;
        background: #f8fafc;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
        transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 2000;
        display: block;
        padding: 20px;
        /* Reduced padding */
        overflow-y: auto;
        visibility: hidden;
    }

    #nav-menu.active {
        right: 0;
        visibility: visible;
    }

    #nav-menu .menu-close-wrapper {
        text-align: left;
        margin-bottom: 20px;
    }

    /* Mobile Menu Links - Clean List Style */
    #nav-menu .nav-links {
        padding: 0;
        margin: 0;
        list-style: none;
    }

    #nav-menu .nav-links li {
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    #nav-menu .nav-links li:last-child {
        border-bottom: none;
    }

    #nav-menu .nav-links a {
        display: flex;
        align-items: center;
        padding: 15px 10px;
        color: var(--text-color);
        text-decoration: none;
        font-weight: 600;
        font-size: 0.95rem;
        transition: 0.2s;
    }

    #nav-menu .nav-links a:hover {
        background-color: #f1f5f9;
        color: var(--primary-color);
        padding-right: 15px;
        /* Slight movement for interaction */
    }

    #nav-menu .nav-links a i {
        width: 25px;
        margin-left: 10px;
        text-align: center;
        color: #94a3b8;
        font-size: 1.1rem;
        transition: 0.2s;
    }

    #nav-menu .nav-links a:hover i {
        color: var(--secondary-color);
    }

    /* Menu Headers */
    .menu-header {
        font-size: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: #94a3b8;
        margin: 25px 0 10px;
        font-weight: 700;
        padding-right: 5px;
    }

    /* Toggle Headers */
    .toggle-header {
        display: flex;
        align-items: center;
        padding: 15px 10px;
        cursor: pointer;
        font-weight: 700;
        color: var(--primary-color);
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .toggle-header:hover {
        background-color: #f8fafc;
    }

    /* Submenus - Indented List */
    .submenu {
        background: #fff;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }

    .submenu li {
        border-bottom: none !important;
        /* Remove borders in submenu */
    }

    .submenu a {
        padding-right: 25px !important;
        /* Indent submenu items */
        font-size: 0.9rem !important;
        font-weight: normal !important;
        color: #64748b !important;
    }

    .submenu a:hover {
        color: var(--primary-color) !important;
        background: transparent !important;
        padding-right: 30px !important;
    }

    .submenu.collapsed {
        max-height: 0;
    }

    /* Points Box Mobile - Simple Text Highlight */
    .points-box-mobile {
        background: #fffbef !important;
        color: #d35400 !important;
        border-radius: 8px;
        margin: 10px;
        border: 1px solid #fcebb6;
        justify-content: center;
    }

    .points-box-mobile span {
        font-weight: 800;
    }

    /* Reset Grids */
    #quick-links,
    #account-links {
        display: block;
    }

    /* Hamburger Menu Styles */
    .hamburger {
        padding: 10px 10px;
        display: inline-block;
        cursor: pointer;
        transition-property: opacity, filter;
        transition-duration: 0.15s;
        transition-timing-function: linear;
        font: inherit;
        color: inherit;
        text-transform: none;
        background-color: transparent;
        border: 0;
        margin: 0;
        overflow: visible;
    }

    .hamburger-box {
        width: 30px;
        height: 24px;
        display: inline-block;
        position: relative;
    }

    .hamburger-inner {
        display: block;
        top: 50%;
        margin-top: -2px;
    }

    .hamburger-inner,
    .hamburger-inner::before,
    .hamburger-inner::after {
        width: 30px;
        height: 3px;
        background-color: var(--primary-color);
        border-radius: 4px;
        position: absolute;
        transition-property: transform;
        transition-duration: 0.15s;
        transition-timing-function: ease;
    }

    .hamburger-inner::before,
    .hamburger-inner::after {
        content: "";
        display: block;
    }

    .hamburger-inner::before {
        top: -10px;
    }

    .hamburger-inner::after {
        bottom: -10px;
    }

    /* Squeeze Effect */
    .hamburger--spin .hamburger-inner {
        transition-duration: 0.22s;
        transition-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
    }

    .hamburger--spin .hamburger-inner::before {
        transition: top 0.1s 0.25s ease-in, opacity 0.1s ease-in;
    }

    .hamburger--spin .hamburger-inner::after {
        transition: bottom 0.1s 0.25s ease-in, transform 0.22s cubic-bezier(0.55, 0.055, 0.675, 0.19);
    }

    .hamburger.is-active .hamburger-inner {
        transform: rotate(225deg);
        transition-delay: 0.12s;
        transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
    }

    .hamburger.is-active .hamburger-inner::before {
        top: 0;
        opacity: 0;
        transition: top 0.1s ease-out, opacity 0.1s 0.12s ease-out;
    }

    .hamburger.is-active .hamburger-inner::after {
        bottom: 0;
        transform: rotate(-90deg);
        transition: bottom 0.1s ease-out, transform 0.22s 0.12s cubic-bezier(0.215, 0.61, 0.355, 1);
    }

    /* Standard Menu Links */
    .nav-links a:not(.btn) {
        padding: 14px 16px;
        border-radius: 12px;
        color: var(--text-color);
        font-weight: 600;
        font-size: 0.95rem;
        display: flex;
        align-items: center;
        gap: 12px;
        transition: all 0.2s ease;
        background: #fff;
        border: 1px solid transparent;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    }

    .nav-links a:not(.btn):hover {
        background: #fff;
        border-color: var(--secondary-color);
        color: var(--secondary-color);
        transform: translateX(-5px);
        box-shadow: 0 4px 12px rgba(245, 158, 11, 0.1);
    }

    .nav-links a i {
        width: 24px;
        text-align: center;
        color: var(--light-text);
        transition: 0.2s;
        font-size: 1.1rem;
    }

    .nav-links a:hover i {
        color: var(--secondary-color);
    }

    /* Logout Link Specifics */
    .logout-link {
        margin-top: 25px;
        padding-top: 15px;
        border-top: 1px dashed #e2e8f0;
    }

    .logout-link a {
        background: #fff5f5 !important;
        color: var(--danger) !important;
        border: 1px solid rgba(239, 68, 68, 0.1) !important;
        justify-content: center;
    }

    .logout-link a i {
        color: var(--danger) !important;
    }

    .logout-link a:hover {
        background: var(--danger) !important;
        color: #fff !important;
        transform: none !important;
        box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2) !important;
    }

    .logout-link a:hover i {
        color: #fff !important;
    }
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: var(--radius);
    text-align: center;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: #d35400;
}

.btn-outline {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    padding: 60px 0;
    text-align: center;
    margin-bottom: 30px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
}

.form-control:focus {
    border-color: var(--accent-color);
    outline: none;
}

/* Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    display: none;
    backdrop-filter: blur(2px);
}

.menu-overlay.active {
    display: block;
}

/* Consolidated Auth Form & Alerts */
.auth-form {
    max-width: 400px;
    margin: 50px auto;
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
}

/* Alerts */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: var(--radius);
}

.alert-danger {
    background: #fadbd8;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Footer */
footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 20px 0;
    text-align: center;
    margin-top: 50px;
}

/* Featured Ad */
.ad-card.featured {
    border: 2px solid #f1c40f;
    position: relative;
}

.ad-card.featured::before {
    content: '\f005';
    /* Star icon from FA */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 10px;
    left: 10px;
    background: #f1c40f;
    color: #fff;
    padding: 5px;
    border-radius: 50%;
    z-index: 10;
    font-size: 0.8rem;
    width: 25px;
    height: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

@media (min-width: 992px) {
    .ads-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

.ad-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
}

.ad-card:hover {
    transform: translateY(-5px);
}

.ad-image {
    display: block;
    height: 200px;
    object-fit: cover;
    width: 100%;
    background: #eee;
}

.ad-content {
    padding: 15px;
}

.ad-price {
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.ad-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    color: var(--light-text);
    font-size: 0.9rem;
}

/* Utility classes */
.d-none-mobile {
    display: none !important;
}

@media (min-width: 769px) {
    .d-none-mobile {
        display: block !important;
    }
}

/* Stack Grids */
.ads-grid {
    grid-template-columns: 1fr;
    /* Single column on mobile */
}

@media (max-width: 991px) {

    /* Stack Container Flex items (Category Sidebar, Dashboard Nav) */
    .container {
        flex-direction: column;
    }

    /* Ensure Sidebars take full width */
    aside,
    .msg-sidebar,
    .msg-content,
    .img-preview-container {
        width: 100% !important;
        flex: none !important;
        max-width: 100% !important;
    }

    /* Specific fix for Messages */
    .container>.msg-sidebar {
        border-left: none !important;
        border-bottom: 1px solid #ddd;
        height: 200px !important;
        flex: none;
    }

    .container>.msg-content {
        height: 500px !important;
    }

    /* Filter Sidebar on Category Page */
    aside {
        order: -1;
        margin-bottom: 20px;
    }

    /* Dashboard Nav Links */
    .nav-links a {
        width: 100%;
    }

    body {
        padding-bottom: 70px;
    }
}

/* Bottom Navigation Bar (Mobile) */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--primary-color);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    gap: 4px;
    flex: 1;
    transition: all 0.3s ease;
}

.bottom-nav-item i {
    font-size: 1.25rem;
}

.bottom-nav-item.active {
    color: var(--secondary-color);
}

.bottom-nav-item.add-btn {
    background: var(--gradient-accent);
    color: #fff;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    margin-top: -35px;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
    border: 4px solid var(--bg-color);
    flex: none;
    justify-content: center;
}

.bottom-nav-item.add-btn i {
    font-size: 1.5rem;
}

@media (min-width: 769px) {
    .bottom-nav {
        display: none !important;
    }

    body {
        padding-bottom: 0;
    }
}

.badge-notification {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--danger);
    color: white;
    font-size: 0.7rem;
    padding: 2px 5px;
    border-radius: 50%;
    min-width: 18px;
    text-align: center;
    line-height: 1;
}

/* Authentication Forms (Login/Register) */
.auth-form {
    max-width: 500px;
    margin: 40px auto;
    background: #fff;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.auth-form h2 {
    color: var(--primary-color);
    font-weight: 800;
    margin-bottom: 30px !important;
}

.auth-form .form-label {
    margin-bottom: 8px;
    color: var(--light-text);
}

.auth-form .form-control {
    border-radius: var(--radius-md);
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.auth-form .form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.1);
}

.auth-form .btn-primary {
    background: var(--gradient-accent);
    border: none;
    padding: 14px;
    border-radius: var(--radius-md);
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.auth-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

@media (max-width: 576px) {
    .auth-form {
        margin: 20px 10px;
        padding: 25px;
    }
}

.field-item {
    background: #fff;
    border: 2px solid #cbd5e1;
    padding: 15px;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.field-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-color: var(--secondary-color) !important;
}

/* ================================================
   Modern Hamburger Menu Icon with Animation
   ================================================ */
.hamburger {
    background: transparent;
    border: none;
    padding: 0;
    width: 46px;
    height: 46px;
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}

.hamburger:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

.hamburger:active {
    transform: scale(0.95);
}

.hamburger span {
    display: block;
    width: 24px;
    height: 3px;
    background: #ffffff;
    border-radius: 3px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

/* Animation when menu is open */
.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Pulse animation hint for first visit */
@keyframes pulse-hint {

    0%,
    100% {
        box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
    }

    50% {
        box-shadow: 0 2px 20px rgba(245, 158, 11, 0.5);
    }
}

.hamburger:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.2);
}

/* =========================================
   Premium Search Page Styles
   ========================================= */

/* Search Page Container */
.search-page {
    background-color: #f8fafc !important;
}

/* 1. Premium Sidebar */
.filter-sidebar-custom {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.filter-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.filter-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Custom Form Elements */
.form-control-premium,
.form-select-premium {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.95rem;
    color: #334155;
    transition: all 0.2s ease;
}

.form-control-premium:focus,
.form-select-premium:focus {
    background-color: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.input-group-premium {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.input-group-premium:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background-color: #ffffff;
}

.input-group-premium .input-group-text {
    background: transparent;
    border: none;
    color: #94a3b8;
}

.input-group-premium input {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* 2. Premium Results Header */
.results-header-premium {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.02);
    border-radius: 16px;
    padding: 15px 20px;
}

.results-count-box {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    padding: 6px 12px;
    border-radius: 8px;
    color: #475569;
    font-weight: 600;
    font-size: 0.9rem;
}

.filter-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
}

.filter-badge-primary {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}

.filter-badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.filter-badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.filter-badge-info {
    background: rgba(6, 182, 212, 0.1);
    color: #0891b2;
}

/* 3. Premium Ad Card */
.ad-card-premium {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.ad-card-premium:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.0);
}

.ad-card-img-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.ad-card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ad-card-premium:hover .ad-card-img-wrapper img {
    transform: scale(1.08);
}

.card-overlay-top {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 2;
}

.badge-location {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    color: #1e293b;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-favorite-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.2s;
}

.btn-favorite-circle:hover {
    transform: scale(1.1);
    color: #ef4444;
}

.ad-card-body {
    padding: 15px;
}

.ad-price-premium {
    font-size: 1.15rem;
    font-weight: 800;
    color: #f59e0b;
}

.ad-title-premium {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 8px 0;
    line-height: 1.4;
    height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.ad-footer-premium {
    border-top: 1px solid #f1f5f9;
    padding-top: 10px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-avatar-sm {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}

.btn-filter-submit {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 12px;
    font-weight: 700;
    width: 100%;
    margin-top: 10px;
    transition: all 0.3s;
}

.btn-filter-submit:hover {
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
    transform: translateY(-1px);
}