body {
    font-family: "Segoe UI", Helvetica, Arial, sans-serif;
}

.new-feed-topbar {
    align-items: center;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid rgba(117, 86, 61, 0.08);
    box-shadow: 0 8px 24px rgba(72, 49, 33, 0.07);
    display: grid;
    gap: 14px;
    grid-template-columns: 170px minmax(220px, 360px) 1fr auto;
    min-height: 64px;
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 60;
}

.new-feed-logo img {
    max-height: 46px;
}

.new-feed-logo .new-logo-dark {
    display: none;
}

html.yc-dark-mode body .new-feed-logo .new-logo-light {
    display: none;
}

html.yc-dark-mode body .new-feed-logo .new-logo-dark {
    display: inline-block;
}

.new-feed-search {
    align-items: center;
    background: #fffaf5;
    border: 1px solid rgba(117, 86, 61, 0.14);
    border-radius: 999px;
    display: flex;
    gap: 10px;
    padding: 0 16px;
}

.new-feed-search i {
    color: #9a8067;
    font-size: 12px;
}

.new-feed-search input {
    background: transparent;
    border: 0;
    color: #1f3342;
    font-size: 13px;
    height: 38px;
    outline: 0;
    width: 100%;
}

.new-feed-nav {
    align-items: center;
    display: flex;
    gap: 8px;
    justify-content: center;
}

.new-feed-nav a {
    border-radius: 999px;
    color: #6b5949;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 14px;
}

.new-feed-nav a.active,
.new-feed-nav a:hover {
    background: #fff0e8;
    color: #ff6422;
}

.new-feed-actions {
    align-items: center;
    display: flex;
    gap: 8px;
}

.new-create-menu {
    position: relative;
}

.new-create-menu::after,
.new-profile-menu::after {
    content: "";
    height: 14px;
    left: 0;
    position: absolute;
    right: 0;
    top: 100%;
}

.new-create-dropdown {
    background: #fff;
    border: 1px solid rgba(117, 86, 61, 0.12);
    border-radius: 18px;
    box-shadow: 0 18px 38px rgba(31, 51, 66, 0.14);
    opacity: 0;
    padding: 8px;
    pointer-events: none;
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    transform: translateY(8px);
    transition: all 0.18s ease;
    width: 168px;
    z-index: 90;
}

.new-profile-menu {
    position: relative;
}

.new-profile-menu .new-user-pill {
    border: 0;
    cursor: pointer;
}

