/* ===================================
   OTXAD - Main Stylesheet
   Bikroy.com Inspired Design
   =================================== */

/* CSS Variables - OTXAD Blue Theme */
:root {
    --primary: #005EB8;
    --primary-dark: #004a94;
    --primary-light: #e6f0fa;
    --secondary: #00b939;
    --accent: #ffc800;
    --accent-dark: #e6b400;
    --danger: #dc3545;
    --warning: #ffc107;
    --success: #28a745;
    --info: #17a2b8;

    --text-dark: #1A1A1A;
    --text-secondary: #6B7280;
    --text-light: #9CA3AF;
    --text-muted: #999999;

    --bg-light: #F5F7FA;
    --bg-white: #ffffff;
    --bg-dark: #1A1A1A;
    --border-color: #E5E7EB;
    --border-light: #F3F4F6;

    --shadow-sm: none;
    --shadow-md: none;
    --shadow-lg: none;
    --shadow-xl: none;

    --radius-sm: 0;
    --radius-md: 0;
    --radius-lg: 0;
    --radius-xl: 0;

    --container-max: 1000px;
    /* Compact Marketplace Standard */
    --container-sm: 900px;
    --header-bg: #005EB8;
    --header-height: 70px;
    --mobile-nav-height: 60px;
    --spacing-base: 8px;
    --spacing-sm: 8px;
    --spacing-default: 16px;
    --spacing-section: 24px;
    --spacing-lg: 32px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    /* Prevent header overlap on mobile */
    padding-top: 0;
}

/* Global Form Styles */
.form-group,
.form-item {
    margin-bottom: 16px;
}

.form-group label,
.form-item label,
label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 13px;
    color: #1f2937;
}

.form-control,
.form-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s;
    background: #ffffff;
    color: #1f2937;
    outline: none;
}

.form-control:focus,
.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 94, 184, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 16px;
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 0;
    }

    .main-content {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: color 0.3s;
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* Container System */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 16px;
}

.container-sm {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Grid System */
.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

@media (max-width: 999px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

/* Utility Classes */
.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.max-w-900 {
    max-width: 900px;
}

.max-w-1000 {
    max-width: 1000px;
}

.px-16 {
    padding-left: 16px;
    padding-right: 16px;
}

.py-24 {
    padding-top: 24px;
    padding-bottom: 24px;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - var(--header-height) - 400px);
    padding-bottom: 0;
}

/* ====================
   Ad Banners — See banner-ad.css
   All banner styles (hero, header, footer, sidebar) are in public/css/banner-ad.css
   ==================== */

/* ====================
   HEADER - Bikroy Style
   ==================== */
.site-header {
    background: var(--header-bg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0;
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.site-header .container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 16px;
    width: 100%;
}

.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 20px;
}

.header-left,
.header-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

.header-left {
    justify-content: flex-start;
}

.header-right {
    justify-content: flex-end;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-text {
    font-size: 28px;
    font-weight: 700;
    color: white;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
}

/* Uploaded site logo image */
.site-logo-img {
    max-height: 36px;
    /* Restored more visibility */
    width: auto;
    transition: transform 0.3s;
}

.site-logo-img:hover {
    transform: scale(1.05);
}

.logo-triangle {
    display: inline-block;
    width: 24px;
    height: 22px;
    position: relative;
    margin: 0 4px;
    vertical-align: middle;
}

.logo-triangle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 22px solid white;
}

.logo-triangle::after {
    content: '';
    position: absolute;
    top: 7px;
    left: 6px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 11px solid var(--header-bg);
}

.logo a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
}

/* Desktop Navigation */
.desktop-nav {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex: 0 1 auto;
    gap: 14px;
    min-width: 0;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    min-width: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    /* Tight grouping for Right Zone */
    flex-shrink: 0;
}

.nav-link-text {
    color: white;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    text-decoration: none;
    transition: all 0.3s;
}

.nav-link-text:hover {
    opacity: 0.8;
}

.location-selector {
    position: relative;
}

.dropdown-wrapper {
    position: relative;
}

