/* ================================================
   NearFix Premium Design System v4.0
   Inspired by: Google Material 3, Apple HIG, Linear
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    /* Core palette */
    --nf-primary: #4F46E5;
    --nf-primary-light: #818CF8;
    --nf-primary-dark: #3730A3;
    --nf-accent: #F59E0B;
    --nf-accent-light: #FCD34D;
    --nf-success: #10B981;
    --nf-danger: #EF4444;
    --nf-warning: #F97316;

    /* Surfaces */
    --nf-bg: #F8FAFC;
    --nf-surface: #FFFFFF;
    --nf-surface-hover: #F1F5F9;
    --nf-surface-glass: rgba(255, 255, 255, 0.72);
    --nf-border: rgba(0, 0, 0, 0.06);
    --nf-border-strong: rgba(0, 0, 0, 0.1);

    /* Sidebar (dark) */
    --nf-sidebar-bg: linear-gradient(180deg, #0F172A 0%, #1E293B 100%);
    --nf-sidebar-text: rgba(255, 255, 255, 0.7);
    --nf-sidebar-text-active: #FFFFFF;
    --nf-sidebar-hover: rgba(255, 255, 255, 0.06);
    --nf-sidebar-active-bg: rgba(79, 70, 229, 0.2);
    --nf-sidebar-active-border: #818CF8;

    /* Text */
    --nf-text-primary: #0F172A;
    --nf-text-secondary: #64748B;
    --nf-text-tertiary: #94A3B8;

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 20px rgba(79, 70, 229, 0.15);

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    /* Old compat */
    --msn-blue: #4F46E5;
    --msn-green: #10B981;
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: var(--nf-bg);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    color: var(--nf-text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}

/* ===== Animated Background ===== */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(79, 70, 229, 0.04) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(16, 185, 129, 0.03) 0%, transparent 60%),
        radial-gradient(ellipse at 50% 80%, rgba(245, 158, 11, 0.03) 0%, transparent 60%);
    z-index: 0;
    pointer-events: none;
    animation: bgShift 20s ease-in-out infinite alternate;
}

@keyframes bgShift {
    0% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.6;
    }
}

