:root {
    --gold-primary: #ffb301;
    --gold-light: #ffd800;
    --gold-lighter: #fdf001;
    --gold-dark: #e6a000;
    --gold-gradient: linear-gradient(135deg, #ffb301, #ffd800, #fdf001, #ffd800, #ffb301);
    --gold-glow: 0 0 50px rgba(255, 179, 1, 0.25);
    --gold-glow-strong: 0 0 80px rgba(253, 240, 1, 0.35);
    --gold-border: rgba(255, 179, 1, 0.25);
    
    --bg-dark: #050505;
    --bg-card: #0d0d0d;
    --bg-hover: #1a1a1a;
    
    --text-white: #ffffff;
    --text-gray: #c8c8c8;
    --text-muted: #9ca3af;
    --text-dark: #000000;
    
    --border-soft: rgba(255, 179, 1, 0.08);
    --shadow-soft: rgba(255, 179, 1, 0.08);
}

.header-wrapper {
    background: linear-gradient(180deg, var(--bg-card), var(--bg-dark));
    position: sticky;
    top: 0;
    z-index: 1050;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.header {
    padding: 20px 14px;
}

.header-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
}
.header-center {
    display: flex;
    justify-content: center;
    align-items: center;
}
.header-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

header hr {
    margin: 5px 0;
    color: var(--gold-primary);
    border-color: var(--gold-primary);
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}
.logo-link:hover {
    transform: scale(1.02);
}
.logo-link img {
    max-height: 70px;
    object-fit: contain;
    filter: drop-shadow(0 0 15px var(--shadow-soft));
    transition: filter 0.3s ease;
}
.logo-link:hover img {
    filter: drop-shadow(0 0 30px var(--shadow-soft));
}

.btn-icon-menu {
    background: rgba(13, 13, 13, 0.8);
    border: 1px solid var(--gold-border);
    color: var(--text-gray);
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
}
.btn-icon-menu:hover {
    border-color: var(--gold-primary);
    background: rgba(255, 179, 1, 0.08);
    color: var(--gold-primary);
    transform: scale(1.05);
    box-shadow: 0 0 30px var(--shadow-soft);
}
.btn-icon-menu:active {
    transform: scale(0.95);
}
.btn-icon-menu::after {
    display: none;
}

.live-dot {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    font-size: 14px;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    background: rgba(255, 179, 1, 0.08);
    padding: 4px 14px 4px 10px;
    border-radius: 20px;
    border: 1px solid var(--gold-border);
    transition: all 0.3s ease;
}
.live-dot span {
    width: 10px;
    height: 10px;
    background: var(--gold-primary);
    border-radius: 50%;
    animation: livePulse 1.2s ease-in-out infinite;
    box-shadow: 0 0 12px var(--gold-glow);
}

@keyframes livePulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.4);
        opacity: 0.6;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.ticker-content {
    display: flex;
    padding: 10px 0;
    font-size: 14px;
    color: var(--text-gray);
    border-top: 1px solid var(--gold-border);
    border-bottom: 1px solid var(--gold-border);
    gap: 50px;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.3);
    overflow: hidden;
}
.ticker-content span {
    color: var(--gold-primary);
}

ul.dropdown-menu.dropdown-menu-dark {
    background: radial-gradient(circle at top, var(--bg-card), var(--bg-dark));
    border: 1px solid var(--gold-border);
    border-radius: 16px;
    padding: 8px 6px;
    min-width: 240px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 40px var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    margin-top: 12px;
    animation: dropdownSlide 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: top left;
}

ul.dropdown-menu.dropdown-menu-dark.show {
    background: radial-gradient(circle at top, var(--bg-card), var(--bg-dark));
    border: 1px solid var(--gold-border);
}

