/* ============================================
   MODERN NAVBAR & FOOTER STYLES
   Creative, Animated, and Fully Responsive
   ============================================ */

/* ============================================
   NAVBAR STYLES
   ============================================ */

:root {
    --text-light: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    /* Footer / Navbar palette mapping — maps to global palette in main.css */
    --hf-bg-1: var(--primary-dark);
    --hf-bg-2: var(--primary);
    --hf-border: rgba(255, 255, 255, 0.08);
    --hf-glass: rgba(255, 255, 255, 0.05);
    --hf-social-shadow: rgba(0, 0, 0, 0.25);
    --hf-selection: rgba(0, 0, 0, 0.12);
}

/* Base Navbar */
.modern-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--navbar-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--navbar-border);
    transition: all var(--transition-smooth);
    padding: 1rem 0;
}

.modern-navbar .container {
    padding-left: 1rem;
    padding-right: 1rem;
}

.modern-navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow-lg);
    background: var(--navbar-bg);
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 100%;
}

/* Logo */
.navbar-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform var(--transition-smooth);
}

.navbar-logo:hover {
    transform: translateY(-2px);
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    font-size: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse 2s ease-in-out infinite;
}

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

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-main {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: -0.5px;
}

.logo-sub {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* Desktop Menu */
.desktop-menu {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    justify-content: space-between;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: nowrap;
}

/* Nav Items */
.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 0.9rem;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    border-radius: 12px;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.nav-link::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-smooth);
    border-radius: 12px;
    z-index: -1;
}

.nav-link:hover {
    color: var(--text-light);
    transform: translateY(-2px);
}

.nav-link:hover::before {
    opacity: 0.1;
}

.nav-icon {
    font-size: 1.1rem;
    transition: transform var(--transition-smooth);
}

.nav-link:hover .nav-icon {
    transform: rotate(10deg) scale(1.1);
}

.arrow-icon {
    font-size: 0.7rem;
    margin-left: 0.25rem;
    transition: transform var(--transition-smooth);
}

.dropdown-mega:hover .arrow-icon {
    transform: rotate(180deg);
}

/* Mega Menu */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 1rem;
    background: var(--navbar-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--navbar-border);
    border-radius: 16px;
    padding: 1.5rem;
    min-width: 400px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-smooth);
    box-shadow: var(--shadow-lg);
}

.dropdown-mega:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    margin-top: 0.5rem;
}

.mega-menu-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.mega-menu-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mega-menu-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mega-menu-link {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 8px;
    transition: all var(--transition-smooth);
    font-size: 0.9rem;
}

.mega-menu-link:hover {
    color: var(--text-light);
    background: var(--navbar-glass);
    transform: translateX(5px);
}

/* Navbar Actions */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.nav-action-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-smooth);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    color: var(--text-light);
    white-space: nowrap;
}

/* Language dropdown button to visually match nav-action buttons */
.nav-language-switcher .nav-action-btn {
    padding: 0.45rem 0.6rem;
    width: auto;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--navbar-glass);
    color: var(--text-light) !important;
    border: 1px solid var(--navbar-border);
}
.nav-language-switcher .nav-action-btn:hover {
    background: var(--gradient-primary);
    border-color: transparent;
}
.nav-language-switcher .dropdown-menu {
    background: var(--navbar-bg);
    border: 1px solid var(--navbar-border);
    color: var(--text-light);
}
.nav-language-switcher .dropdown-item {
    color: var(--text-muted);
}
.nav-language-switcher .dropdown-item:hover {
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.03);
}

/* Hidden form utility (screen-reader accessible) */
.sr-only-form {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.nav-search-btn {
    background: var(--navbar-glass);
    color: var(--text-light);
    border: 1px solid var(--navbar-border);
    width: 42px;
    height: 42px;
    padding: 0;
    justify-content: center;
}

.nav-search-btn:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    transform: rotate(90deg) scale(1.1);
}

.login-btn {
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--navbar-border);
}

.login-btn:hover {
    background: var(--navbar-glass);
    border-color: var(--text-light);
}

.register-btn {
    background: var(--gradient-primary);
    color: var(--text-light);
    border: none;
    box-shadow: 0 4px 15px var(--hf-social-shadow);
}

.register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--hf-social-shadow);
}

/* User Dropdown */
.dropdown-user {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.9rem;
    background: var(--navbar-glass);
    border: 1px solid var(--navbar-border);
    border-radius: 50px;
    color: var(--text-light);
    cursor: pointer;
    transition: all var(--transition-smooth);
}