/* ===== 3-Column Dashboard Layout ===== */
.dashboard-container {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr) 320px;
    min-height: 100vh;
    gap: 0;
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* ===== Sidebar ===== */
.msn-sidebar {
    background: var(--nf-sidebar-bg);
    padding: 24px 0;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

/* Custom scrollbar for sidebar */
.msn-sidebar::-webkit-scrollbar {
    width: 4px;
}

.msn-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.msn-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.sidebar-logo {
    padding: 0 24px 32px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 800;
    color: #FFFFFF;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.sidebar-logo-icon {
    background: linear-gradient(135deg, var(--nf-primary), var(--nf-primary-light));
    color: white;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 900;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

/* Sidebar Navigation */
.nav-group {
    margin-bottom: 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 24px;
    color: var(--nf-sidebar-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 3px solid transparent;
    margin: 2px 0;
}

.nav-link:hover {
    background: var(--nf-sidebar-hover);
    color: var(--nf-sidebar-text-active);
}

.nav-link i {
    width: 20px;
    text-align: center;
    font-size: 16px;
    opacity: 0.8;
}

.nav-link.active {
    background: var(--nf-sidebar-active-bg);
    color: var(--nf-sidebar-text-active);
    border-left-color: var(--nf-sidebar-active-border);
    font-weight: 600;
}

.nav-link.active i {
    color: var(--nf-primary-light);
    opacity: 1;
}

/* Language Switcher */
.lang-switcher {
    padding: 8px 24px;
    display: flex;
    gap: 8px;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    color: var(--nf-sidebar-text);
    transition: all 0.2s;
    font-family: inherit;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.lang-btn.active {
    background: var(--nf-primary);
    color: white;
    border-color: var(--nf-primary);
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

/* ===== Main Content Area ===== */
.main-content {
    padding: 24px 32px;
    background: var(--nf-surface-glass);
    backdrop-filter: blur(20px);
    min-width: 0;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* ===== Top Navigation Bar ===== */
.msn-top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0 24px;
}

.top-tabs {
    display: flex;
    gap: 8px;
    background: var(--nf-surface);
    border-radius: var(--radius-full);
    padding: 4px;
    border: 1px solid var(--nf-border);
    box-shadow: var(--shadow-xs);
}

.top-tab {
    font-size: 13px;
    font-weight: 600;
    color: var(--nf-text-secondary);
    text-decoration: none;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    transition: all 0.2s;
    border: none;
}

.top-tab:hover {
    color: var(--nf-text-primary);
    background: var(--nf-surface-hover);
}

.top-tab.active {
    color: white;
    background: var(--nf-primary);
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
}

/* ===== Dashboard Hero ===== */
.dashboard-hero {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 40%, #312E81 100%);
    border-radius: var(--radius-xl);
    padding: 48px 40px 40px;
    color: white;
    text-align: center;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

/* Animated mesh overlay */
.dashboard-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 30% 40%, rgba(79, 70, 229, 0.25) 0%, transparent 40%),
        radial-gradient(circle at 70% 60%, rgba(129, 140, 248, 0.2) 0%, transparent 35%),
        radial-gradient(circle at 50% 30%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
    animation: meshMove 15s ease-in-out infinite;
    pointer-events: none;
}

@keyframes meshMove {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(2%, -2%) rotate(1deg);
    }

    66% {
        transform: translate(-1%, 1%) rotate(-0.5deg);
    }
}

.dashboard-hero h1 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #10B981, #34D399, #A7F3D0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.dashboard-hero p {
    font-size: 15px;
    opacity: 0.85;
    margin-bottom: 24px;
    position: relative;
    font-weight: 400;
    line-height: 1.6;
}

/* Hero Search */
.hero-search-wrapper {
    display: flex;
    max-width: 640px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-full);
    padding: 5px 5px 5px 8px;
    align-items: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    transition: box-shadow 0.3s;
}

.hero-search-wrapper:focus-within {
    box-shadow: 0 8px 32px rgba(79, 70, 229, 0.2), 0 0 0 2px rgba(79, 70, 229, 0.2);
}

.hero-loc-pin {
    padding-left: 12px;
    color: var(--nf-primary);
    font-size: 16px;
}

.hero-loc-select {
    border: none;
    border-right: 1px solid #E2E8F0;
    padding: 10px 12px;
    font-weight: 600;
    font-size: 13px;
    outline: none;
    cursor: pointer;
    background: transparent;
    color: var(--nf-text-primary);
    font-family: inherit;
}

.hero-search-input {
    flex: 1;
    border: none;
    padding: 10px 16px;
    outline: none;
    font-size: 14px;
    color: var(--nf-text-primary);
    font-family: inherit;
    background: transparent;
}

.hero-search-input::placeholder {
    color: var(--nf-text-tertiary);
}

.hero-search-btn {
    background: var(--nf-primary);
    color: white;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
    font-size: 14px;
}

.hero-search-btn:hover {
    background: var(--nf-primary-dark);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

/* Voice Search Microphone */
.voice-mic {
    background: transparent;
    color: var(--nf-text-tertiary);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    position: relative;
    transition: all 0.2s;
    border: none;
    outline: none;
    flex-shrink: 0;
}

.voice-mic:hover {
    color: var(--nf-primary);
    background: rgba(79, 70, 229, 0.08);
}

.voice-mic.listening {
    color: #EF4444;
    background: #FEE2E2;
    animation: voicePulse 1.5s infinite;
}

@keyframes voicePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }

    70% {
        box-shadow: 0 0 0 12px rgba(239, 68, 68, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

/* ===== Action Buttons ===== */
.wa-join-btn {
    background: var(--nf-primary);
    color: white;
    padding: 10px 24px;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
    position: relative;
}

.wa-join-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.3);
}

/* ===== Explore Services Grid ===== */
.explore-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    letter-spacing: -0.02em;
    color: var(--nf-text-primary);
}

.explore-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 32px;
}

.explore-card {
    background: var(--nf-surface);
    aspect-ratio: 1/0.9;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--nf-text-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--nf-border);
    gap: 10px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.explore-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.03), rgba(16, 185, 129, 0.03));
    opacity: 0;
    transition: opacity 0.3s;
}

.explore-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(79, 70, 229, 0.15);
}

.explore-card:hover::before {
    opacity: 1;
}

