/* ============================================================
   🔒 FULLY SCOPED — .pst-header prefix on every rule
   No horizontal scroll · Full responsive · Mobile hamburger
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700;900&family=Poppins:wght@300;400;500;600;700&display=swap');

.pst-header *,
.pst-header *::before,
.pst-header *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ══════════════════════════════════════
   ROOT HEADER SHELL
══════════════════════════════════════ */
.pst-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    font-family: 'Poppins', sans-serif;
    width: 100%;
    overflow: visible;
}

/* ── TOP BAR ── */
.pst-header .pst-topbar {
    background: #0a0718;
    padding: 7px clamp(16px, 4vw, 60px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.pst-header .pst-topbar-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.pst-header .pst-topbar-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
    white-space: nowrap;
}

.pst-header .pst-topbar-item:hover { color: #ffd700; }

.pst-header .pst-topbar-item .ti {
    font-size: 13px;
    color: #c4960a;
}

.pst-header .pst-topbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.pst-header .pst-social-link {
    width: 28px;
    height: 28px;
    border: 1px solid rgba(255,215,0,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s;
}

.pst-header .pst-social-link:hover {
    background: rgba(255,215,0,0.1);
    border-color: #ffd700;
    color: #ffd700;
    transform: translateY(-2px);
}

/* ── MAIN NAV BAR ── */
.pst-header .pst-navbar {
    background: linear-gradient(135deg, #0d0a2e 0%, #150f3a 50%, #0d0a2e 100%);
    padding: 0 clamp(16px, 4vw, 60px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    height: 72px;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, transparent, #c4960a, #ffd700, #c4960a, transparent) 1;
    position: relative;
}

/* scrolled state applied via JS */
.pst-header.pst-scrolled .pst-navbar {
    background: rgba(13, 10, 46, 0.97);
    backdrop-filter: blur(16px);
    height: 62px;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.4);
}

.pst-header.pst-scrolled .pst-topbar {
    display: none;
}

/* ── LOGO ── */
.pst-header .pst-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.pst-header .pst-logo-img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,215,0,0.4);
    box-shadow: 0 0 14px rgba(255,215,0,0.2);
    transition: box-shadow 0.3s;
}

.pst-header .pst-logo:hover .pst-logo-img {
    box-shadow: 0 0 28px rgba(255,215,0,0.5);
}

.pst-header .pst-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.pst-header .pst-logo-name {
    font-family: 'Cinzel', serif;
    font-size: clamp(13px, 1.4vw, 17px);
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
}

.pst-header .pst-logo-name span {
    background: linear-gradient(90deg, #ffd700, #ff8c00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pst-header .pst-logo-tagline {
    font-size: 9px;
    color: rgba(255,215,0,0.6);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
}

/* ── NAV LINKS ── */
.pst-header .pst-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.pst-header .pst-nav-item {
    position: relative;
}

.pst-header .pst-nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    font-size: clamp(12px, 1vw, 14px);
    font-weight: 500;
    color: #ccc;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    white-space: nowrap;
    position: relative;
}

.pst-header .pst-nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    right: 50%;
    height: 2px;
    background: linear-gradient(90deg, #ff8c00, #ffd700);
    border-radius: 2px;
    transition: all 0.3s;
}

.pst-header .pst-nav-link:hover {
    color: #ffd700;
    background: rgba(255,215,0,0.06);
}

.pst-header .pst-nav-link:hover::after {
    left: 14px;
    right: 14px;
}

.pst-header .pst-nav-link.active {
    color: #ffd700;
}

.pst-header .pst-nav-link.active::after {
    left: 14px;
    right: 14px;
}

/* dropdown arrow */
.pst-header .pst-nav-link .pst-arrow {
    font-size: 10px;
    transition: transform 0.3s;
    opacity: 0.6;
}

/* ── DROPDOWN ── */
.pst-header .pst-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 220px;
    background: #120f35;
    border: 1px solid rgba(255,215,0,0.12);
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    list-style: none;
    z-index: 100;
}

.pst-header .pst-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 20px;
    width: 12px;
    height: 12px;
    background: #120f35;
    border-left: 1px solid rgba(255,215,0,0.12);
    border-top: 1px solid rgba(255,215,0,0.12);
    transform: rotate(45deg);
}

.pst-header .pst-nav-item:hover .pst-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.pst-header .pst-nav-item:hover .pst-arrow {
    transform: rotate(180deg);
}

.pst-header .pst-dropdown-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    font-size: 13px;
    color: #bbb;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.25s;
}

.pst-header .pst-dropdown-link:hover {
    background: rgba(255,215,0,0.08);
    color: #ffd700;
    padding-left: 18px;
}

.pst-header .pst-dropdown-link .dd-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

/* ── CTA BUTTON ── */
.pst-header .pst-cta-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.pst-header .pst-cta-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 9px 22px;
    background: linear-gradient(135deg, #ff8c00, #ffd700);
    border: none;
    border-radius: 50px;
    color: #1a0800;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(255,140,0,0.35);
    animation: pstPulse 2.5s ease-in-out infinite;
    transition: all 0.3s;
    white-space: nowrap;
    line-height: 1.2;
}

