/* ======================================================
   HEADER 1 - MİSMİŞ HABER
   File: assets/css/headers/header1.css
====================================================== */

.mh-header-wrap,
.mh-header-wrap *,
.mh-header-wrap *::before,
.mh-header-wrap *::after {
    box-sizing: border-box;
}

.mh-header-wrap {
    width: 100%;
    background: var(--mh-card, #fff);
    color: var(--mh-text, #111827);
    font-family: var(--mh-font-body, Inter, Arial, sans-serif);
    position: relative;
    z-index: 1000;
}

.mh-header-wrap a {
    color: inherit;
    text-decoration: none;
}

.mh-header-wrap button,
.mh-header-wrap input {
    font-family: inherit;
}

.mh-container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

/* ======================================================
   STICKY
   JS ile .is-stuck class gelince:
   - piyasa alanı gizlenir
   - logo alanı gizlenir
   - kategori navbar kalır
   - son dakika kalır
====================================================== */

body.mh-header-stuck {
    padding-top: var(--mh-header-sticky-height, 96px);
}

.mh-header-sticky {
    position: relative;
    z-index: 1000;
}

.mh-header-sticky.is-stuck {
    position: fixed;
    inset: 0 0 auto 0;
    width: 100%;
    z-index: 3000;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .14);
    animation: mhStickyIn .14s ease-out both;
}

@keyframes mhStickyIn {
    from {
        transform: translateY(-6px);
    }

    to {
        transform: translateY(0);
    }
}

.mh-header-sticky.is-stuck .mh-h1-market,
.mh-header-sticky.is-stuck .mh-h1-main {
    display: none !important;
}

.mh-header-sticky.is-stuck .mh-h1-nav-wrap,
.mh-header-sticky.is-stuck .mh-h1-breaking {
    display: block !important;
}

.mh-header-sticky.is-stuck .mh-h1-nav-inner {
    min-height: 50px;
}

.mh-header-sticky.is-stuck .mh-h1-nav a,
.mh-header-sticky.is-stuck .mh-h1-nav .nav-link {
    min-height: 50px;
}

/* ======================================================
   PİYASA ALANI
====================================================== */

.mh-h1-market {
    background: #f8fafc;
    border-bottom: 1px solid var(--mh-border, #e5e7eb);
    color: var(--mh-text, #111827);
    font-size: 12px;
}

.mh-h1-market-inner {
    height: 36px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.mh-h1-market-left {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--mh-secondary, #0f172a);
    font-weight: 950;
    white-space: nowrap;
}

.mh-h1-market-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--mh-primary, #cc1a25);
    box-shadow: 0 0 0 4px rgba(204, 26, 37, .12);
}

.mh-h1-market-track,
#headerMarkets {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
}

.mh-h1-market-track:empty,
#headerMarkets:empty {
    display: none;
}

.mh-h1-market-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex: 0 0 auto;
    color: var(--mh-muted, #64748b);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

.mh-h1-market-item b {
    color: var(--mh-secondary, #0f172a);
    font-weight: 950;
}

.mh-h1-market-item em {
    font-style: normal;
    font-weight: 950;
}

.mh-h1-market-item.is-up em,
.mh-h1-market-item.is-up span,
.mh-up {
    color: #16a34a;
}

.mh-h1-market-item.is-down em,
.mh-h1-market-item.is-down span,
.mh-down {
    color: #dc2626;
}

.mh-h1-market-item.is-neutral em,
.mh-h1-market-item.is-neutral span,
.mh-market-neutral {
    color: #64748b;
}

.mh-market-loading {
    color: var(--mh-muted, #64748b);
    font-size: 12px;
    font-weight: 800;
}

.mh-h1-market-date {
    color: var(--mh-muted, #64748b);
    font-size: 11px;
    font-weight: 850;
    white-space: nowrap;
}

/* ======================================================
   ANA HEADER
====================================================== */

.mh-h1-main {
    background: var(--mh-card, #fff);
    border-bottom: 1px solid rgba(229, 231, 235, .8);
}

.mh-h1-main-inner {
    min-height: 96px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 24px;
}

.mh-h1-left,
.mh-h1-right {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.mh-h1-right {
    justify-content: flex-end;
}

.mh-h1-center {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

/* ======================================================
   LOGO
====================================================== */

.mh-h1-center .brand,
.mh-h1-center .mh-logo,
.mh-h1-center a,
.mh-mobile-brand .brand,
.mh-mobile-brand .mh-logo,
.mh-mobile-brand a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.mh-h1-center img,
.mh-logo img,
.brand img {
    display: block;
    max-width: 260px;
    max-height: 72px;
    object-fit: contain;
}

.brand-mark,
.mh-logo-mark {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--mh-primary, #cc1a25);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 950;
    box-shadow: 0 14px 30px rgba(204, 26, 37, .22);
}

.brand-title,
.mh-logo-text {
    margin-left: 10px;
    color: var(--mh-secondary, #0f172a);
    font-family: var(--mh-font-logo, Poppins, Arial, sans-serif);
    font-size: 26px;
    font-weight: 950;
    letter-spacing: -.03em;
}

/* ======================================================
   ARAMA
====================================================== */

.mh-h1-search-wrap {
    min-width: 0;
}

.mh-h1-search,
.mh-h1-mobile-search {
    width: 230px;
    height: 42px;
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.mh-h1-search:focus-within,
.mh-h1-mobile-search:focus-within {
    border-color: var(--mh-primary, #cc1a25);
    box-shadow: 0 0 0 4px rgba(204, 26, 37, .10);
    background: #fff;
}

.mh-h1-search input,
.mh-h1-mobile-search input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 0 0 0 15px;
    color: var(--mh-text, #111827);
    font-size: 13px;
    font-weight: 650;
}

.mh-h1-search input::placeholder,
.mh-h1-mobile-search input::placeholder {
    color: #94a3b8;
}

.mh-h1-search button,
.mh-h1-mobile-search button {
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    color: var(--mh-secondary, #0f172a);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0;
}

.mh-h1-search button::before,
.mh-h1-mobile-search button::before {
    content: "⌕";
    font-size: 22px;
    font-weight: 950;
    line-height: 1;
}

.mh-h1-search button:hover,
.mh-h1-mobile-search button:hover {
    color: var(--mh-primary, #cc1a25);
}

/* ======================================================
   CANLI TV
====================================================== */

.mh-h1-live {
    height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    border-radius: 999px;
    background: #fff5f5;
    color: var(--mh-primary, #cc1a25);
    border: 1px solid rgba(204, 26, 37, .16);
    font-size: 13px;
    font-weight: 950;
    white-space: nowrap;
    transition: .18s ease;
}

.mh-h1-live:hover {
    background: var(--mh-primary, #cc1a25);
    color: #fff;
    transform: translateY(-1px);
}

.mh-h1-live span {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--mh-primary, #cc1a25);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 950;
}

.mh-h1-live:hover span {
    background: #fff;
    color: var(--mh-primary, #cc1a25);
}

/* ======================================================
   HAVA DURUMU
====================================================== */

.mh-h1-weather {
    align-items: center;
    gap: 9px;
    min-height: 42px;
    padding: 7px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    color: var(--mh-secondary, #0f172a);
    transition: .18s ease;
}

.mh-h1-weather:hover {
    border-color: var(--mh-primary, #cc1a25);
    background: #fff;
}

#headerWeather:empty,
#mobileWeather:empty {
    display: none !important;
}

.mh-h1-weather .weather-visual,
.mh-mobile-weather-card .weather-visual {
    font-size: 22px;
    line-height: 1;
}

.mh-h1-weather .weather-info,
.mh-mobile-weather-card .weather-info {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.mh-h1-weather .weather-info strong,
.mh-mobile-weather-card .weather-info strong {
    color: var(--mh-secondary, #0f172a);
    font-size: 12px;
    font-weight: 950;
}

.mh-h1-weather .weather-info small,
.mh-mobile-weather-card .weather-info small {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    color: var(--mh-muted, #64748b);
    font-size: 11px;
}

.mh-h1-weather .weather-info small b,
.mh-h1-weather .weather-info small em,
.mh-mobile-weather-card .weather-info small b,
.mh-mobile-weather-card .weather-info small em {
    font-style: normal;
    font-weight: 850;
}

/* ======================================================
   SOSYAL MEDYA
====================================================== */

.mh-h1-social {
    display: flex;
    align-items: center;
    gap: 6px;
}

.mh-h1-social a {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: #f1f5f9;
    color: var(--mh-secondary, #0f172a);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 950;
    text-transform: uppercase;
    transition: .18s ease;
}

.mh-h1-social a:hover {
    background: var(--mh-primary, #cc1a25);
    color: #fff;
    transform: translateY(-1px);
}

/* ======================================================
   ÜYE ALANI
====================================================== */

.mh-h1-member-area {
    position: relative;
}

.mh-h1-member-area .guest-actions,
.mh-h1-guest-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.guest-login,
.guest-register,
.mh-h1-member-area .guest-login,
.mh-h1-member-area .guest-register {
    height: 38px;
    border: 0;
    border-radius: 999px;
    padding: 0 14px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 950;
    white-space: nowrap;
    transition: .18s ease;
}

.guest-login,
.mh-h1-member-area .guest-login {
    background: #f1f5f9;
    color: var(--mh-secondary, #0f172a);
}

.guest-login:hover,
.mh-h1-member-area .guest-login:hover {
    background: #e2e8f0;
}

.guest-register,
.mh-h1-member-area .guest-register {
    background: var(--mh-primary, #cc1a25);
    color: #fff;
}

.guest-register:hover,
.mh-h1-member-area .guest-register:hover {
    background: var(--mh-primary-dark, #9f111a);
    transform: translateY(-1px);
}

.member-trigger {
    height: 44px;
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: var(--mh-secondary, #0f172a);
    border-radius: 999px;
    padding: 5px 11px 5px 5px;
    cursor: pointer;
    transition: .18s ease;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .04);
}

.member-trigger:hover {
    border-color: var(--mh-primary, #cc1a25);
}

.member-avatar {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 50%;
    background: var(--mh-primary, #cc1a25);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 950;
    overflow: hidden;
}

.member-avatar.large {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
}

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

.member-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
}

.member-info strong {
    max-width: 112px;
    color: var(--mh-secondary, #0f172a);
    font-size: 12px;
    font-weight: 950;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.member-info small {
    margin-top: 3px;
    color: var(--mh-muted, #64748b);
    font-size: 10px;
    font-weight: 800;
}

.member-arrow {
    color: var(--mh-muted, #64748b);
    font-size: 10px;
}

.member-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 12px);
    width: 270px;
    background: #fff;
    border: 1px solid var(--mh-border, #e5e7eb);
    border-radius: 18px;
    box-shadow: 0 22px 60px rgba(15, 23, 42, .16);
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: .18s ease;
    z-index: 5000;
}

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

.member-dropdown-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #f8fafc;
    border-radius: 14px;
    margin-bottom: 8px;
}

.member-dropdown-head strong {
    display: block;
    color: var(--mh-secondary, #0f172a);
    font-size: 13px;
    font-weight: 950;
}

.member-dropdown-head small {
    display: block;
    max-width: 170px;
    margin-top: 3px;
    color: var(--mh-muted, #64748b);
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.member-dropdown a,
.member-dropdown button {
    width: 100%;
    min-height: 38px;
    display: flex;
    align-items: center;
    gap: 9px;
    border: 0;
    background: transparent;
    color: var(--mh-secondary, #0f172a);
    border-radius: 12px;
    padding: 9px 10px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 850;
    text-align: left;
    transition: .16s ease;
}

.member-dropdown a:hover,
.member-dropdown button:hover {
    background: #f8fafc;
    color: var(--mh-primary, #cc1a25);
}

.member-primary-link {
    background: rgba(204, 26, 37, .08) !important;
    color: var(--mh-primary, #cc1a25) !important;
}

.member-dropdown-line {
    height: 1px;
    background: var(--mh-border, #e5e7eb);
    margin: 8px 0;
}

.member-logout {
    color: #dc2626 !important;
}

/* ======================================================
   HAMBURGER
====================================================== */

.mh-h1-mobile-toggle {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: var(--mh-secondary, #0f172a);
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    transition: .18s ease;
}

.mh-h1-mobile-toggle span {
    width: 19px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: .18s ease;
}

.mh-h1-mobile-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mh-h1-mobile-toggle.open span:nth-child(2) {
    opacity: 0;
}

.mh-h1-mobile-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ======================================================
   NAVIGATION
====================================================== */

.mh-h1-nav-wrap {
    background: var(--mh-secondary, #0f172a);
    color: #fff;
}

.mh-h1-nav-inner {
    min-height: 50px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.mh-h1-nav-scroll {
    min-width: 0;
    overflow: hidden;
}

.mh-h1-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.mh-h1-nav::-webkit-scrollbar {
    display: none;
}

.mh-h1-nav a,
.mh-h1-nav .nav-link {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    padding: 0 13px;
    color: rgba(255, 255, 255, .88);
    border-bottom: 3px solid transparent;
    font-family: var(--mh-font-menu, Inter, Arial, sans-serif);
    font-size: 13px;
    font-weight: 950;
    white-space: nowrap;
    transition: .16s ease;
}

.mh-h1-nav a:hover,
.mh-h1-nav .nav-link:hover,
.mh-h1-nav .nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, .08);
    border-bottom-color: var(--mh-primary, #cc1a25);
}

.nav-item {
    position: relative;
    flex: 0 0 auto;
}

.nav-link .arr {
    margin-left: 5px;
    font-size: 9px;
    opacity: .68;
}

.nav-dd,
.nav-mega {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    background: #fff;
    color: var(--mh-secondary, #0f172a);
    border: 1px solid var(--mh-border, #e5e7eb);
    border-radius: 0 0 16px 16px;
    box-shadow: 0 22px 50px rgba(15, 23, 42, .15);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: .18s ease;
    z-index: 5000;
}

.nav-mega {
    width: 520px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
}

.nav-item:hover .nav-dd,
.nav-item:hover .nav-mega {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dd a,
.nav-mega a {
    min-height: 36px;
    display: flex;
    align-items: center;
    color: var(--mh-secondary, #0f172a);
    padding: 8px 10px;
    border-radius: 10px;
    border-bottom: 0;
    font-size: 13px;
    font-weight: 850;
}

.nav-dd a:hover,
.nav-mega a:hover {
    color: var(--mh-primary, #cc1a25);
    background: #f8fafc;
}

/* Sticky sağ profil sembolü */
.mh-h1-sticky-user {
    display: none;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
}

.mh-header-sticky.is-stuck .mh-h1-sticky-user {
    display: flex;
}

.mh-h1-sticky-user-link {
    height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .16);
    color: #fff !important;
    font-size: 12px;
    font-weight: 950;
    white-space: nowrap;
    transition: .18s ease;
}

.mh-h1-sticky-user-link:hover {
    background: var(--mh-primary, #cc1a25);
    border-color: var(--mh-primary, #cc1a25);
}

.mh-h1-sticky-user-icon {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: #fff;
    color: var(--mh-primary, #cc1a25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.mh-h1-sticky-user-icon img {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    border-radius: 50%;
    overflow: hidden;
}

/* ======================================================
   SON DAKİKA
====================================================== */

.mh-h1-breaking {
    background: #fff;
    border-bottom: 1px solid var(--mh-border, #e5e7eb);
}

.mh-h1-breaking-inner {
    height: 44px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.mh-h1-breaking-label {
    height: 28px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--mh-primary, #cc1a25);
    color: #fff;
    font-size: 12px;
    font-weight: 950;
    white-space: nowrap;
}

.mh-h1-breaking-label span {
    width: 7px;
    height: 7px;
    background: #fff;
    border-radius: 999px;
    animation: mhPulse 1.2s infinite;
}

@keyframes mhPulse {
    0%,
    100% {
        opacity: .35;
        transform: scale(.85);
    }

    50% {
        opacity: 1;
        transform: scale(1.15);
    }
}

.mh-h1-breaking-marquee {
    min-width: 0;
    overflow: hidden;
}

.mh-h1-breaking-track {
    display: flex;
    align-items: center;
    gap: 28px;
    white-space: nowrap;
    animation: mhBreakingScroll 42s linear infinite;
}

.mh-h1-breaking-track:hover {
    animation-play-state: paused;
}

.mh-h1-breaking-track a {
    color: var(--mh-secondary, #0f172a);
    font-size: 13px;
    font-weight: 850;
}

.mh-h1-breaking-track a:hover {
    color: var(--mh-primary, #cc1a25);
}

@keyframes mhBreakingScroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* ======================================================
   MOBİL SIDEBAR
====================================================== */

body.mh-mobile-menu-open {
    overflow: hidden;
}

.mh-mobile-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .60);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: .22s ease;
    z-index: 7000;
}

body.mh-mobile-menu-open .mh-mobile-backdrop {
    opacity: 1;
    visibility: visible;
}

.mh-mobile-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: min(390px, 90vw);
    height: 100dvh;
    background: #fff;
    color: var(--mh-text, #111827);
    z-index: 7001;
    transform: translateX(105%);
    transition: transform .26s cubic-bezier(.2, .75, .25, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -22px 0 60px rgba(15, 23, 42, .26);
}

.mh-mobile-sidebar.open,
body.mh-mobile-menu-open .mh-mobile-sidebar {
    transform: translateX(0);
}

.mh-mobile-sidebar-head {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--mh-border, #e5e7eb);
    background:
        radial-gradient(circle at top right, rgba(204, 26, 37, .10), transparent 36%),
        #fff;
}

.mh-mobile-brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.mh-mobile-brand img {
    display: block;
    max-width: 185px;
    max-height: 50px;
    object-fit: contain;
}

.mh-mobile-brand .brand-title,
.mh-mobile-brand .mh-logo-text {
    font-size: 19px;
}

.mh-mobile-brand .brand-mark,
.mh-mobile-brand .mh-logo-mark {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    font-size: 20px;
}

.mh-mobile-close {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border: 0;
    border-radius: 13px;
    background: #f1f5f9;
    color: var(--mh-secondary, #0f172a);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.mh-mobile-sidebar-body {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    -webkit-overflow-scrolling: touch;
}

.mh-mobile-section {
    background: #fff;
    border: 1px solid var(--mh-border, #e5e7eb);
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 14px;
}

.mh-mobile-section-title {
    padding: 11px 13px;
    background: #f8fafc;
    border-bottom: 1px solid var(--mh-border, #e5e7eb);
    color: var(--mh-muted, #64748b);
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.mh-h1-mobile-search-wrap {
    padding: 12px;
}

.mh-h1-mobile-search {
    width: 100%;
}

.mh-mobile-weather-card {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 13px;
    color: var(--mh-secondary, #0f172a);
    font-size: 13px;
    font-weight: 850;
}

.mh-mobile-weather-placeholder {
    color: var(--mh-muted, #64748b);
    font-size: 12px;
    line-height: 1.5;
    font-weight: 750;
}

.mh-mobile-market-list {
    display: grid;
    gap: 8px;
    padding: 12px;
}

.mh-mobile-market-item {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 11px;
    border-radius: 13px;
    background: #f8fafc;
    color: var(--mh-secondary, #0f172a);
}

.mh-mobile-market-item strong {
    font-size: 12px;
    font-weight: 950;
}

.mh-mobile-market-item span {
    color: var(--mh-muted, #64748b);
    font-size: 12px;
    font-weight: 950;
}

.mh-mobile-market-item.is-up span {
    color: #16a34a;
}

.mh-mobile-market-item.is-down span {
    color: #dc2626;
}

.mh-h1-mobile-nav {
    display: grid;
    gap: 2px;
    padding: 8px;
}

.mh-h1-mobile-nav a,
.mh-h1-mobile-nav .nav-link {
    min-height: 42px;
    display: flex;
    align-items: center;
    border-radius: 12px;
    padding: 0 11px;
    color: var(--mh-secondary, #0f172a);
    font-size: 13px;
    font-weight: 850;
}

.mh-h1-mobile-nav a:hover,
.mh-h1-mobile-nav .nav-link:hover {
    background: #f8fafc;
    color: var(--mh-primary, #cc1a25);
}

.mh-h1-mobile-nav .nav-item {
    display: flex;
    flex-direction: column;
}

.mh-h1-mobile-nav .nav-dd,
.mh-h1-mobile-nav .nav-mega {
    position: static;
    width: auto;
    min-width: 0;
    box-shadow: none;
    border: 0;
    border-radius: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.mh-h1-mobile-nav .nav-dd a,
.mh-h1-mobile-nav .nav-mega a,
.mh-h1-mobile-nav .mob-sub {
    min-height: 38px;
    padding-left: 26px;
    background: #f8fafc;
    color: var(--mh-muted, #64748b);
    font-size: 12px;
}

.mh-h1-mobile-member {
    padding: 12px;
}

.mobile-member-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--mh-border, #e5e7eb);
}

.mobile-member-head strong {
    display: block;
    color: var(--mh-secondary, #0f172a);
    font-size: 14px;
    font-weight: 950;
}

.mobile-member-head small {
    display: block;
    margin-top: 3px;
    color: var(--mh-muted, #64748b);
    font-size: 11px;
    font-weight: 750;
}

.mh-h1-mobile-member a {
    min-height: 40px;
    display: flex;
    align-items: center;
    border-radius: 12px;
    padding: 0 10px;
    color: var(--mh-secondary, #0f172a);
    font-size: 13px;
    font-weight: 850;
}

.mh-h1-mobile-member a:hover {
    background: #f8fafc;
    color: var(--mh-primary, #cc1a25);
}

.mobile-guest-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.mobile-guest-actions button,
.mobile-logout {
    min-height: 42px;
    border: 0;
    border-radius: 13px;
    font-size: 13px;
    font-weight: 950;
    cursor: pointer;
}

.mobile-guest-actions button:first-child {
    background: #f1f5f9;
    color: var(--mh-secondary, #0f172a);
}

.mobile-guest-actions button:last-child {
    background: var(--mh-primary, #cc1a25);
    color: #fff;
}

.mobile-logout {
    width: 100%;
    background: #fee2e2;
    color: #dc2626;
    margin-top: 10px;
}

.mh-h1-mobile-social {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 12px;
}

.mh-h1-mobile-social a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: var(--mh-secondary, #0f172a);
    font-size: 12px;
    font-weight: 950;
}

.mh-h1-mobile-social a:hover {
    background: var(--mh-primary, #cc1a25);
    border-color: var(--mh-primary, #cc1a25);
    color: #fff;
}

/* ======================================================
   AUTH MODAL
====================================================== */

.auth-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .55);
    backdrop-filter: blur(4px);
    z-index: 8000;
    opacity: 0;
    visibility: hidden;
    transition: .18s ease;
}

.auth-modal-backdrop.open {
    opacity: 1;
    visibility: visible;
}

.auth-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 8001;
}

.auth-modal.open {
    display: flex;
}

.auth-modal-card {
    width: min(420px, 100%);
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 26px 80px rgba(15, 23, 42, .28);
    padding: 24px;
    position: relative;
    animation: mhModalIn .18s ease;
}

@keyframes mhModalIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(.98);
    }

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

.auth-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #f1f5f9;
    color: var(--mh-secondary, #0f172a);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.auth-head {
    padding-right: 38px;
    margin-bottom: 18px;
}

.auth-head strong {
    display: block;
    color: var(--mh-secondary, #0f172a);
    font-size: 22px;
    font-weight: 950;
    letter-spacing: -.03em;
}

.auth-head span {
    display: block;
    margin-top: 6px;
    color: var(--mh-muted, #64748b);
    font-size: 13px;
    line-height: 1.5;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.auth-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--mh-secondary, #0f172a);
    font-size: 12px;
    font-weight: 950;
}

.auth-form input {
    height: 44px;
    border: 1.5px solid #cbd5e1;
    border-radius: 14px;
    padding: 0 13px;
    outline: 0;
    font-size: 14px;
}

.auth-form input:focus {
    border-color: var(--mh-primary, #cc1a25);
    box-shadow: 0 0 0 4px rgba(204, 26, 37, .10);
}

.auth-message {
    display: none;
    border-radius: 14px;
    padding: 10px 12px;
    font-size: 12px;
    font-weight: 850;
}

.auth-message.success {
    display: block;
    background: #dcfce7;
    color: #166534;
}

.auth-message.error {
    display: block;
    background: #fee2e2;
    color: #991b1b;
}

.auth-submit {
    height: 45px;
    border: 0;
    border-radius: 14px;
    background: var(--mh-primary, #cc1a25);
    color: #fff;
    font-size: 14px;
    font-weight: 950;
    cursor: pointer;
}

.auth-submit:hover {
    background: var(--mh-primary-dark, #9f111a);
}

.auth-submit:disabled {
    opacity: .65;
    cursor: not-allowed;
}

.auth-switch {
    border: 0;
    background: transparent;
    color: var(--mh-primary, #cc1a25);
    font-size: 13px;
    font-weight: 950;
    cursor: pointer;
}

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

@media (max-width: 1180px) {
    .mh-h1-main-inner {
        gap: 18px;
    }

    .mh-h1-search {
        width: 200px;
    }

    .mh-h1-weather {
        max-width: 170px;
    }

    .mh-h1-weather .weather-info small {
        display: none;
    }

    .mh-h1-nav a,
    .mh-h1-nav .nav-link {
        padding: 0 11px;
        font-size: 12px;
    }
}

@media (max-width: 1080px) {
    .mh-h1-search {
        width: 190px;
    }

    .mh-h1-live {
        display: none;
    }

    .member-info {
        display: none;
    }

    .mh-h1-social {
        display: none;
    }
}

@media (max-width: 900px) {
    body.mh-header-stuck {
        padding-top: var(--mh-header-sticky-height, 84px);
    }

    .mh-header-sticky.is-stuck {
        position: fixed;
        inset: 0 0 auto 0;
        width: 100%;
        z-index: 3000;
    }

    .mh-header-sticky.is-stuck .mh-h1-market {
        display: none !important;
    }

    .mh-header-sticky.is-stuck .mh-h1-main {
        display: block !important;
    }

    .mh-header-sticky.is-stuck .mh-h1-nav-wrap {
        display: none !important;
    }

    .mh-header-sticky.is-stuck .mh-h1-breaking {
        display: block !important;
    }

    .mh-h1-main-inner {
        min-height: 68px;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 12px;
    }

    .mh-h1-left {
        display: none !important;
    }

    .mh-h1-center {
        justify-content: flex-start;
    }

    .mh-h1-right {
        gap: 8px;
    }

    .mh-h1-center img,
    .mh-logo img,
    .brand img {
        max-width: 175px;
        max-height: 52px;
    }

    .brand-mark,
    .mh-logo-mark {
        width: 44px;
        height: 44px;
        border-radius: 13px;
        font-size: 20px;
    }

    .brand-title,
    .mh-logo-text {
        font-size: 19px;
    }

    .mh-h1-nav-wrap {
        display: none;
    }

    .mh-h1-mobile-toggle {
        display: flex;
    }

    .mh-h1-right .mh-h1-member-area,
    .mh-h1-weather,
    .mh-h1-social {
        display: none !important;
    }

    .mh-h1-breaking-inner {
        height: 42px;
        grid-template-columns: auto minmax(0, 1fr);
        gap: 10px;
    }

    .mh-h1-breaking-label {
        height: 26px;
        padding: 0 10px;
        font-size: 11px;
    }

    .mh-h1-breaking-track {
        gap: 22px;
        animation-duration: 34s;
    }

    .mh-h1-breaking-track a {
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .mh-container {
        width: min(100% - 24px, 1180px);
    }

    .mh-h1-market-inner {
        height: 34px;
        grid-template-columns: auto minmax(0, 1fr);
        gap: 10px;
        overflow: hidden;
    }

    .mh-h1-market-left strong,
    .mh-h1-market-date {
        display: none;
    }

    #headerMarkets {
        overflow-x: auto;
        justify-content: flex-start;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    #headerMarkets::-webkit-scrollbar {
        display: none;
    }

    .mh-h1-market-item {
        font-size: 11px;
    }

    .mh-mobile-sidebar {
        width: min(380px, 92vw);
    }

    .mh-mobile-sidebar-head {
        min-height: 70px;
    }

    .mh-mobile-brand img {
        max-width: 160px;
        max-height: 46px;
    }
}

@media (max-width: 520px) {
    .mh-container {
        width: min(100% - 20px, 1180px);
    }

    .mh-h1-main-inner {
        min-height: 64px;
    }

    .mh-h1-center img,
    .mh-logo img,
    .brand img {
        max-width: 150px;
        max-height: 46px;
    }

    .brand-mark,
    .mh-logo-mark {
        width: 42px;
        height: 42px;
        border-radius: 13px;
        font-size: 19px;
    }

    .brand-title,
    .mh-logo-text {
        font-size: 17px;
        margin-left: 8px;
    }

    .mh-h1-mobile-toggle {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }

    .mh-h1-mobile-toggle span {
        width: 18px;
    }

    .mh-h1-market-inner {
        height: 32px;
    }

    .mh-h1-breaking-inner {
        height: 40px;
    }

    .mh-h1-breaking-label {
        font-size: 10px;
        padding: 0 9px;
    }

    .mh-h1-breaking-track a {
        font-size: 11px;
    }

    .mh-mobile-sidebar {
        width: min(360px, 94vw);
    }

    .mh-mobile-sidebar-body {
        padding: 12px;
    }

    .mobile-guest-actions,
    .mh-h1-mobile-social {
        grid-template-columns: 1fr;
    }

    .auth-modal {
        padding: 12px;
    }

    .auth-modal-card {
        padding: 18px;
        border-radius: 20px;
    }
}

@media (max-width: 380px) {
    .mh-h1-center img,
    .mh-logo img,
    .brand img {
        max-width: 132px;
    }

    .brand-title,
    .mh-logo-text {
        font-size: 16px;
    }

    .mh-h1-mobile-toggle {
        width: 38px;
        height: 38px;
    }

    .mh-h1-breaking-label {
        max-width: 92px;
        overflow: hidden;
    }
}