.user-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.user-name {
    font-weight: 600;
    font-size: 0.85rem;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-badge {
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-admin {
    background: var(--gradient-accent);
}

.badge-agent {
    background: var(--gradient-success);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.75rem;
    background: var(--navbar-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--navbar-border);
    border-radius: 16px;
    padding: 0.5rem;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-smooth);
    box-shadow: var(--shadow-lg);
}

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

.dropdown-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 10px;
    transition: all var(--transition-smooth);
    font-size: 0.9rem;
}

.dropdown-link:hover {
    color: var(--text-light);
    background: var(--navbar-glass);
}

.dropdown-divider {
    height: 1px;
    background: var(--navbar-border);
    margin: 0.5rem 0;
}

.dropdown-section-title {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logout-link {
    color: #f87171 !important;
}

.logout-link:hover {
    background: rgba(248, 113, 113, 0.1) !important;
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-smooth);
    overflow-y: auto;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.nav-search-container {
    max-width: 800px;
    width: 90%;
    position: relative;
    transform: scale(0.9);
    transition: transform var(--transition-bounce);
    margin: 2rem auto;
    padding: 0 1rem;
}

.search-overlay.active .nav-search-container {
    transform: scale(1);
}

.search-close {
    position: absolute;
    top: 10px;
    right: 25px;
    background: var(--navbar-glass);
    border: 1px solid var(--navbar-border);
    color: var(--text-light);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-smooth);
    z-index: 10;
}

.search-close:hover {
    background: var(--gradient-accent);
    transform: rotate(90deg);
}

.search-content {
    background: var(--navbar-bg);
    border: 1px solid var(--navbar-border);
    border-radius: 24px;
    padding: 3rem;
}

.search-title {
    color: var(--text-light);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.search-form {
    display: flex;
    gap: 1rem;
}

.search-input-wrapper {
    position: relative;
    flex: 1;
}

.search-icon {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.2rem;
}

.search-input {
    width: 100%;
    padding: 1.25rem 1.5rem 1.25rem 4rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--navbar-border);
    border-radius: 16px;
    color: var(--text-light);
    font-size: 1.1rem;
    transition: all var(--transition-smooth);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-dark);
    background: rgba(255, 255, 255, 0.08);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-submit-btn {
    padding: 1.4rem 2rem;
    background: var(--light-bg);
    border: none;
    border-radius: 16px;
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-smooth);
    box-shadow: 0 4px 15px var(--shadow);
}

.search-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-hover);
}

#currencyDropdown:hover {
    color: var(--secondary);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger {
    width: 28px;
    height: 3px;
    background: var(--text-light);
    border-radius: 3px;
    transition: all var(--transition-smooth);
}

.mobile-toggle.active .hamburger:nth-child(1) {
    transform: rotate(45deg) translateY(9px);
}

.mobile-toggle.active .hamburger:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active .hamburger:nth-child(3) {
    transform: rotate(-45deg) translateY(-9px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background: var(--navbar-bg);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--navbar-border);
    transition: right var(--transition-smooth);
    z-index: 999;
    overflow-y: auto;
}

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

.mobile-menu-content {
    padding: 6rem 1.5rem 8rem;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 12px;
    transition: all var(--transition-smooth);
    font-weight: 500;
}

.mobile-nav-link:hover,
.mobile-nav-link.highlighted {
    color: var(--text-light);
    background: var(--navbar-glass);
}

.mobile-nav-link i {
    font-size: 1.2rem;
    width: 24px;
}

.mobile-divider {
    height: 1px;
    background: var(--navbar-border);
    margin: 1rem 0;
}

.mobile-section-title {
    padding: 0.75rem 1.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Mobile Dropdowns */
.mobile-dropdown {
    margin-bottom: 0.5rem;
}

.mobile-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--navbar-glass);
    border: 1px solid var(--navbar-border);
    border-radius: 12px;
    color: var(--text-light);
    text-decoration: none;
    transition: all var(--transition-smooth);
    font-weight: 500;
    cursor: pointer;
    font-size: 1rem;
}

.mobile-dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.mobile-dropdown-toggle i:first-child {
    font-size: 1.2rem;
    width: 24px;
}

.mobile-dropdown-toggle span {
    flex: 1;
    text-align: left;
}

.mobile-dropdown-toggle .dropdown-arrow {
    font-size: 0.875rem;
    transition: transform var(--transition-smooth);
    width: auto;
}

.mobile-dropdown-toggle .dropdown-arrow.rotated {
    transform: rotate(180deg);
}

.mobile-dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-smooth);
    margin-top: 0.5rem;
}

.mobile-dropdown-content.active {
    max-height: 500px;
}

.mobile-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 8px;
    transition: all var(--transition-smooth);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.mobile-dropdown-item:hover {
    color: var(--text-light);
    background: var(--navbar-glass);
    transform: translateX(5px);
}

.mobile-dropdown-item.active {
    color: var(--text-light);
    background: var(--gradient-primary);
}