.pst-header .pst-cta-btn small {
    font-size: 10px;
    opacity: 0.75;
    font-weight: 400;
}

.pst-header .pst-cta-btn:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 10px 32px rgba(255,140,0,0.55);
}

/* ══════════════════════════════════════
   HAMBURGER BUTTON
══════════════════════════════════════ */
.pst-header .pst-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: rgba(255,215,0,0.07);
    border: 1px solid rgba(255,215,0,0.2);
    border-radius: 8px;
    cursor: pointer;
    padding: 9px;
    transition: all 0.3s;
    flex-shrink: 0;
}

.pst-header .pst-hamburger:hover {
    background: rgba(255,215,0,0.14);
    border-color: rgba(255,215,0,0.45);
}

.pst-header .pst-hamburger .bar {
    display: block;
    height: 2px;
    background: #ffd700;
    border-radius: 2px;
    transition: all 0.35s ease;
    transform-origin: center;
}

/* ── open state ── */
.pst-header .pst-hamburger.open .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.pst-header .pst-hamburger.open .bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.pst-header .pst-hamburger.open .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ══════════════════════════════════════
   MOBILE DRAWER
══════════════════════════════════════ */
.pst-header .pst-mobile-menu {
    display: none; /* shown via JS */
    flex-direction: column;
    background: #0d0a2e;
    border-top: 1px solid rgba(255,215,0,0.1);
    overflow-y: auto;
    max-height: calc(100vh - 72px);

    /* slide-in animation */
    animation: pstDrawerIn 0.35s ease both;
}

.pst-header .pst-mobile-menu.open {
    display: flex;
}

/* mobile nav links */
.pst-header .pst-mobile-nav {
    list-style: none;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,215,0,0.08);
}

.pst-header .pst-mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px clamp(16px, 5vw, 28px);
    font-size: 15px;
    font-weight: 500;
    color: #ccc;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.25s;
}

.pst-header .pst-mobile-nav-link:hover,
.pst-header .pst-mobile-nav-link.active {
    color: #ffd700;
    background: rgba(255,215,0,0.05);
    border-left-color: #ffd700;
}

.pst-header .pst-mobile-nav-link .mob-icon {
    font-size: 16px;
    margin-right: 10px;
}

/* mobile sub-items */
.pst-header .pst-mobile-sub {
    list-style: none;
    background: rgba(0,0,0,0.2);
    display: none;
}
.pst-header .pst-mobile-sub.open { display: block; }

.pst-header .pst-mobile-sub-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px clamp(24px, 6vw, 42px);
    font-size: 13px;
    color: #999;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.25s;
}
.pst-header .pst-mobile-sub-link:hover {
    color: #ffd700;
    border-left-color: rgba(255,215,0,0.4);
    padding-left: clamp(28px, 7vw, 48px);
}

/* mobile bottom info */
.pst-header .pst-mobile-bottom {
    padding: clamp(16px, 4vw, 24px) clamp(16px, 5vw, 28px);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pst-header .pst-mobile-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px;
    background: linear-gradient(135deg, #ff8c00, #ffd700);
    border-radius: 12px;
    color: #1a0800;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(255,140,0,0.3);
    transition: all 0.3s;
}
.pst-header .pst-mobile-cta small {
    font-size: 12px;
    opacity: 0.75;
    font-weight: 400;
}
.pst-header .pst-mobile-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(255,140,0,0.5);
}

.pst-header .pst-mobile-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pst-header .pst-mobile-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #888;
    text-decoration: none;
    padding: 9px 12px;
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    border: 1px solid rgba(255,215,0,0.07);
    transition: color 0.3s;
}
.pst-header .pst-mobile-info-item:hover { color: #ffd700; }

.pst-header .pst-mobile-socials {
    display: flex;
    gap: 10px;
    justify-content: center;
    padding-top: 4px;
}

/* ══════════════════════════════════════
   KEYFRAMES
══════════════════════════════════════ */
@keyframes pstPulse {
    0%   { box-shadow: 0 0 0 0 rgba(255,140,0,0.5); }
    70%  { box-shadow: 0 0 0 14px rgba(255,140,0,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,140,0,0); }
}

@keyframes pstDrawerIn {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════
   RESPONSIVE BREAKPOINTS
══════════════════════════════════════ */

/* hide topbar items on small screens */
@media (max-width: 768px) {
    .pst-header .pst-topbar { display: none; }
}

/* switch to hamburger */
@media (max-width: 1024px) {
    .pst-header .pst-nav      { display: none; }
    .pst-header .pst-cta-wrap { display: none; }
    .pst-header .pst-hamburger { display: flex; }
}

/* very small screens */
@media (max-width: 360px) {
    .pst-header .pst-logo-tagline { display: none; }
    .pst-header .pst-logo-name { font-size: 12px; }
}