.new-profile-dropdown {
    background: #fff;
    border: 1px solid rgba(117, 86, 61, 0.12);
    border-radius: 20px;
    box-shadow: 0 20px 42px rgba(31, 51, 66, 0.16);
    opacity: 0;
    padding: 10px;
    pointer-events: none;
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    transform: translateY(8px);
    transition: all 0.18s ease;
    width: 326px;
    z-index: 90;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

.new-profile-menu.is-open .new-profile-dropdown {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.new-profile-summary {
    align-items: center;
    background: #fff6ef;
    border-radius: 16px;
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
    padding: 10px;
}

.new-profile-summary img {
    border-radius: 50%;
    height: 42px;
    object-fit: cover;
    width: 42px;
}

.new-profile-summary strong,
.new-profile-summary small {
    display: block;
}

.new-profile-summary small {
    color: #74808b;
    font-size: 11px;
}

.new-profile-dropdown a,
.new-profile-dropdown button {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 13px;
    color: #243646;
    display: flex;
    font-size: 13px;
    font-weight: 650;
    gap: 10px;
    padding: 10px;
    text-align: left;
    width: 100%;
}

.new-profile-dropdown a:hover,
.new-profile-dropdown button:hover {
    background: #fff0e8;
    color: #ff6422;
}

.new-profile-dropdown i {
    color: #ff6422;
    width: 18px;
}

.new-profile-control {
    background: #fffaf5;
    border: 1px solid rgba(117, 86, 61, 0.1);
    border-radius: 15px;
    margin: 7px 0;
    padding: 10px;
}

.new-profile-control strong {
    align-items: center;
    color: #243646;
    display: flex;
    font-size: 12px;
    font-weight: 800;
    gap: 9px;
    margin-bottom: 8px;
}

.new-profile-control strong i {
    color: #ff6422;
    width: 18px;
}

.new-profile-control form {
    margin: 0;
}

.new-menu-select,
.new-profile-dropdown .new-theme-toggle {
    background: #fff;
    border: 1px solid rgba(117, 86, 61, 0.14);
    border-radius: 12px;
    color: #243646;
    font-size: 13px;
    font-weight: 650;
    min-height: 38px;
    outline: 0;
    padding: 0 11px;
    width: 100%;
}

.new-profile-dropdown .new-theme-toggle {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.new-profile-dropdown .new-theme-toggle:hover,
.new-menu-select:focus {
    border-color: rgba(255, 100, 34, 0.42);
    box-shadow: 0 0 0 3px rgba(255, 100, 34, 0.08);
}

html.yc-dark-mode body,
html.yc-dark-mode body .yc-portal {
    background:
        radial-gradient(circle at 10% 0%, rgba(255, 100, 34, 0.18), transparent 32%),
        radial-gradient(circle at 88% 20%, rgba(255, 122, 47, 0.12), transparent 28%),
        #121212;
    color: #e8e6f0;
}

html.yc-dark-mode body .new-feed-topbar {
    background: rgba(16, 14, 30, 0.96);
    border-bottom-color: rgba(255, 100, 34, 0.18);
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(20px);
}

html.yc-dark-mode body .new-feed-search,
html.yc-dark-mode body .new-user-pill,
html.yc-dark-mode body .new-login-link,
html.yc-dark-mode body .new-profile-dropdown,
html.yc-dark-mode body .new-create-dropdown,
html.yc-dark-mode body .new-icon-action,
html.yc-dark-mode body .new-profile-control,
html.yc-dark-mode body .yc-profile-banner,
html.yc-dark-mode body .yc-profile-mini-card,
html.yc-dark-mode body .yc-profile-tabs,
html.yc-dark-mode body .yc-category-card,
html.yc-dark-mode body .yc-hero,
html.yc-dark-mode body .yc-form-card,
html.yc-dark-mode body .new-card,
html.yc-dark-mode body .yc-article-card,
html.yc-dark-mode body .yc-method-card,
html.yc-dark-mode body .yc-recipe-facts div,
html.yc-dark-mode body .new-composer-input,
html.yc-dark-mode body .new-chip-row a {
    background: linear-gradient(160deg, rgba(30, 30, 30, 0.97) 0%, rgba(22, 22, 22, 0.98) 100%);
    border-color: rgba(255, 100, 34, 0.15);
    color: #e8e6f0;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35), 0 1px 0 rgba(255, 100, 34, 0.1) inset;
}

html.yc-dark-mode body .new-profile-summary,
html.yc-dark-mode body .new-feed-nav a.active,
html.yc-dark-mode body .new-feed-nav a:hover,
html.yc-dark-mode body .new-profile-dropdown a:hover,
html.yc-dark-mode body .new-profile-dropdown button:hover {
    background: rgba(255, 100, 34, 0.16);
}

html.yc-dark-mode body .new-feed-search input,
html.yc-dark-mode body .new-feed-nav a,
html.yc-dark-mode body .new-profile-dropdown a,
html.yc-dark-mode body .new-profile-dropdown button,
html.yc-dark-mode body .new-profile-control strong,
html.yc-dark-mode body .new-menu-select,
html.yc-dark-mode body .new-theme-toggle,
html.yc-dark-mode body .yc-profile-identity h1,
html.yc-dark-mode body .yc-section-title h2,
html.yc-dark-mode body .yc-hero h1,
html.yc-dark-mode body .yc-article-card h2 a,
html.yc-dark-mode body .yc-article-hero h1,
html.yc-dark-mode body .new-card h2,
html.yc-dark-mode body .new-card h2 a,
html.yc-dark-mode body .new-section-heading h2,
html.yc-dark-mode body .new-card-title h4,
html.yc-dark-mode body .new-author strong,
html.yc-dark-mode body .new-trending-item strong,
html.yc-dark-mode body .new-foodie-item strong {
    color: #f5f3ff;
}

html.yc-dark-mode body .new-feed-search input::placeholder,
html.yc-dark-mode body .new-profile-summary small,
html.yc-dark-mode body .yc-profile-identity p,
html.yc-dark-mode body .yc-profile-mini-card p,
html.yc-dark-mode body .yc-article-card p,
html.yc-dark-mode body .yc-article-hero p,
html.yc-dark-mode body .new-tile-body p,
html.yc-dark-mode body .new-author small,
html.yc-dark-mode body .new-trending-item small {
    color: #a5a3b8;
}

html.yc-dark-mode body .new-menu-select,
html.yc-dark-mode body .new-profile-dropdown .new-theme-toggle {
    background: #1a1730;
    border-color: rgba(255, 100, 34, 0.2);
    color: #e8e6f0;
}

html.yc-dark-mode body .new-guest-hero,
html.yc-dark-mode body .yc-article-hero {
    background:
        radial-gradient(circle at 80% 20%, rgba(255, 100, 34, 0.36), transparent 36%),
        radial-gradient(circle at 10% 80%, rgba(255, 122, 47, 0.22), transparent 30%),
        linear-gradient(135deg, #1e1e1e 0%, #161616 55%, #121212 100%);
    border-color: rgba(255, 100, 34, 0.18);
}

html.yc-dark-mode body .new-icon-action.is-primary,
html.yc-dark-mode body .new-start-btn,
html.yc-dark-mode body .new-create-link {
    background: linear-gradient(135deg, #ff7a2f, #ff4f1f);
    color: #fff;
}

html.yc-dark-mode body .new-chip-row a.active,
html.yc-dark-mode body .new-chip-row a:hover {
    background: linear-gradient(135deg, #ff6422, #ff7a2f);
    border-color: rgba(255, 100, 34, 0.5);
    color: #fff;
}

.new-create-menu:hover .new-create-dropdown,
.new-create-menu:focus-within .new-create-dropdown {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.new-create-dropdown a {
    align-items: center;
    border-radius: 13px;
    color: #243646;
    display: flex;
    font-size: 13px;
    font-weight: 650;
    gap: 10px;
    padding: 10px;
}

.new-create-dropdown a:hover {
    background: #fff0e8;
    color: #ff6422;
}

.new-create-dropdown i {
    color: #ff6422;
    width: 18px;
}

.new-icon-action {
    align-items: center;
    background: #fff6ef;
    border: 1px solid rgba(117, 86, 61, 0.12);
    border-radius: 50%;
    color: #243646;
    display: inline-flex;
    height: 38px;
    justify-content: center;
    min-width: 38px;
    position: relative;
}

.new-icon-action i {
    font-size: 13px;
}

.new-icon-action.is-primary,
.new-icon-action.is-active {
    background: linear-gradient(135deg, #ff7a2f 0%, #f15a24 100%);
    border-color: transparent;
    color: #fff;
}

.new-icon-action span {
    background: #d9422f;
    border-radius: 999px;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 5px;
    position: absolute;
    right: -4px;
    top: -5px;
}

.new-user-pill,
.new-login-link,
.new-create-link {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 12px;
    font-weight: 650;
    gap: 8px;
    min-height: 38px;
    padding: 0 12px;
}

.new-user-pill {
    background: #fff6ef;
    color: #243646;
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
}

.new-login-link {
    background: #fff6ef;
    color: #243646;
}

.new-create-link {
    background: #243646;
    color: #fff;
}

.new-user-pill img {
    border-radius: 50%;
    height: 30px;
    object-fit: cover;
    width: 30px;
}

@media (max-width: 1120px) {
    .new-feed-topbar {
        grid-template-columns: 150px 1fr auto;
    }

    .new-feed-nav {
        display: none;
    }
}

@media (max-width: 720px) {
    .new-feed-topbar {
        grid-template-columns: 1fr;
        padding: 12px 16px;
    }

    .new-feed-logo,
    .new-feed-actions {
        justify-content: center;
        text-align: center;
    }
}

/* ──────────────────────────────────────────────────────────────────────────
   Premium Button Styling: Login/Register Hover fixes & Circular Post Actions
   ────────────────────────────────────────────────────────────────────────── */

/* Login/Register states styling in light mode */
.new-login-link,
.new-login-link:visited,
.new-login-link:focus,
.new-login-link:active {
    background: #fff6ef !important;
    color: #243646 !important;
    text-decoration: none !important;
    border: 1px solid rgba(117, 86, 61, 0.12) !important;
}

.new-login-link:hover {
    background: #ffe6d5 !important;
    color: #e95f24 !important;
    text-decoration: none !important;
}

.new-create-link,
.new-create-link:visited,
.new-create-link:focus,
.new-create-link:active {
    background: #243646 !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

.new-create-link:hover {
    background: #172839 !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

/* Post Actions Streamlining: Icons only & gorgeous circular layouts */
.new-post-actions {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 10px 16px !important;
    border-top: 1px solid rgba(0, 0, 0, 0.05) !important;
    background: transparent !important;
    grid-template-columns: none !important; /* disable grid layout override */
}

.new-post-actions .new-local-action {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    background: rgba(0, 0, 0, 0.03) !important;
    border: 1px solid rgba(0, 0, 0, 0.02) !important;
    border-radius: 18px !important;
    color: #536471 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    min-height: 36px !important;
    height: 36px !important;
    padding: 0 16px !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Icon-only Share and Save are gorgeous circles */
.new-post-actions .yc-share-btn,
.new-post-actions .yc-post-save-btn {
    width: 36px !important;
    padding: 0 !important;
    border-radius: 50% !important;
}

/* Like has a count, keep it pill-shaped */
.new-post-actions .yc-post-like-btn {
    padding: 0 16px !important;
    border-radius: 18px !important;
}

/* Align Save (last item) to the right for a modern look */
.new-post-actions .new-local-action:last-child {
    margin-left: auto !important;
}

/* Hover effects with specific colors */
.new-post-actions .yc-post-like-btn:hover {
    background: #ffebeb !important;
    color: #f43f5e !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(244, 63, 94, 0.15) !important;
}

.new-post-actions .yc-share-btn:hover {
    background: #e0f2fe !important;
    color: #0284c7 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.15) !important;
}

.new-post-actions .yc-post-save-btn:hover {
    background: #fef3c7 !important;
    color: #d97706 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.15) !important;
}

/* Active states */
.new-post-actions .yc-post-like-btn.active,
.new-post-actions .yc-post-like-btn.is-active {
    background: #ffebeb !important;
    color: #f43f5e !important;
    border-color: rgba(244, 63, 94, 0.1) !important;
}

.new-post-actions .yc-post-save-btn.active,
.new-post-actions .yc-post-save-btn.is-active {
    background: #fef3c7 !important;
    color: #d97706 !important;
    border-color: rgba(217, 119, 6, 0.1) !important;
}

/* ──────────────────────────────────────────────────────────────────────────
   Mobile-First Navigation & Layout Optimizations (App-like Mobile View)
   ────────────────────────────────────────────────────────────────────────── */

/* Hidden on desktop by default */
.new-bottom-nav,
.new-mobile-drawer-header {
    display: none !important;
}

@media (max-width: 720px) {
    /* Prevent content from being hidden behind the fixed bottom bar */
    .yc-portal {
        padding-bottom: calc(75px + env(safe-area-inset-bottom)) !important;
    }

    /* Hide all sidebars on mobile view to clean up layout and maximize screen width */
    .yc-recipe-side,
    .yc-side-panel,
    .yc-foodies-sidebar,
    .yc-profile-sidebar,
    .new-feed-sidebar,
    .yc-recipe-facts,
    .yc-notifications-help {
        display: none !important;
    }

    /* Fixed Bottom Navigation Bar */
    .new-bottom-nav {
        display: flex !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 99999 !important;
        height: calc(62px + env(safe-area-inset-bottom)) !important;
        padding-bottom: env(safe-area-inset-bottom) !important;
        background: rgba(255, 255, 255, 0.94) !important;
        backdrop-filter: blur(16px) !important;
        border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.04) !important;
        justify-content: space-around !important;
        align-items: center !important;
        padding-top: 4px !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
        box-sizing: border-box !important;
    }

    .new-bottom-nav-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-decoration: none !important;
        color: #7c7a95 !important;
        font-size: 10px !important;
        font-weight: 750 !important;
        flex: 1 !important;
        gap: 3px !important;
        transition: all 0.2s ease !important;
        outline: none !important;
    }

    .new-bottom-nav-item i {
        font-size: 19px !important;
        color: #8b89a6 !important;
        transition: all 0.2s ease !important;
    }

    .new-bottom-nav-item:hover,
    .new-bottom-nav-item:focus {
        text-decoration: none !important;
        color: #e95f24 !important;
    }

    .new-bottom-nav-item.is-active {
        color: #e95f24 !important;
    }

    .new-bottom-nav-item.is-active i {
        color: #e95f24 !important;
        transform: scale(1.05) !important;
    }

    .new-bottom-nav-avatar {
        width: 22px !important;
        height: 22px !important;
        border-radius: 50% !important;
        object-fit: cover !important;
        border: 1.5px solid #8b89a6 !important;
        transition: all 0.2s ease !important;
    }

    .new-bottom-nav-item.is-active .new-bottom-nav-avatar {
        border-color: #e95f24 !important;
        transform: scale(1.05) !important;
    }

    /* Compact Header Bar Layout (Logo Left, Actions Right) */
    .new-feed-topbar {
        display: grid !important;
        grid-template-columns: 1fr auto !important;
        align-items: center !important;
        row-gap: 12px !important;
        padding: 10px 16px !important;
    }

    .new-feed-logo {
        grid-row: 1 !important;
        grid-column: 1 !important;
        justify-self: start !important;
        margin: 0 !important;
    }

    .new-feed-logo img {
        max-height: 28px !important;
        width: auto !important;
    }

    .new-feed-actions {
        grid-row: 1 !important;
        grid-column: 2 !important;
        justify-self: end !important;
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        margin: 0 !important;
    }

    .new-feed-search {
        grid-row: 2 !important;
        grid-column: 1 / span 2 !important;
        width: 100% !important;
        margin: 0 !important;
    }

    /* Hide redundant elements in mobile header to avoid clutter */
    .new-feed-topbar .new-create-menu,
    .new-feed-topbar a[href*="favorites"],
    .new-feed-topbar .new-profile-menu,
    .new-feed-topbar .new-login-link,
    .new-feed-topbar .new-create-link {
        display: none !important;
    }

    /* Mobile settings/profile dropdown drawer - full screen */
    .new-bottom-profile-toggle {
        position: relative !important;
        cursor: pointer !important;
    }

    .new-mobile-profile-dropdown {
        display: none !important;
        position: fixed !important;
        bottom: calc(62px + env(safe-area-inset-bottom)) !important;
        left: 0 !important;
        right: 0 !important;
        top: 0 !important;
        background: #ffffff !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        border: none !important;
        padding: 16px 0 40px 0 !important;
        max-height: calc(100vh - 62px - env(safe-area-inset-bottom)) !important;
        height: calc(100vh - 62px - env(safe-area-inset-bottom)) !important;
        width: 100vw !important;
        overflow-y: auto !important;
        z-index: 99998 !important;
        text-align: left !important;
        transform: none !important;
    }

    .new-mobile-profile-dropdown.is-open {
        display: block !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    .new-mobile-drawer-header {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 4px 16px 16px 16px !important;
        border-bottom: 1px solid rgba(117, 86, 61, 0.08) !important;
        margin-bottom: 16px !important;
    }

    .new-mobile-drawer-header .new-profile-summary {
        background: transparent !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        flex: 1 !important;
    }

    .new-mobile-profile-dropdown .new-drawer-close-btn {
        background: rgba(0, 0, 0, 0.04) !important;
        border: none !important;
        border-radius: 50% !important;
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        max-width: 36px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        color: #7c7a95 !important;
        font-size: 16px !important;
        cursor: pointer !important;
        transition: all 0.2s ease !important;
        padding: 0 !important;
        outline: none !important;
        margin: 0 0 0 12px !important;
        box-shadow: none !important;
    }

    .new-mobile-profile-dropdown .new-drawer-close-btn i {
        color: #7c7a95 !important;
        width: auto !important;
        margin: 0 !important;
        font-size: 16px !important;
    }

    .new-mobile-profile-dropdown .new-drawer-close-btn:hover,
    .new-mobile-profile-dropdown .new-drawer-close-btn:focus {
        background: rgba(0, 0, 0, 0.08) !important;
        color: #ff6422 !important;
    }

    .new-mobile-profile-dropdown .new-drawer-close-btn:hover i,
    .new-mobile-profile-dropdown .new-drawer-close-btn:focus i {
        color: #ff6422 !important;
    }

    .new-mobile-profile-dropdown a,
    .new-mobile-profile-dropdown button {
        padding: 12px 16px !important;
        font-size: 15px !important;
        color: #243646 !important;
        font-weight: 650 !important;
        margin: 0 16px 6px 16px !important;
        width: calc(100% - 32px) !important;
    }

    .new-mobile-profile-dropdown .new-profile-control {
        padding: 12px 16px !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.04) !important;
        margin: 8px 16px !important;
    }

    .new-mobile-profile-dropdown form {
        margin: 6px 0 0 0 !important;
        width: 100% !important;
    }

    .new-mobile-profile-dropdown .new-mobile-login-btn {
        background: #fff6ef !important;
        color: #ff6422 !important;
        justify-content: center !important;
        border: 1.5px solid rgba(255, 100, 34, 0.16) !important;
        border-radius: 14px !important;
        margin-top: 18px !important;
        font-weight: 750 !important;
    }

    .new-mobile-profile-dropdown .new-mobile-login-btn:hover {
        background: #ffe6d5 !important;
        color: #e95f24 !important;
        text-decoration: none !important;
    }

    .new-mobile-profile-dropdown .new-mobile-register-btn {
        background: #243646 !important;
        color: #ffffff !important;
        justify-content: center !important;
        border-radius: 14px !important;
        margin-top: 10px !important;
        font-weight: 750 !important;
    }

    .new-mobile-profile-dropdown .new-mobile-register-btn:hover {
        background: #172839 !important;
        color: #ffffff !important;
        text-decoration: none !important;
    }

    /* Mobile centered create floating menu */
    .new-mobile-create-dropdown {
        display: none !important;
        position: fixed !important;
        bottom: calc(72px + env(safe-area-inset-bottom)) !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        background: #ffffff !important;
        border-radius: 20px !important;
        box-shadow: 0 10px 32px rgba(0, 0, 0, 0.15) !important;
        border: 1px solid rgba(117, 86, 61, 0.12) !important;
        padding: 10px !important;
        width: 180px !important;
        z-index: 99998 !important;
        opacity: 0 !important;
        transition: opacity 0.2s ease, transform 0.2s ease !important;
        pointer-events: none !important;
        top: auto !important;
        right: auto !important;
    }

    .new-mobile-create-dropdown.is-open {
        display: block !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        transform: translate(-50%, -4px) !important;
    }

    .new-mobile-create-dropdown a {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        padding: 12px 16px !important;
        color: #243646 !important;
        font-weight: 650 !important;
        font-size: 15px !important;
        border-radius: 12px !important;
        text-decoration: none !important;
        transition: background 0.2s ease !important;
        margin: 0 !important;
        width: 100% !important;
    }

    .new-mobile-create-dropdown a:hover,
    .new-mobile-create-dropdown a:focus {
        background: #fff0e8 !important;
        color: #ff6422 !important;
    }

    .new-mobile-create-dropdown a i {
        color: #ff6422 !important;
        font-size: 16px !important;
        width: 20px !important;
        text-align: center !important;
    }

    /* Hide post composer box on mobile view */
    .new-composer-card {
        display: none !important;
    }

    /* Hide yc-hero section on mobile view */
    .yc-hero {
        display: none !important;
    }

    /* Hide bottom navigation bar when virtual keyboard is active */
    body.keyboard-open .new-bottom-nav {
        display: none !important;
    }

    /* Force TinyMCE editor width to 100% on mobile to prevent overflow */
    .yc-field {
        min-width: 0 !important;
    }

    .yc-field .tox-tinymce {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }
}

/* Global button focus/active state resets to prevent browser default black outlines */
.yc-action-btn:focus,
.yc-action-btn:active,
.yc-action-btn:focus-visible,
.new-ajax-btn:focus,
.new-ajax-btn:active,
.new-ajax-btn:focus-visible,
.new-local-action:focus,
.new-local-action:active,
.new-local-action:focus-visible,
.yc-post-like-btn:focus,
.yc-post-like-btn:active,
.yc-post-like-btn:focus-visible,
.yc-post-save-btn:focus,
.yc-post-save-btn:active,
.yc-post-save-btn:focus-visible,
.new-user-pill:focus,
.new-user-pill:active,
.new-user-pill:focus-visible,
.new-profile-menu.is-open .new-user-pill,
html.yc-dark-mode body .new-user-pill:focus,
html.yc-dark-mode body .new-user-pill:active,
html.yc-dark-mode body .new-user-pill:focus-visible,
html.yc-dark-mode body .new-profile-menu.is-open .new-user-pill,
button:focus,
button:active,
button:focus-visible,
.btn:focus,
.btn:active,
.btn:focus-visible {
    outline: none !important;
    outline: 0 !important;
    box-shadow: none !important;
    border: 0 !important;
}

/* Global reset to prevent blue hover/focus/active colors across the entire website */
a:hover,
a:focus,
a:active {
    color: #ff6422;
    text-decoration: none;
}

html.yc-dark-mode a:hover,
html.yc-dark-mode a:focus,
html.yc-dark-mode a:active {
    color: #ffaa7d !important;
    text-decoration: none !important;
}

/* Ensure buttons with white text on brand background keep white text color on hover/focus */
.new-start-btn:hover,
.new-start-btn:focus,
.new-start-btn:active,
.new-profile-card a:hover,
.new-profile-card a:focus,
.new-profile-card a:active,
.new-create-link:hover,
.new-create-link:focus,
.new-create-link:active,
.new-icon-action.is-primary:hover,
.new-icon-action.is-primary:focus,
.new-icon-action.is-active:hover,
.new-icon-action.is-active:focus,
.yc-profile-action:hover,
.yc-profile-action:focus,
.yc-profile-action:active {
    color: #ffffff !important;
    text-decoration: none !important;
}

/* Card Menu Dropdown Styles */
.yc-card-menu {
    position: relative;
    display: inline-block;
}

.yc-menu-trigger {
    background: transparent;
    border: none;
    color: #74808b;
    font-size: 16px;
    padding: 8px;
    cursor: pointer;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    outline: none !important;
}

.yc-menu-trigger:hover,
.yc-menu-trigger:focus {
    background: rgba(0, 0, 0, 0.05);
    color: #1f3342;
}

.yc-menu-dropdown {
    position: absolute;
    right: 0;
    top: 100%;
    background: #ffffff;
    border: 1px solid rgba(117, 86, 61, 0.12);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(31, 51, 66, 0.12);
    z-index: 100;
    min-width: 110px;
    padding: 6px 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px);
    transition: all 0.15s ease;
}

.yc-menu-dropdown.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.yc-menu-dropdown a {
    display: flex !important;
    align-items: center;
    gap: 8px;
    padding: 8px 14px !important;
    color: #536471 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    transition: background 0.15s ease, color 0.15s ease;
}

.yc-menu-dropdown a:hover {
    background: #fff6ef !important;
    color: #ff6422 !important;
}

.yc-menu-dropdown a i {
    font-size: 14px;
}

/* Dark Mode Overrides */
html.yc-dark-mode body .yc-menu-trigger:hover,
html.yc-dark-mode body .yc-menu-trigger:focus {
    background: rgba(255, 255, 255, 0.08);
    color: #e8e6f0;
}

html.yc-dark-mode body .yc-menu-dropdown {
    background: #1e1b18;
    border-color: rgba(255, 100, 34, 0.15);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
}

html.yc-dark-mode body .yc-menu-dropdown a {
    color: #a5a3b8 !important;
}

html.yc-dark-mode body .yc-menu-dropdown a:hover {
    background: rgba(255, 100, 34, 0.12) !important;
    color: #ffaa7d !important;
}

/* Unified Search Scope Dropdown */
.new-search-scope-select-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.new-search-scope-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: transparent !important;
    border: 0 !important;
    color: #ff6422 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    height: 38px !important;
    padding: 0 16px 0 0 !important;
    cursor: pointer !important;
    outline: none !important;
    box-shadow: none !important;
    font-family: inherit !important;
    width: auto !important;
    max-width: 90px !important;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.new-search-scope-select option {
    background: #ffffff !important;
    color: #1f3342 !important;
    font-weight: 550 !important;
}

html.yc-dark-mode body .new-search-scope-select option {
    background: #1e1e1e !important;
    color: #e8e6f0 !important;
}

.new-select-arrow {
    position: absolute;
    right: 0;
    pointer-events: none;
    color: #ff6422;
    font-size: 9px !important;
    transition: transform 0.2s ease;
}

.new-search-divider {
    width: 1px;
    height: 18px;
    background: rgba(117, 86, 61, 0.18);
    display: inline-block;
}

html.yc-dark-mode body .new-search-divider {
    background: rgba(255, 100, 34, 0.25);
}

/* Search Tabs Bar */
.yc-search-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 20px auto 10px;
    max-width: 600px;
    background: #fff;
    padding: 6px;
    border-radius: 999px;
    border: 1px solid rgba(117, 86, 61, 0.08);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
}

.yc-search-tabs a {
    flex: 1;
    text-align: center;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    color: #536471;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.yc-search-tabs a:hover {
    color: #ff6422;
    background: #fff6ef;
}

.yc-search-tabs a.active {
    background: linear-gradient(135deg, #ff7a2f 0%, #e95f24 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(233, 95, 36, 0.2);
}

.yc-search-tabs a.active:hover {
    background: linear-gradient(135deg, #ff7a2f 0%, #e95f24 100%) !important;
    color: #ffffff !important;
    opacity: 0.95;
}

/* Dark Mode overrides */
html.yc-dark-mode body .yc-search-tabs {
    background: #1e1e1e;
    border-color: rgba(255, 100, 34, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

html.yc-dark-mode body .yc-search-tabs a {
    color: #a5a3b8;
}

html.yc-dark-mode body .yc-search-tabs a:hover {
    color: #ffaa7d;
    background: rgba(255, 100, 34, 0.1);
}

html.yc-dark-mode body .yc-search-tabs a.active {
    background: linear-gradient(135deg, #ff7a2f 0%, #e95f24 100%) !important;
    color: #ffffff !important;
}

html.yc-dark-mode body .yc-search-tabs a.active:hover {
    background: linear-gradient(135deg, #ff7a2f 0%, #e95f24 100%) !important;
    color: #ffffff !important;
    opacity: 0.95;
}

@media (max-width: 720px) {
    .yc-search-tabs {
        margin: 12px 12px 6px 12px;
        padding: 4px;
    }
    .yc-search-tabs a {
        padding: 8px 12px;
        font-size: 12px;
    }
}

/* Hero Search Form */
.yc-hero-search {
    margin: 30px auto 0;
    max-width: 600px;
    display: flex;
    width: 100%;
    position: relative;
}

.yc-hero-search input {
    flex: 1;
    padding: 14px 24px;
    padding-right: 120px;
    border-radius: 999px;
    border: 1px solid rgba(255, 100, 34, 0.2);
    outline: none;
    font-size: 15px;
    background: #ffffff;
    color: #1a202c;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.yc-hero-search input:focus {
    border-color: #ff7a2f;
    box-shadow: 0 4px 20px rgba(255, 122, 47, 0.15);
}

.yc-hero-search button {
    position: absolute;
    right: 6px;
    top: 6px;
    bottom: 6px;
    background: linear-gradient(135deg, #ff7a2f 0%, #e95f24 100%);
    color: #ffffff;
    border: 0;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.2s ease;
}

.yc-hero-search button:hover {
    color: #ffffff !important;
    opacity: 0.95;
    transform: translateY(-0.5px);
    box-shadow: 0 4px 12px rgba(233, 95, 36, 0.25);
}

.yc-hero.is-search-page {
    display: block;
    text-align: center;
    padding: 80px 24px;
}

.yc-hero.is-search-page p {
    margin: 8px auto 0;
}






/* Uploading Progress Bar styling */
.yc-post-upload-progress {
    background: rgba(255, 100, 34, 0.04);
    border-bottom: 1px solid rgba(255, 100, 34, 0.15);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 700;
    color: #ff6422;
    position: relative;
    overflow: hidden;
}

.yc-post-upload-progress .yc-progress-bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 70%;
    background: rgba(255, 100, 34, 0.1);
    animation: yc-pulse 2s infinite ease-in-out;
}

@keyframes yc-pulse {
    0% { opacity: 0.6; }
    50% { opacity: 0.9; }
    100% { opacity: 0.6; }
}

html.yc-dark-mode body .yc-post-upload-progress {
    background: rgba(255, 100, 34, 0.08);
    border-color: rgba(255, 100, 34, 0.25);
    color: #ffaa7d;
}

html.yc-dark-mode body .yc-post-upload-progress .yc-progress-bar {
    background: rgba(255, 100, 34, 0.2);
}

/* Rejected state styling */
.yc-post-upload-progress.is-rejected {
    background: rgba(239, 68, 68, 0.04);
    border-bottom: 1px solid rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.yc-post-upload-progress.is-rejected .yc-progress-bar {
    width: 100%;
    background: rgba(239, 68, 68, 0.06);
    animation: none;
}

html.yc-dark-mode body .yc-post-upload-progress.is-rejected {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.25);
    color: #f87171;
}

html.yc-dark-mode body .yc-post-upload-progress.is-rejected .yc-progress-bar {
    background: rgba(239, 68, 68, 0.12);
}