.mobile-dropdown-item i {
    font-size: 0.875rem;
    width: 16px;
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

.mobile-dropdown-item i.visible {
    opacity: 1;
}

.mobile-dropdown-item .currency-symbol {
    font-size: 1.1rem;
    font-weight: 600;
    width: 24px;
    text-align: center;
}

body.menu-open {
    overflow: hidden;
}

body.menu-open::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 998;
    backdrop-filter: blur(5px);
}

/* ============================================
   FOOTER STYLES
   ============================================ */

.modern-footer {
    position: relative;
    /* background: linear-gradient(180deg, var(--hf-bg-1) 0%, var(--hf-bg-2) 100%); */
    background: var(--gradient-secondary);
    color: var(--primary);
    margin-top: 5rem;
}

/* Wave Animation */
.footer-wave {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 0;
}

.footer-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 120px;
}

.wave-path {
    fill: rgba(0, 0, 0, 0.2);
    animation: wave 10s ease-in-out infinite;
}

.wave-path:nth-child(2) {
    animation-delay: -2s;
}

.wave-path:nth-child(3) {
    animation-delay: -4s;
}

@keyframes wave {
    0%,
    100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(-25px);
    }
}

.footer-content {
    position: relative;
    padding-top: 4rem;
    z-index: 1;
}