@keyframes dropdownSlide {
    0% {
        opacity: 0;
        transform: translateY(-12px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    color: var(--text-gray);
    font-size: 14px;
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

ul.dropdown-menu.dropdown-menu-dark .dropdown-item {
    color: var(--text-gray);
    transition: all 0.3s ease;
    padding: 6px 16px;
}
ul.dropdown-menu.dropdown-menu-dark .dropdown-item:hover {
    background: rgba(255, 179, 1, 0.08);
    color: var(--gold-primary);
}

.dropdown-menu .dropdown-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 179, 1, 0.06), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 10px;
}
.dropdown-menu .dropdown-item:hover::before {
    opacity: 1;
}

.dropdown-menu .dropdown-item i {
    width: 20px;
    text-align: center;
    font-size: 15px;
    color: var(--gold-primary);
    flex-shrink: 0;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}
.dropdown-menu .dropdown-item span {
    position: relative;
    z-index: 1;
}
.dropdown-menu .dropdown-item:hover {
    color: var(--gold-primary);
    transform: translateX(6px);
}
.dropdown-menu .dropdown-item:hover i {
    transform: scale(1.15);
    color: var(--gold-light);
}
.dropdown-menu .dropdown-item:active {
    transform: scale(0.97);
}

.dropdown-menu .dropdown-item.active {
    background: rgba(255, 179, 1, 0.1);
    color: var(--gold-primary);
    border-left: 3px solid var(--gold-primary);
}

.dropdown-menu .dropdown-divider {
    margin: 6px 14px;
    border-color: var(--gold-border);
    opacity: 0.5;
    height: 1px;
}

.dropdown-menu .dropdown-item::after {
    content: "→";
    position: absolute;
    right: 16px;
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.3s ease;
    color: var(--gold-primary);
    font-weight: 300;
}
.dropdown-menu .dropdown-item:hover::after {
    opacity: 1;
    transform: translateX(0);
}

.dropdown-menu .dropdown-item.auth {
    color: var(--gold-primary) !important;
    font-weight: 700;
    background: rgba(255, 179, 1, 0.04);
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 10px;
}
.dropdown-menu .dropdown-item.auth::before {
    background: linear-gradient(90deg, rgba(255, 179, 1, 0.1), transparent);
}
.dropdown-menu .dropdown-item.auth:hover {
    background: rgba(255, 179, 1, 0.12) !important;
    color: var(--gold-light) !important;
    transform: translateX(6px);
}
.dropdown-menu .dropdown-item.auth i {
    color: var(--gold-primary);
}

@media (max-width: 768px) {
    .header-grid {
        gap: 12px;
    }
    .btn-icon-menu {
        width: 40px;
        height: 40px;
        font-size: 16px;
        border-radius: 10px;
    }
    .logo-link img {
        max-height: 45px;
    }
    .live-dot {
        font-size: 11px;
        padding: 4px 10px 4px 8px;
        gap: 6px;
    }
    .live-dot span {
        width: 8px;
        height: 8px;
    }
    ul.dropdown-menu.dropdown-menu-dark {
        min-width: 210px;
        padding: 6px 4px;
        border-radius: 14px;
        margin-top: 10px;
    }
    .dropdown-menu .dropdown-item {
        padding: 8px 14px;
        font-size: 13px;
        gap: 10px;
        border-radius: 8px;
    }
    .dropdown-menu .dropdown-item i {
        font-size: 14px;
        width: 18px;
    }
    .dropdown-menu .dropdown-item::after {
        right: 12px;
        font-size: 12px;
    }
    .dropdown-menu .dropdown-divider {
        margin: 4px 10px;
    }
    .ticker-content {
        font-size: 12px;
        padding: 8px 0;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .header-grid {
        gap: 8px;
    }
    .btn-icon-menu {
        width: 36px;
        height: 36px;
        font-size: 14px;
        border-radius: 8px;
    }
    .logo-link img {
        max-height: 36px;
    }
    .live-dot {
        font-size: 10px;
        padding: 3px 8px 3px 6px;
        gap: 4px;
        border-radius: 16px;
    }
    .live-dot span {
        width: 6px;
        height: 6px;
    }
    ul.dropdown-menu.dropdown-menu-dark {
        min-width: 185px;
        padding: 6px 4px;
        border-radius: 12px;
        margin-top: 8px;
    }
    .dropdown-menu .dropdown-item {
        padding: 7px 12px;
        font-size: 12px;
        gap: 8px;
        border-radius: 6px;
    }
    .dropdown-menu .dropdown-item i {
        font-size: 13px;
        width: 16px;
    }
    .dropdown-menu .dropdown-item::after {
        right: 10px;
        font-size: 10px;
    }
    .dropdown-menu .dropdown-divider {
        margin: 3px 8px;
    }
    .ticker-content {
        font-size: 11px;
        padding: 6px 0;
        gap: 20px;
    }
}

@media (max-width: 360px) {
    .btn-icon-menu {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    .logo-link img {
        max-height: 30px;
    }
    .live-dot {
        font-size: 9px;
        padding: 2px 6px 2px 4px;
    }
    .live-dot span {
        width: 5px;
        height: 5px;
    }
    ul.dropdown-menu.dropdown-menu-dark {
        min-width: 170px;
        padding: 4px 3px;
    }
    .dropdown-menu .dropdown-item {
        padding: 5px 10px;
        font-size: 11px;
        gap: 6px;
    }
    .dropdown-menu .dropdown-item i {
        font-size: 12px;
        width: 14px;
    }
}

@media (max-width: 768px) and (orientation: landscape) {
    .logo-link img {
        max-height: 35px;
    }
    .btn-icon-menu {
        width: 34px;
        height: 34px;
    }
    .live-dot {
        font-size: 10px;
        padding: 3px 8px;
    }
}

@media (hover: none) and (pointer: coarse) {
    .dropdown-menu .dropdown-item {
        padding: 12px 16px;
        min-height: 44px;
    }
    .btn-icon-menu {
        min-height: 44px;
        min-width: 44px;
    }
    .dropdown-menu .dropdown-item::after {
        display: none;
    }
}