.explore-card i {
    font-size: 24px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(79, 70, 229, 0.08);
    color: var(--nf-primary);
    transition: all 0.3s;
}

.explore-card:hover i {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
}

.explore-card span {
    font-size: 12px;
    font-weight: 600;
    color: var(--nf-text-secondary);
}

/* ===== Right Widget Column ===== */
.msn-widgets {
    background: var(--nf-surface-glass);
    border-left: 1px solid var(--nf-border);
    padding: 24px 20px;
    backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 90;
    min-width: 0;
}

.msn-widgets::-webkit-scrollbar {
    width: 4px;
}

.msn-widgets::-webkit-scrollbar-track {
    background: transparent;
}

.msn-widgets::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.08);
    border-radius: 4px;
}

.widget {
    background: var(--nf-surface);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid var(--nf-border);
    transition: box-shadow 0.2s;
}

.widget:hover {
    box-shadow: var(--shadow-md);
}

.widget-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--nf-text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.01em;
}

/* ===== News & Jobs Items ===== */
.news-item,
.job-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--nf-border);
    display: block;
    text-decoration: none;
    color: inherit;
    transition: all 0.15s;
}

.news-item:last-child,
.job-item:last-child {
    border-bottom: none;
}

.news-item:hover,
.job-item:hover {
    background: var(--nf-surface-hover);
    margin: 0 -12px;
    padding-left: 12px;
    padding-right: 12px;
    border-radius: var(--radius-sm);
}

.news-tag {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--nf-danger);
    margin-bottom: 4px;
    display: inline-block;
    background: #FEF2F2;
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.news-title,
.job-role {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 4px;
    display: block;
    color: var(--nf-text-primary);
}

.news-meta,
.job-meta {
    font-size: 11px;
    color: var(--nf-text-tertiary);
}

.view-all-link {
    display: block;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--nf-primary);
    text-decoration: none;
    margin-top: 16px;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: all 0.15s;
}

.view-all-link:hover {
    background: rgba(79, 70, 229, 0.06);
}

/* ===== Premium Card Utilities ===== */
.gold-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 13px;
    border-bottom: 1px solid var(--nf-border);
    font-weight: 500;
}

.gold-row.last {
    border-bottom: none;
}

.price-up {
    color: var(--nf-danger);
    font-weight: 700;
}

.price-down {
    color: var(--nf-success);
    font-weight: 700;
}

/* ===== Handpicked Card ===== */
.handpicked-card {
    border: 1px solid var(--nf-border);
    background: var(--nf-surface);
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: 20px;
    transition: all 0.2s;
}

.handpicked-card:hover {
    box-shadow: var(--shadow-lg);
}

.google-directions-btn {
    background: var(--nf-primary);
    color: white;
    padding: 12px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    font-size: 13px;
    display: block;
    transition: background 0.2s;
}

.google-directions-btn:hover {
    background: var(--nf-primary-dark);
}

/* ===== Responsive ===== */

/* --- Tablet (≤1100px) --- */
@media (max-width: 1100px) {
    .dashboard-container {
        grid-template-columns: 72px minmax(0, 1fr) 280px;
    }

    .msn-sidebar {
        align-items: center;
    }

    .sidebar-logo span,
    .nav-link span,
    .lang-switcher {
        display: none;
    }

    .sidebar-logo {
        justify-content: center;
        padding: 0 8px 24px;
    }

    .nav-link {
        justify-content: center;
        padding: 12px 8px;
        border-left: none;
        border-radius: var(--radius-sm);
        margin: 2px 8px;
    }

    .nav-link.active {
        border-left: none;
        background: var(--nf-sidebar-active-bg);
    }

    .nav-link i {
        margin: 0;
        font-size: 18px;
    }

    .main-content {
        padding: 20px 24px;
    }
}