.btn-location {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    background: transparent;
    border: none;
    border-radius: 4px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-location:hover {
    background: rgba(255, 255, 255, 0.25);
}

.btn-location .fa-chevron-down {
    font-size: 10px;
    margin-left: 2px;
    transition: transform 0.3s;
}

.hide-temp {
    display: none !important;
}

.btn-location.active .fa-chevron-down {
    transform: rotate(180deg);
}

.btn-language {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    background: transparent;
    border: none;
    border-radius: 4px;
    color: white;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-language:hover {
    background: rgba(255, 255, 255, 0.25);
}

.btn-language .fa-chevron-down {
    font-size: 10px;
    transition: transform 0.3s;
}

.btn-language.active .fa-chevron-down {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: white;
    border-radius: 0;
    /* Professional Sharp Edges */
    box-shadow: none;
    /* No Shadow */
    border: 1px solid var(--border-color);
    min-width: 200px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-search {
    padding: 10px;
    border-bottom: 1px solid var(--border-color);
}

.location-search-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 13px;
    outline: none;
}

.location-search-input:focus {
    border-color: var(--primary);
}

.dropdown-list {
    max-height: 250px;
    overflow-y: auto;
    padding: 6px 0;
}

.dropdown-item {
    display: block;
    padding: 10px 16px;
    color: var(--text-dark);
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background: var(--bg-light);
    color: var(--primary);
}

.dropdown-item.active {
    background: #e8f5e9;
    color: var(--primary);
    font-weight: 600;
}

.language-dropdown {
    min-width: 160px;
}

.language-dropdown .dropdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.language-dropdown .dropdown-item span:last-child {
    color: var(--text-muted);
    font-size: 12px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    /* Tight grouping for Right Zone */
}

/* Header Notifications */
.header-notifications {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 12px;
    margin-right: 15px;
}

.header-notif-item {
    position: relative;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.95);
    font-size: 19px;
    border-radius: 50%;
    transition: all 0.2s ease;
    text-decoration: none !important;
}

.header-notif-item:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    transform: translateY(-1px);
}

.notif-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #ef4444;
    color: white;
    font-size: 9px;
    font-weight: 800;
    min-width: 16px;
    height: 16px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid var(--primary);
    line-height: 1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* User Profile Dropdown */
.user-profile-dropdown .dropdown-toggle {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.user-profile-dropdown .dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0;
    /* Professional Sharp Edges */
}

.user-profile-dropdown .user-greeting {
    font-weight: 600;
}

.user-profile-dropdown .fa-user-circle {
    font-size: 20px;
    opacity: 0.9;
}

.user-profile-dropdown .fa-chevron-down {
    font-size: 10px;
    opacity: 0.7;
}

.profile-dropdown {
    min-width: 240px;
    padding: 12px 0;
    margin-top: 10px;
}

.profile-dropdown .dropdown-header {
    padding: 8px 16px 12px;
    display: flex;
    flex-direction: column;
}

.profile-dropdown .dropdown-header strong {
    display: block;
    font-size: 15px;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.profile-dropdown .dropdown-header span {
    font-size: 12px;
    color: var(--text-secondary);
}

.profile-dropdown .dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 8px 0;
}

.profile-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    font-weight: 500;
}

.profile-dropdown .dropdown-item i {
    width: 20px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 16px;
}

.profile-dropdown .dropdown-item:hover i {
    color: var(--primary);
}

.profile-dropdown .dropdown-item.text-danger i {
    color: var(--danger);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: white;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 0;
    /* Professional Sharp Edges */
    transition: all 0.3s;
    font-weight: 500;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.nav-link i {
    font-size: 16px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border: none;
    border-radius: 0;
    /* Professional Sharp Edges */
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--accent);
    color: var(--text-dark);
}

.btn-primary:hover {
    background: var(--accent-dark);
    color: var(--text-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-post {
    background: var(--accent) !important;
    color: var(--text-dark) !important;
    font-weight: 700;
    padding: 7px 16px;
    font-size: 12px;
    border-radius: 0;
    /* Professional Sharp Edges */
    text-transform: uppercase;
    white-space: nowrap;
    border: none;
    transition: all 0.2s;
}

.btn-post:hover {
    background: #e6b400 !important;
    transform: translateY(-1px);
    box-shadow: none;
    /* No Shadow */
}

.btn-secondary {
    background: var(--bg-light);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    color: white;
}

/* Mobile Drawer */
.mobile-drawer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.mobile-drawer.active {
    display: block;
}

.drawer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.drawer-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 80%;
    width: 85%;
    max-width: 340px;
    height: 100%;
    background: #ffffff;
    overflow-y: auto;
    padding: 0;
    animation: slideIn 0.3s cubic-bezier(0, 0, 0.2, 1);
    box-shadow: none;
    border-right: 1px solid var(--border-color);
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(0);
    }
}

