.yc-navbar {
    --nav-ink: #ffffff;
    --nav-muted: rgba(255, 255, 255, 0.76);
    --nav-line: rgba(255, 255, 255, 0.18);
    position: sticky;
    isolation: isolate;
    background:
        linear-gradient(120deg, rgba(15, 23, 42, 0.92) 0%, rgba(6, 78, 59, 0.9) 44%, rgba(15, 118, 110, 0.88) 100%),
        linear-gradient(90deg, #0f172a 0%, #064e3b 52%, #0f766e 100%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14) !important;
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.22) !important;
    backdrop-filter: blur(20px);
    overflow: visible;
}

.yc-navbar::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at 18% 0%, rgba(167, 243, 208, 0.26), transparent 34%),
        radial-gradient(circle at 72% 12%, rgba(125, 211, 252, 0.2), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 52%);
}

.yc-navbar::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(209, 250, 229, 0.72), transparent);
}

.yc-navbar .container {
    max-width: 1280px;
    min-height: 72px;
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.55rem;
    border-radius: 16px;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.yc-navbar-search-slot {
    max-width: 520px;
}

.navbar-brand:hover {
    background: rgba(255, 255, 255, 0.11);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.navbar-brand img {
    display: block;
    width: 180px;
    height: 60px !important;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.2s ease;
}
.navbar-brand:hover img {
    transform: scale(1.03);
}

.yc-navbar .nav-link {
    color: var(--nav-muted) !important;
    font-weight: 650 !important;
    font-size: 0.9375rem;
    transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.yc-navbar .nav-link:hover {
    color: #ffffff !important;
}
.yc-navbar .nav-link.active {
    color: #ffffff !important;
}

.nav-icon-link,
.nav-login-link {
    min-height: 42px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.55rem 0.8rem !important;
    border: 1px solid transparent;
}

.nav-icon-link {
    width: 42px;
}

.nav-icon-link:hover,
.nav-login-link:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.24);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 10px 24px rgba(15, 23, 42, 0.16);
    transform: translateY(-1px);
}

.yc-navbar-toggler {
    width: 44px;
    height: 44px;
    color: #ffffff;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.yc-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.96%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.4' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    filter: none;
}

/* ==============================
   CLEAN SEARCH BAR
   ============================== */
.search-trigger {
    width: 100%;
    max-width: 480px;
    min-height: 46px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 999px;
    padding: 0.625rem 0.7rem 0.625rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 14px 32px rgba(15, 23, 42, 0.18);
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.search-trigger:hover {
    background: #ffffff;
    border-color: #ffffff;
    transform: translateY(-1px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 18px 38px rgba(15, 23, 42, 0.22);
}
.search-trigger-icon {
    color: #059669;
    font-size: 0.95rem;
}
.search-trigger-text {
    color: #475569;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.search-trigger-shortcut {
    margin-left: auto;
    background: linear-gradient(135deg, #ecfdf5, #f8fafc);
    border: 1px solid #d1fae5;
    color: #059669;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

@media (min-width: 992px) {
    .yc-navbar .container {
        align-items: center;
    }

    .navbar-brand {
        flex: 0 0 25%;
        margin-right: 0 !important;
        padding-left: 0.65rem;
    }

    .yc-navbar .navbar-collapse {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        column-gap: 1rem;
    }

    .yc-navbar-search-slot {
        justify-content: flex-start;
        margin-left: 0.5rem;
    }
}

/* ==============================
   USER DROPDOWN
   ============================== */
.user-nav-pill {
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    padding: 0.25rem 0.25rem 0.25rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 10px 24px rgba(15, 23, 42, 0.12);
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.user-nav-pill:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.58);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
    transform: translateY(-1px);
}
.user-nav-pill .bi-list {
    color: #ffffff !important;
}
.user-avatar-small {
    width: 32px;
    height: 32px;
    background: #ffffff;
    color: #047857;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

.btn-emerald {
    background: linear-gradient(135deg, #ffffff 0%, #d1fae5 72%, #a7f3d0 100%);
    color: #065f46 !important;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 999px;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding-top: 0.58rem;
    padding-bottom: 0.58rem;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    box-shadow: 0 12px 28px rgba(6, 95, 70, 0.28);
}
.btn-emerald:hover {
    background: linear-gradient(135deg, #f8fafc 0%, #a7f3d0 100%);
    color: #064e3b !important;
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(6, 95, 70, 0.26);
}

.yc-navbar .dropdown-menu {
    min-width: 250px;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18) !important;
    padding: 0.6rem !important;
    border-radius: 16px !important;
}
.yc-navbar .dropdown-item {
    padding: 0.7rem 0.85rem !important;
    border-radius: 10px !important;
    font-size: 0.875rem !important;
    font-weight: 650 !important;
    color: #475569 !important;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.yc-navbar .dropdown-item:hover {
    background-color: #ecfdf5 !important;
    color: #047857 !important;
    transform: translateX(2px);
}
.yc-navbar .dropdown-item i {
    width: 1.25rem;
    text-align: center;
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

.btn-emerald:focus-visible,
.nav-icon-link:focus-visible,
.nav-login-link:focus-visible,
.search-trigger:focus-visible,
.user-nav-pill:focus-visible,
.search-btn-cancel:focus-visible,
.search-btn-submit:focus-visible {
    outline: 3px solid rgba(125, 211, 252, 0.72);
    outline-offset: 3px;
}

/* ===== SEARCH MODAL ===== */
.search-modal-content {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.search-modal-header {
    background: #ffffff;
    padding: 2.5rem 2rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid #f1f5f9;
}
.search-modal-header::before { display: none; }

.search-modal-close {
    position: absolute;
    top: 1.25rem; right: 1.25rem;
    width: 2.5rem; height: 2.5rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    color: #64748b;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}
.search-modal-close:hover { background: #f1f5f9; color: #0f172a; }

.search-modal-icon-wrap {
    width: 4rem; height: 4rem;
    background: #ecfdf5;
    border-radius: 1.25rem;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    color: #059669;
    margin-bottom: 1rem;
}

.search-modal-title {
    color: #0f172a;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    letter-spacing: -0.025em;
}
.search-modal-subtitle {
    color: #64748b;
    font-size: 0.9375rem;
}

.search-modal-body {
    padding: 2rem;
    background: #ffffff;
}

/* Keyword input */
.search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.75rem 1.25rem;
    transition: all 0.2s;
}
.search-input-wrap:focus-within {
    border-color: #059669;
    box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.1);
    background: #ffffff;
}
.search-input-icon {
    color: #94a3b8;
    font-size: 1rem;
    margin-right: 0.75rem;
    flex-shrink: 0;
}
.search-input-wrap:focus-within .search-input-icon { color: #059669; }
.search-keyword-input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 1rem;
    font-weight: 500;
    color: #0f172a;
}
.search-keyword-input::placeholder { color: #94a3b8; }

/* Section cards */
.search-section-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.25rem;
}
.search-section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.search-section-icon {
    width: 2.25rem; height: 2.25rem;
    border-radius: 0.625rem;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.search-section-icon-green { background: #ecfdf5; color: #059669; }
.search-section-icon-blue  { background: #eff6ff; color: #2563eb; }
.search-section-label {
    font-size: 0.875rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.01em;
}

/* Selects */
.modern-select-wrapper .form-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}
.modern-select {
    border: 1px solid #e2e8f0;
    border-radius: 0.625rem;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    background: #ffffff;
    transition: all 0.2s;
}
.modern-select:focus {
    border-color: #059669;
    box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.1);
    outline: none;
}

/* Action buttons */
.search-btn-cancel {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    font-size: 0.875rem;
    color: #64748b;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.search-btn-cancel:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}
.search-btn-submit {
    background: linear-gradient(135deg, #059669, #0f766e);
    border: none;
    border-radius: 999px;
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    font-size: 0.875rem;
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(5, 150, 105, 0.24);
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.search-btn-submit:hover {
    background: linear-gradient(135deg, #047857, #0f5f66);
    box-shadow: 0 14px 28px rgba(5, 150, 105, 0.34);
    transform: translateY(-1px);
}

@media (max-width: 991.98px) {
    .yc-navbar .container {
        min-height: 64px;
    }

    .navbar-brand img {
        width: 148px;
        height: 50px !important;
    }

    .yc-navbar .navbar-collapse {
        margin-top: 0.75rem;
        padding: 0.85rem;
        border: 1px solid rgba(255, 255, 255, 0.16);
        border-radius: 18px;
        background: rgba(15, 23, 42, 0.34);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 16px 32px rgba(15, 23, 42, 0.14);
        backdrop-filter: blur(14px);
    }

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

    .yc-navbar .navbar-nav {
        align-items: stretch !important;
        gap: 0.55rem !important;
    }

    .nav-login-link,
    .btn-emerald,
    .user-nav-pill {
        width: 100%;
    }

    .nav-login-link {
        justify-content: center;
        background: rgba(255, 255, 255, 0.1);
    }
}

@media (max-width: 575.98px) {
    .search-trigger-shortcut {
        display: none;
    }

    .search-trigger-text {
        font-size: 0.82rem;
    }

    .search-modal-body,
    .search-modal-header {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .search-btn-cancel,
    .search-btn-submit {
        flex: 1;
        padding-left: 1rem;
        padding-right: 1rem;
    }
}