/* Footer Top */
.footer-top {
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Footer Brand */
.footer-brand {
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-logo i {
    font-size: 2.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-logo-text h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.tagline {
    font-size: 0.85rem;
    margin: 0;
}

.footer-description {
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* Social Links */
.footer-social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-social-link {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.2);
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.footer-social-link::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

.footer-social-link i {
    position: relative;
    z-index: 1;
}

.footer-social-link:hover::before {
    opacity: 1;
}

.footer-social-link:hover {
    transform: translateY(-5px) rotate(360deg);
    border-color: transparent;
    box-shadow: 0 8px 20px var(--hf-social-shadow);
}

.footer-social-link.facebook:hover::before {
    background: linear-gradient(135deg, #3b5998 0%, #2d4373 100%);
}

.footer-social-link.twitter:hover::before {
    background: linear-gradient(135deg, #0b3650 0%, #030e2d 100%);
}

.footer-social-link.instagram:hover::before {
    background: linear-gradient(
        135deg,
        #f09433 0%,
        #e6683c 25%,
        #dc2743 50%,
        #cc2366 75%,
        #bc1888 100%
    );
}

.footer-social-link.linkedin:hover::before {
    background: linear-gradient(135deg, #0077b5 0%, #00669c 100%);
}

.footer-social-link.youtube:hover::before {
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
}

.footer-social-link.snapchat:hover::before {
    background: linear-gradient(135deg, #fffc00 0%, #ffec00 100%);
}
/* Footer Links */
.footer-links {
    margin-bottom: 2rem;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 3px;
}

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

.footer-menu li {
    margin-bottom: 0.75rem;
}

.footer-menu a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    transition: all var(--transition-smooth);
}

.footer-menu a:hover {
    color: var(--secondary);
    transform: translateX(5px);
}

.footer-menu a i {
    font-size: 0.7rem;
    transition: transform var(--transition-smooth);
}

.footer-menu a:hover i {
    transform: translateX(3px);
}

/* Newsletter */
.footer-newsletter {
    margin-bottom: 2rem;
}

.newsletter-text {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.newsletter-form {
    margin-bottom: 2rem;
}

.newsletter-input-wrapper {
    position: relative;
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    overflow: hidden;
    transition: all var(--transition-smooth);
}

.newsletter-input-wrapper:focus-within {
    border-color: var(--ui-link);
    box-shadow: 0 0 0 4px var(--hf-social-shadow);
}

.newsletter-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.newsletter-input {
    flex: 1;
    padding: 1rem 1rem 1rem 3.5rem;
    background: transparent;
    border: none;
    font-size: 0.95rem;
}

.newsletter-input:focus {
    outline: none;
}

.newsletter-input::placeholder {
    color: var(--text-muted);
}

.newsletter-btn {
    padding: 0 1.5rem;
    background: var(--gradient-primary);
    border: none;
    cursor: pointer;
    transition: all var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
}

.newsletter-btn:hover {
    transform: scale(1.05);
}

/* Contact Info */
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--primary);
    font-size: 0.9rem;
}
.contact-item a {
    text-decoration: underline !important;
    color: var(--primary) !important;
}

.contact-item i {
    width: 20px;
    color: var(--primary);
}

/* Footer Stats */
.footer-stats {
    padding: 3rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-stat-item {
    padding: 1.5rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition-smooth);
}

.footer-stat-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.footer-stat-icon {
    font-size: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
}

.footer-stat-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.9rem;
}

/* Footer Bottom */
.footer-bottom {
    padding: 2rem 0;
}

.copyright {
    margin: 0;
}

.copyright strong {
    color: var(--primary);
}

.footer-legal {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.footer-legal a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-smooth);
    font-size: 0.9rem;
}

.footer-legal a:hover {
    color: var(--secondary);
}

.footer-legal .separator {
    color: rgba(255, 255, 255, 0.2);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: none;
    color: var(--text-light);
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-smooth);
    box-shadow: 0 4px 15px var(--hf-social-shadow);
    z-index: 100;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px var(--hf-social-shadow);
}

/* ============================================
    RESPONSIVE STYLES
    ============================================ */

/* On very large screens, remove Bootstrap's centered container effect
    only for the navbar so it doesn't appear with a large left margin. */
@media (min-width: 1401px) {
    .modern-navbar .container {
        max-width: 100% !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Large screens - make navbar more compact */
@media (max-width: 1400px) {
    .modern-navbar .container {
        max-width: 100% !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .nav-link {
        padding: 0.6rem 0.75rem;
        font-size: 0.8rem;
    }

    .navbar-actions {
        gap: 0.4rem;
    }

    .nav-action-btn {
        padding: 0.5rem 0.9rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 1200px) {
    .navbar-content {
        gap: 0.75rem;
    }

    .nav-links {
        gap: 0.25rem;
    }

    .nav-link {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
    }

    .nav-link span {
        display: none;
    }

    .nav-icon {
        margin: 0;
        font-size: 1.2rem;
    }

    .arrow-icon {
        display: none;
    }

    .nav-action-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }

    .user-name {
        display: none;
    }

    .user-btn {
        padding: 0.5rem;
        gap: 0.5rem;
    }

    .mega-menu {
        min-width: 320px;
    }
}

@media (max-width: 1024px) {
    .navbar-content {
        gap: 0.5rem;
    }

    .nav-links {
        gap: 0.15rem;
    }

    .nav-link {
        padding: 0.5rem 0.6rem;
        font-size: 0.8rem;
    }

    .nav-action-btn span {
        display: none;
    }

    .nav-action-btn {
        padding: 0.5rem;
        width: 40px;
        height: 40px;
        justify-content: center;
    }

    .user-badge {
        display: none;
    }

    .mega-menu {
        min-width: 300px;
    }
}

@media (max-width: 900px) {
    .desktop-menu {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .modern-navbar {
        padding: 0.75rem 0;
    }

    /* Ensure mobile search and toggle sit together and align right */
    .mobile-controls {
        display: flex;
        gap: 0.5rem;
        align-items: center;
        /* Use logical margin so the group is pushed to the inline end
           correctly for both LTR and RTL languages */
        margin-inline-start: auto; /* push to inline end (right in LTR, left in RTL) */
        z-index: 1002;
    }

    .mobile-search-toggle {
        width: 42px;
        height: 42px;
        padding: 0;
        border-radius: 12px;
        background: var(--navbar-glass);
        border: 1px solid var(--navbar-border);
        color: var(--text-light);
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .logo-main {
        font-size: 1.25rem;
    }

    .logo-sub {
        font-size: 0.65rem;
    }

    .search-content {
        padding: 2rem 1.5rem;
    }

    .search-title {
        font-size: 1.5rem;
    }

    .search-form {
        flex-direction: column;
    }

    .search-submit-btn {
        width: 100%;
    }

    /* Footer Responsive */
    .footer-top {
        text-align: center;
    }

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

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

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

    .footer-legal {
        justify-content: center;
        text-align: center;
    }

    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }

    .footer-stat-item {
        padding: 1rem;
    }

    .footer-stat-number {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .mobile-menu {
        width: 100%;
        right: -100%;
    }

    .logo-wrapper {
        gap: 0.5rem;
    }

    .logo-icon {
        font-size: 1.5rem;
    }

    .logo-main {
        font-size: 1.1rem;
    }

    .logo-sub {
        display: none;
    }

    .search-close {
        top: 5px;
        right: 5px;
        width: 36px;
        height: 36px;
    }

    .nav-search-container {
        width: 95%;
        margin: 1rem auto;
        padding: 0 0.5rem;
    }

    .footer-wave svg {
        height: 60px;
    }

    .footer-content {
        padding-top: 2rem;
    }

    .newsletter-input-wrapper {
        flex-direction: column;
        border-radius: 12px;
    }

    .newsletter-input {
        padding: 1rem;
        text-align: center;
    }

    .newsletter-icon {
        display: none;
    }

    .newsletter-btn {
        padding: 1rem;
        width: 100%;
    }
}

/* Main Content Spacing */
.main-content {
    padding-top: 80px;
    min-height: calc(100vh - 400px);
}

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

/* Selection Color */
::selection {
    background: var(--hf-selection);
    color: var(--text-light);
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