.drawer-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    font-size: 16px;
    width: 32px;
    height: 32px;
    border-radius: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.drawer-user {
    text-align: left;
    padding: 40px 24px 24px;
    background: var(--header-bg);
    color: white;
    margin-bottom: 10px;
}

.drawer-avatar {
    width: 70px;
    height: 70px;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 16px;
    font-size: 28px;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
}

.drawer-user h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: -0.3px;
}

.drawer-user p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    margin-bottom: 0;
}

.drawer-toggle-wrapper {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0;
    padding: 3px;
    margin-top: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.drawer-toggle-btn {
    flex: 1;
    padding: 10px 12px;
    border-radius: 0;
    font-size: 11px;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
    transition: all 0.2s;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none !important;
}

.drawer-toggle-btn.active {
    background: #ffc800;
    color: #1e293b;
    box-shadow: none;
    border: 1px solid var(--primary);
}

.drawer-nav {
    padding: 10px 16px;
}

.drawer-nav-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    color: #334155;
    font-weight: 600;
    font-size: 14px;
    border-radius: 0;
    transition: all 0.2s;
    margin-bottom: 4px;
}

.drawer-nav-item:hover {
    background: #f1f5f9;
    color: #005EB8;
}

.drawer-nav-item i {
    font-size: 18px;
    width: 24px;
    color: #94a3b8;
}

.drawer-nav-item:hover i {
    color: #005EB8;
}

.badge {
    margin-left: auto;
    background: #ef4444;
    color: white;
    padding: 2px 10px;
    border-radius: 0;
    font-size: 10px;
    font-weight: 800;
    box-shadow: none;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.drawer-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 12px 24px;
}

.drawer-setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 32px;
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
}

.text-danger {
    color: #ef4444 !important;
}

/* Switch Toggle */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 0;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 0;
}

input:checked+.slider {
    background-color: var(--primary);
}

input:checked+.slider:before {
    transform: translateX(26px);
}

/* ====================
   MOBILE BOTTOM NAV
   ==================== */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    height: 65px;
    border-top: 1px solid #f1f5f9;
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
        justify-content: space-around;
        align-items: center;
        padding: 0 10px;
    }
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    color: #64748b;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s;
    height: 100%;
}

.nav-item i {
    font-size: 20px;
    margin-bottom: 4px;
}

.nav-item.active {
    color: var(--primary);
}

/* Post Button Vault Styling */
.nav-item-post {
    position: relative;
    top: -15px; /* Float above the bar */
}