/* --- Mobile (≤768px) --- */
@media (max-width: 768px) {
    .dashboard-container {
        grid-template-columns: 1fr;
        padding-bottom: 70px;
        /* space for bottom nav */
    }

    .msn-sidebar {
        display: none;
    }

    /* Mobile Bottom Navigation Bar */
    .mobile-bottom-nav {
        display: flex !important;
    }

    .msn-widgets {
        display: block;
        position: relative;
        height: auto;
        border-left: none;
        border-top: 1px solid var(--nf-border);
        padding: 16px;
    }

    .main-content {
        padding: 16px 14px;
    }

    /* Hero */
    .dashboard-hero {
        padding: 28px 18px 24px;
        border-radius: var(--radius-lg);
        margin-bottom: 20px;
    }

    .dashboard-hero h1 {
        font-size: 22px;
    }

    .dashboard-hero p {
        font-size: 13px;
        margin-bottom: 16px;
    }

    /* Search Bar */
    .hero-search-wrapper {
        flex-wrap: nowrap;
        padding: 4px;
        border-radius: var(--radius-lg);
    }

    .hero-loc-select {
        display: none;
    }

    .hero-loc-pin {
        padding-left: 8px;
    }

    .hero-search-input {
        padding: 8px 10px;
        font-size: 14px;
    }

    .hero-search-btn {
        width: 38px;
        height: 38px;
    }

    .voice-mic {
        width: 34px;
        height: 34px;
    }

    /* Explore Grid */
    .explore-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        margin-bottom: 20px;
    }

    .explore-card {
        aspect-ratio: 1/1;
    }

    .explore-card i {
        font-size: 20px;
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }

    .explore-card span {
        font-size: 10px;
    }

    .explore-title {
        font-size: 16px;
        margin-bottom: 14px;
    }

    /* Tabs */
    .msn-top-nav {
        padding: 4px 0 16px;
        flex-wrap: wrap;
        gap: 8px;
    }

    .top-tabs {
        gap: 2px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        flex-wrap: nowrap;
        width: 100%;
    }

    .top-tabs::-webkit-scrollbar {
        display: none;
    }

    .top-tab {
        font-size: 11px;
        padding: 6px 12px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* Widgets */
    .widget {
        padding: 14px;
        margin-bottom: 10px;
    }

    .widget-title {
        font-size: 13px;
    }

    /* WhatsApp Button */
    .wa-join-btn {
        font-size: 12px;
        padding: 8px 16px;
    }
}

/* --- Small Mobile (≤480px) --- */
@media (max-width: 480px) {
    .main-content {
        padding: 12px 10px;
    }

    .dashboard-hero {
        padding: 22px 14px 20px;
        margin-bottom: 16px;
    }

    .dashboard-hero h1 {
        font-size: 18px;
    }

    .dashboard-hero p {
        font-size: 12px;
    }

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

    .explore-card i {
        font-size: 18px;
        width: 36px;
        height: 36px;
    }

    .explore-card span {
        font-size: 9px;
    }

    .explore-title {
        font-size: 14px;
    }

    .msn-widgets {
        padding: 12px 10px;
    }
}

/* ===== Mobile Bottom Navigation ===== */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    z-index: 9999;
    justify-content: space-around;
    align-items: center;
    padding: 4px 2px calc(4px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.05);
}

.mobile-bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #94a3b8;
    font-size: 9px;
    font-weight: 600;
    gap: 2px;
    padding: 5px 4px 3px;
    border-radius: 10px;
    transition: all 0.25s ease;
    min-width: 44px;
    position: relative;
    letter-spacing: 0.01em;
}

.mobile-bottom-nav a i {
    font-size: 17px;
    transition: all 0.25s ease;
}

.mobile-bottom-nav a.active {
    color: var(--nf-primary, #4F46E5);
}

.mobile-bottom-nav a.active i {
    transform: scale(1.15);
}

.mobile-bottom-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 20px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(135deg, #4F46E5, #818CF8);
}

.mobile-bottom-nav a:not(.active):hover {
    color: #64748b;
}

/* ===== Utility Animations ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feed-left>div {
    animation: slideUp 0.4s ease-out both;
}

.feed-left>div:nth-child(2) {
    animation-delay: 0.05s;
}

.feed-left>div:nth-child(3) {
    animation-delay: 0.1s;
}

.feed-left>div:nth-child(4) {
    animation-delay: 0.15s;
}

.feed-left>div:nth-child(5) {
    animation-delay: 0.2s;
}

/* ===== Weather Widget (legacy) ===== */
.weather-widget {
    background: linear-gradient(135deg, #4F46E5, #818CF8);
    color: white;
    text-align: center;
}

/* ===== Scrollbar Global ===== */
::-webkit-scrollbar {
    width: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.18);
}