.post-btn-vault {
    width: 52px;
    height: 52px;
    background: #f59e0b;
    color: #0f172a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
    border: 4px solid #ffffff;
    font-size: 20px;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-item-post:hover .post-btn-vault {
    transform: scale(1.1) rotate(5deg);
}

.post-label {
    margin-top: 5px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.nav-badge {
    position: absolute;
    top: 5px;
    right: 50%;
    transform: translateX(20px);
    background: var(--danger);
    color: white;
    padding: 1px 5px;
    border-radius: 0;
    font-size: 10px;
    font-weight: 600;
}




/* ====================
   CARDS & COMPONENTS
   ==================== */
.card {
    background: var(--bg-white);
    border-radius: 0;
    box-shadow: none;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s;
}

.card:hover {
    box-shadow: none;
    border-color: var(--primary);
    transform: translateY(-2px);
}

.card-img {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-img-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 10px;
    border-radius: 0;
    font-size: 12px;
}

.card-body {
    padding: 15px;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.card-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 13px;
}

.card-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.badge-verified {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #e8f5e9;
    color: var(--secondary);
    padding: 3px 8px;
    border-radius: 0;
    font-size: 12px;
    font-weight: 500;
}

/* Boost Ad slider overrides */
.bk-bst-wrapper {
    padding: 0 40px !important;
    overflow: visible !important;
}

.bk-adv-nav {
    width: 44px !important;
    height: 44px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}

.bk-adv-nav.prev {
    left: -30px !important;
}

.bk-adv-nav.next {
    right: -30px !important;
}

.bk-bst-slides {
    min-height: 280px !important;
    padding-top: 20px !important;
}

.bk-bst-slide {
    gap: 48px !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
}

.bk-bst-slide-img {
    width: 60% !important;
    padding: 24px !important;
    min-height: 250px !important;
}

.bk-bst-slide-text {
    width: 38% !important;
    min-width: 260px !important;
}

.bk-bst-slide-img svg {
    width: 100% !important;
    height: auto !important;
}

.bk-bst-slide-text h3 {
    font-size: 20px !important;
    margin-bottom: 16px !important;
}

.bk-bst-slide-text p {
    font-size: 15px !important;
    line-height: 1.7 !important;
    margin-bottom: 18px !important;
}

.bk-bst-slide-text li {
    margin-bottom: 10px !important;
}

/* ====================
   GRID LAYOUTS
   ==================== */
.grid {
    display: grid;
    gap: 20px;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* ====================
   RESPONSIVE - TABLET
   ==================== */
@media (max-width: 1024px) {
    .footer-main-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ====================
   RESPONSIVE - MOBILE
   ==================== */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    .site-header {
        height: 55px !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
        background: rgba(0, 94, 184, 0.95) !important;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
        margin-bottom: 0 !important;
    }

    .header-wrapper {
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0;
    }

    .header-left {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .logo {
        margin-left: 0;
    }

    .logo a {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .logo-text-bikroy {
        display: block;
        color: white;
        font-size: 18px;
        font-weight: 800;
        letter-spacing: -0.5px;
        text-transform: uppercase;
    }

    .mobile-menu-toggle {
        display: block;
        order: -1;
        margin-left: 0;
        margin-right: 10px;
        background: rgba(255, 255, 255, 0.1);
        border: none;
        color: white;
        font-size: 18px;
        width: 38px;
        height: 38px;
        border-radius: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .header-right {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .profile-dropdown {
        position: fixed !important;
        top: 60px !important;
        right: 10px !important;
        left: auto !important;
        width: calc(100% - 20px) !important;
        max-width: 280px !important;
        margin-top: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        border: 1px solid #f1f5f9 !important;
    }

    .profile-dropdown .dropdown-item {
        padding: 14px 20px !important;
        font-size: 14px !important;
        font-weight: 600 !important;
    }

    .chat-link,
    .profile-toggle-btn {
        padding: 0 !important;
        margin: 0 !important;
        background: none !important;
        border: none !important;
        color: white !important;
        font-size: 20px !important;
        width: 38px;
        height: 38px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 0;
        transition: background 0.2s;
    }

    .profile-toggle-btn:active {
        background: rgba(255, 255, 255, 0.15);
    }

    .chat-link i,
    .profile-toggle-btn i {
        display: block !important;
    }

    .hidden-mobile {
        display: none !important;
    }

    .site-logo-img {
        max-height: 26px;
        width: auto;
    }

    .mobile-bottom-nav {
        display: flex;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        border-top: 1px solid #f1f5f9;
        box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.05);
    }

    .site-header .profile-toggle-btn {
        display: none !important;
    }

    .main-content {
        padding-top: 0 !important;
        margin-top: 0 !important;
        padding-bottom: 0;
        min-height: auto;
    }

    .site-footer {
        margin-bottom: calc(60px + env(safe-area-inset-bottom));
        margin-top: 0;
        padding-top: 25px;
        background: #f5f7f8;
    }

    .mobile-location-bar {
        background: #fdfdfd;
        border-bottom: 1px solid #eee;
        padding: 10px 0;
        position: sticky;
        top: 55px;
        z-index: 998;
    }

    .location-bar-wrapper {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 13px;
        color: var(--text-secondary);
        font-weight: 500;
    }

    .location-bar-wrapper i:first-child {
        color: var(--primary);
    }

    .location-bar-wrapper i:last-child {
        margin-left: auto;
        font-size: 10px;
        color: #999;
    }

    .current-location {
        color: var(--text-dark);
        font-weight: 600;
    }


    .app-buttons {
        flex-direction: column;
    }
}

/* ====================
   UTILITY CLASSES
   ==================== */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-primary {
    color: var(--primary);
}

.text-secondary {
    color: var(--text-secondary);
}

.text-danger {
    color: var(--danger);
}

.text-success {
    color: var(--success);
}

.mt-1 {
    margin-top: 10px;
}

.mt-2 {
    margin-top: 20px;
}

.mt-3 {
    margin-top: 30px;
}

.mb-1 {
    margin-bottom: 10px;
}

.mb-2 {
    margin-bottom: 20px;
}

.mb-3 {
    margin-bottom: 30px;
}

.hidden {
    display: none;
}

.visible-mobile {
    display: none;
}

@media (max-width: 768px) {
    .visible-mobile {
        display: block;
    }

    .hidden-mobile {
        display: none !important;
    }
}

/* ====================
   HERO SECTION - Bikroy Style
   ==================== */
.hero-section {
    background: var(--primary);
    padding: 40px 0 40px;
    text-align: center;
}

.hero-content h1,
.hero-content h2 {
    color: white;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.hero-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    margin-bottom: 30px;
}

.search-form {
    max-width: 600px;
    margin: 0 auto;
}

.search-wrapper {
    display: flex;
    background: white;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: none;
    border: 1px solid var(--border-color);
}

.search-wrapper input {
    flex: 1;
    padding: 16px 24px;
    border: none;
    font-size: 16px;
    outline: none;
}

.search-wrapper button {
    padding: 16px 28px;
    background: var(--accent);
    border: none;
    color: var(--text-dark);
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s;
}

.search-wrapper button:hover {
    background: var(--accent-dark);
}

/* ====================
   CATEGORIES SECTION
   ==================== */
.categories-section,
.featured-ads-section,
.about-section,
.quick-links-section,
.promo-banners-section {
    background: #ffffff !important;
}

.section-header {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.section-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.categories-grid-clean {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 12px !important;
}

.category-item-clean {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    background: #ffffff;
    border-radius: 0;
    transition: all 0.2s;
    text-decoration: none;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.category-item-clean:hover {
    background: #f8fafc;
    transform: translateY(-1px);
    box-shadow: none;
    border-color: var(--primary);
}

.category-icon-clean {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #2f3e4f;
    background: rgba(15, 23, 42, 0.04);
    border-radius: 0;
    box-shadow: none;
    flex-shrink: 0;
}

.category-icon-clean i,
.category-icon-clean svg {
    color: inherit !important;
    width: 1.2em;
    height: 1.2em;
    fill: currentColor;
    stroke: currentColor;
    line-height: 1;
}

.category-item-clean:hover .category-icon-clean {
    transform: translateY(0);
}

.category-details-clean {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.category-details-clean h4 {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin: 0;
    line-height: 1.2;
}

.category-count-clean {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
    font-weight: 400;
}
}

.category-count-clean {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

/* ====================
   FEATURED ADS SECTION
   ==================== */
.featured-ads-section {
    padding: 40px 0;
    background: var(--bg-light);
}

.featured-ads-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.featured-ads-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
}

.view-all {
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
    font-size: 14px;
}

.view-all:hover {
    text-decoration: underline;
}

.featured-ads-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.featured-ad-card {
    background: white;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
}

.featured-ad-card:hover {
    box-shadow: none;
    border-color: var(--primary);
    transform: translateY(-3px);
}

.featured-ad-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: var(--bg-light);
    position: relative;
}

.featured-ad-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ad-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 0;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.featured-ad-details {
    padding: 15px;
}

.featured-ad-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.featured-ad-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.featured-ad-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
}

/* Auth Modal Overlay Fixes */
.auth-modal-overlay {
    z-index: 9999 !important;
    background: rgba(0, 0, 0, 0.85);
    padding-top: 20px;
    /* Space from top */
}

@media (max-width: 768px) {
    .auth-modal-overlay {
        padding: 0;
        align-items: flex-start;
    }

    .auth-modal-container {
        height: 100%;
        max-width: 100%;
    }

    .auth-modal {
        height: 100%;
        border-radius: 0;
        display: block;
        overflow-y: auto;
    }

    .auth-modal-close {
        top: 15px;
        right: 15px;
        color: #1f2937;
        background: #f3f4f6;
        border-radius: 50%;
    }
}

/* ====================
   RESPONSIVE ADJUSTMENTS
   ==================== */
@media (max-width: 1024px) {

    .categories-grid-clean {
        grid-template-columns: 1fr;
    }

    .featured-ads-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .categories-grid-clean {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .featured-ads-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .hero-content h1,
    .hero-content h2 {
        font-size: 28px;
    }

    .container {
        padding: 0 12px;
    }
}

@media (max-width: 480px) {

    .categories-grid-clean {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .featured-ads-grid {
        grid-template-columns: 1fr;
    }
}

/* Removed redundant Featured Ads section to prevent conflict with home.css */

/* ====================
   GLOBAL FOOTER STYLES (ikman.lk Style — Light)
   ==================== */
.site-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e5e7eb;
    padding: 40px 0 0;
    color: #374151;
    font-size: 14px;
}

/* Row 1: 4-column link grid */
.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 32px;
    padding-bottom: 32px;
}



.footer-col-title {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 14px 0;
}

.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav li {
    margin-bottom: 9px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-nav a {
    color: #6b7280;
    text-decoration: none;
    font-size: 13.5px;
    transition: color 0.15s;
}

.footer-nav a:hover {
    color: #111827;
}

.footer-flag {
    font-size: 16px;
    line-height: 1;
}

/* App Badges */
.footer-app-badges {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-app-badges a {
    display: inline-block;
    line-height: 0;
}

.footer-app-badges img {
    height: 38px;
    width: auto;
    display: block;
}

/* Social icons */
.footer-social-row {
    display: flex;
    justify-content: flex-start;
    gap: 12px;
    margin-top: 20px;
}

.footer-social-icon {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    background: #e5e7eb;
    color: #374151;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.footer-social-icon:hover {
    background: #111827;
    color: #fff;
}

/* Bottom bar */
.footer-bottom-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 18px 0 20px;
    text-align: center;
}

.footer-copyright-text {
    font-size: 12px;
    color: #9ca3af;
    margin: 0;
}

.footer-brand-logo {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 18px;
    font-weight: 900;
    color: #111827;
    letter-spacing: -0.03em;
}



/* Mobile footer */
@media (max-width: 768px) {
    .site-footer {
        padding: 0;
    }

    .footer-links-grid {
        grid-template-columns: 1fr;
        gap: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

    .footer-col {
        border-bottom: 1px solid #e5e7eb;
        padding: 0;
    }

    .footer-col-title {
        cursor: pointer;
        padding: 14px 0;
        margin: 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .footer-col-title::after {
        content: '\f078';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 11px;
        color: #9ca3af;
        transition: transform 0.25s;
    }

    .footer-col.active .footer-col-title::after {
        transform: rotate(180deg);
    }

    .footer-nav,
    .footer-app-badges {
        display: none;
        padding-bottom: 12px;
    }

    .footer-col.active .footer-nav,
    .footer-col.active .footer-app-badges {
        display: block;
    }

    .footer-col.active .footer-app-badges {
        display: flex;
    }



    .footer-social-row {
        padding: 10px 0;
        justify-content: center;
    }

    .footer-bottom-bar {
        padding: 16px 0 80px;
        /* Extra bottom padding for mobile nav */
    }
}

/* Header Avatar Styles */
.header-avatar-container {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
}

.header-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ====================
   PREMIUM MOBILE ENHANCEMENTS
   ==================== */
@media (max-width: 768px) {

    /* PREMIUM MOBILE DRAWER */
    .mobile-drawer {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 2000;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .mobile-drawer.active {
        visibility: visible;
    }

    .drawer-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(15, 23, 42, 0.6);
        backdrop-filter: blur(4px);
        opacity: 0;
        transition: opacity 0.4s ease;
    }

    .mobile-drawer.active .drawer-overlay {
        opacity: 1;
    }

    .drawer-content {
        position: absolute;
        top: 0;
        left: 0;
        width: 85%;
        max-width: 320px;
        height: 100%;
        background: white;
        transform: translateX(-100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        flex-direction: column;
        box-shadow: 20px 0 50px rgba(0, 0, 0, 0.15);
    }

    .mobile-drawer.active .drawer-content {
        transform: translateX(0);
    }

    .drawer-close {
        position: absolute;
        top: 20px;
        right: 15px;
        width: 40px;
        height: 40px;
        background: white;
        border: none;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        color: #1e293b;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        opacity: 0;
        transition: all 0.3s 0.2s;
    }

    .mobile-drawer.active .drawer-close {
        opacity: 1;
    }

    .drawer-user {
        padding: 40px 24px 30px;
        background: var(--primary);
        color: white;
        position: relative;
        overflow: hidden;
    }

    .drawer-user::after {
        content: '';
        position: absolute;
        bottom: -50px;
        right: -50px;
        width: 150px;
        height: 150px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 50%;
    }

    .drawer-avatar {
        width: 64px;
        height: 64px;
        background: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 32px;
        color: var(--primary);
        margin-bottom: 16px;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    }

    .drawer-user-info h3 {
        font-size: 18px;
        font-weight: 700;
        margin: 0 0 4px 0;
        letter-spacing: -0.01em;
    }

    .drawer-user-info p {
        font-size: 13px;
        color: rgba(255, 255, 255, 0.8);
        margin: 0;
    }

    .drawer-nav {
        padding: 20px 0;
        flex: 1;
        overflow-y: auto;
    }

    .drawer-nav-item {
        display: flex;
        align-items: center;
        padding: 12px 24px;
        color: #334155;
        text-decoration: none;
        font-size: 15px;
        font-weight: 600;
        transition: all 0.2s;
        gap: 16px;
    }

    .drawer-nav-item i {
        width: 24px;
        font-size: 18px;
        color: #64748b;
        text-align: center;
    }

    .drawer-nav-item:hover,
    .drawer-nav-item.active {
        background: #f1f5f9;
        color: var(--primary);
    }

    .drawer-nav-item:hover i {
        color: var(--primary);
    }

    .drawer-divider {
        height: 1px;
        background: #f1f5f9;
        margin: 8px 24px;
    }

    .drawer-settings {
        padding: 16px 24px;
    }

    .drawer-setting-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 14px;
        color: #64748b;
        margin-bottom: 12px;
    }

    .drawer-nav-bottom {
        padding-bottom: 40px;
    }

    .site-header {
        height: 60px !important;
        background: var(--header-bg) !important;
        box-shadow: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    }

    .header-wrapper {
        display: grid !important;
        grid-template-columns: 20% 1fr 20% !important;
        align-items: center !important;
        padding: 0 10px !important;
        height: 60px !important;
        /* Fixed height for consistency */
        width: 100% !important;
    }

    .header-left {
        display: flex !important;
        justify-content: flex-start !important;
        align-items: center !important;
        grid-column: 1 !important;
        position: static !important;
        transform: none !important;
        left: auto !important;
    }

    .mobile-menu-toggle {
        display: flex !important;
        background: transparent !important;
        border: none !important;
        color: white !important;
        font-size: 24px !important;
        padding: 0 !important;
        cursor: pointer !important;
    }

    .logo {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        grid-column: 2 !important;
        margin: 0 !important;
        width: 100% !important;
        height: 100% !important;
        position: static !important;
        transform: none !important;
    }

    .logo-img-mobile {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        height: 100% !important;
    }

    .mobile-logo-img {
        max-height: 54px !important;
        width: auto !important;
        max-width: 100% !important;
        object-fit: contain !important;
    }

    .header-right {
        display: flex !important;
        justify-content: flex-end !important;
        align-items: center !important;
        grid-column: 3 !important;
        position: static !important;
        transform: none !important;
        right: auto !important;
    }

    .header-search-mobile {
        display: flex !important;
        justify-content: flex-end !important;
    }

    .visible-mobile.header-notif-item {
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 32px !important;
        height: 32px !important;
        color: white !important;
    }

    .mobile-menu-toggle {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 32px !important;
        height: 32px !important;
        font-size: 24px !important;
        background: transparent !important;
        border-radius: 0 !important;
        border: none !important;
        color: white !important;
        padding: 0 !important;
    }

    .site-logo-img {
        max-height: 28px !important;
    }

    .text-yellow {
        color: var(--accent) !important;
    }

    .desktop-nav {
        display: none !important;
    }

    /* Premium Mobile Bottom Nav (OTXAD Signature Style) */
    .mobile-bottom-nav {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 70px;
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.08);
        border-top: 1px solid rgba(226, 232, 240, 0.8);
        justify-content: space-around;
        align-items: center;
        padding: 0 10px;
        z-index: 9999;
        padding-bottom: env(safe-area-inset-bottom);
    }
    
    .mobile-bottom-nav .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        color: #64748b;
        font-size: 10px;
        font-weight: 700;
        text-decoration: none;
        width: 20%;
        position: relative;
        transition: all 0.2s ease;
    }

    .mobile-bottom-nav .nav-item i {
        font-size: 22px;
        margin-bottom: 2px;
    }

    .mobile-bottom-nav .nav-item.active {
        color: var(--primary);
    }

    .mobile-bottom-nav .nav-item.active i {
        transform: translateY(-2px);
    }

    .nav-item-post {
        width: 22%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: relative;
        margin-top: -35px; /* Elevated position for prominence */
    }

    .post-btn-vault {
        width: 64px !important;
        height: 64px !important;
        aspect-ratio: 1 / 1 !important;
        background: linear-gradient(135deg, #ffc800 0%, #ffb800 100%) !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
        align-self: center !important;
        color: #004b87 !important;
        font-size: 30px !important;
        box-shadow: 0 8px 25px rgba(255, 184, 0, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.5) !important;
        margin-bottom: 8px !important;
        text-decoration: none !important;
        border: 5px solid #ffffff !important; /* White inner ring for contrast */
        outline: 2px solid #004b87 !important; /* The requested Blue Outline */
        z-index: 10001 !important;
        transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    }

    .post-btn-vault:active {
        transform: scale(0.9) !important;
    }

    .post-label {
        font-size: 11px !important;
        font-weight: 900 !important;
        color: #004b87 !important; /* Match the outline color */
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
    }

        .nav-badge {
            position: absolute;
            top: -2px;
            right: 25%;
            background: #ef4444;
            color: white;
            font-size: 9px;
            font-weight: 800;
            min-width: 16px;
            height: 16px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 2px solid #fff;
        }
    }

    /* Close @media (max-width: 768px) */

    /* ============================================================
       OTXAD AUTHORITATIVE HEADER MANAGEMENT
       Consolidated to prevent layout leakage and ensure cross-device stability.
       ============================================================ */

    /* --- MOBILE HEADER (MAX-WIDTH: 991PX) --- */
    @media (max-width: 991px) {
        .site-header {
            background: var(--header-bg) !important;
            height: 60px !important;
            display: flex !important;
            align-items: center !important;
        }

        .header-wrapper {
            display: flex !important;
            justify-content: space-between !important;
            align-items: center !important;
            width: 100% !important;
            padding: 0 15px !important;
        }

        .header-group-left {
            display: flex !important;
            flex-direction: row-reverse !important; /* Visual: [Menu] [Logo] */
            align-items: center !important;
            gap: 15px !important;
        }

        /* Hide language on mobile to save space */
        .desktop-nav {
            display: none !important;
        }

        .mobile-menu-toggle {
            display: flex !important;
            order: 2 !important; /* Higher order in row-reverse = Far Left */
            background: transparent !important;
            border: none !important;
            color: white !important;
            font-size: 24px !important;
        }

        .logo {
            display: flex !important;
            order: 1 !important; /* Lower order in row-reverse = Right of Menu */
        }

        .mobile-logo-img {
            max-height: 30px !important;
        }
    }

    /* --- DESKTOP HEADER (MIN-WIDTH: 992PX) --- */
    @media (min-width: 992px) {
        .site-header {
            background: var(--header-bg) !important;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
            height: auto !important;
            padding: 10px 0 !important;
        }

        .header-wrapper {
            display: flex !important;
            justify-content: space-between !important;
            align-items: center !important;
            width: 100% !important;
        }

        /* Branding Group: Logo then Language */
        .header-group-left {
            display: flex !important;
            flex-direction: row !important;
            align-items: center !important;
            gap: 2px !important; /* Tight adjacency as requested */
            flex: 0 0 auto !important;
        }

        .mobile-menu-toggle {
            display: none !important;
        }

        .logo {
            display: flex !important;
            align-items: center !important;
            margin: 0 !important;
            flex: 0 0 auto !important;
        }

        .site-logo-img {
            max-height: 38px !important;
            width: auto !important;
            display: block !important;
        }

        /* Language Selector Container */
        .header-left {
            display: flex !important;
            align-items: center !important;
            margin: 0 !important;
            flex: 0 0 auto !important;
            position: static !important;
            transform: none !important;
            left: auto !important;
        }

        .desktop-nav {
            display: flex !important;
            align-items: center !important;
            gap: 0 !important;
        }

        .btn-language {
            border: none !important;
            background: transparent !important;
            color: #ffffff !important;
            font-weight: 700 !important;
            text-transform: uppercase !important;
            display: flex !important;
            align-items: center !important;
            gap: 5px !important;
            padding: 0 !important;
        }

        /* Right Side Actions: Profile and Post Ad */
        .header-right {
            display: flex !important;
            align-items: center !important;
            gap: 30px !important;
            flex: 0 0 auto !important;
        }

        .profile-toggle-btn {
            color: #ffffff !important;
            font-weight: 700 !important;
            width: auto !important;
            padding: 0 10px !important;
            display: flex !important;
            flex-direction: row !important;
            align-items: center !important;
            justify-content: center !important;
            gap: 6px !important;
        }

        .profile-toggle-btn i {
            display: inline-block !important;
            margin-right: 5px;
        }

        /* Fix: ad-detail.css sets .hidden-mobile { display: block } which clashes */
        .profile-toggle-btn.hidden-mobile,
        a.profile-toggle-btn {
            display: flex !important;
            flex-direction: row !important;
            align-items: center !important;
            gap: 6px !important;
        }

        .btn-post {
            background: #ffc800 !important;
            color: #000 !important;
            padding: 0 20px !important;
            font-weight: 800 !important;
            height: 38px !important;
            display: flex !important;
            align-items: center !important;
            border-radius: 2px !important;
        }
    }