

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(8, 10, 15, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 1000;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.site-header.scrolled {
    background: rgba(8, 10, 15, 0.95);
    border-bottom-color: rgba(255, 184, 0, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.brand-logo-img {
    height: 42px;
    width: auto;
    object-fit: contain;
    border-radius: var(--radius-sm);
    display: block;
}

.brand-fallback-logo {
    display: none !important;
}

.brand-info {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--text-white);
}

.brand-name span {
    color: var(--gold-primary);
}

.brand-subtitle {
    font-size: 0.72rem;
    color: var(--text-dim);
    letter-spacing: 1px;
    font-weight: 600;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
}

.nav-link svg {
    width: 17px;
    height: 17px;
    stroke-width: 2;
    opacity: 0.75;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.04);
}

.nav-link:hover svg {
    opacity: 1;
    color: var(--gold-primary);
}

.nav-link.active {
    color: var(--gold-primary);
    background: var(--gold-bg-subtle);
    border: 1px solid var(--gold-border);
}

.nav-link.active svg {
    opacity: 1;
    color: var(--gold-primary);
}

.nav-badge-new {
    background: var(--gold-primary);
    color: #000;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 999px;
    margin-left: 4px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.btn-discord-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 42px;
    padding: 0 28px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, #FFB800 0%, #F59E0B 50%, #D97706 100%);
    color: #0a0a0c;
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 1px;
    box-shadow: 0 0 22px rgba(245, 158, 11, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, filter 0.2s ease;
    text-transform: uppercase;
}

.btn-discord-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 32px rgba(245, 158, 11, 0.65);
    filter: brightness(1.08);
}

.btn-discord-login:active {
    transform: translateY(0);
}

.btn-discord-login svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.user-logged-box {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-cart {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--text-muted);
    transition: var(--transition);
}

.btn-cart:hover {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.05);
}

.btn-cart svg {
    width: 22px;
    height: 22px;
}

.cart-dropdown-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.cart-dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 380px;
    max-width: calc(100vw - 28px);
    background: #11141C;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    padding: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 184, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.97);
    transform-origin: top right;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1010;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cart-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.cart-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cart-menu-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-menu-badge {
    background: rgba(255, 184, 0, 0.15);
    color: var(--gold-primary);
    font-size: 0.72rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 999px;
    font-family: var(--font-mono);
}

.cart-btn-clear {
    background: transparent;
    border: none;
    color: #64748B;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s;
}

.cart-btn-clear:hover {
    color: #EF4444;
}

.cart-items-scroll {
    max-height: 220px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 184, 0, 0.3) transparent;
}

.cart-item-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 10px;
    transition: all 0.2s;
}

.cart-item-row:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 184, 0, 0.25);
}

.cart-item-thumb {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: #FFFFFF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0 0 2px 0;
}

.cart-item-price {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--gold-primary);
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.cart-qty-btn {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.15s;
}

.cart-qty-btn:hover {
    background: var(--gold-primary);
    color: #000;
}

.cart-qty-text {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 700;
    color: #FFFFFF;
    min-width: 16px;
    text-align: center;
}

.cart-item-remove-btn {
    background: transparent;
    border: none;
    color: #64748B;
    cursor: pointer;
    padding: 4px;
    transition: color 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-remove-btn:hover {
    color: #EF4444;
}

.cart-coupon-section {
    background: #0A0D15;
    border: 1px dashed rgba(255, 184, 0, 0.3);
    border-radius: 14px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cart-coupon-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-code-input-row {
    display: flex;
    gap: 6px;
}

.cart-code-input-row input {
    flex: 1;
    font-size: 0.82rem;
    font-family: var(--font-mono);
    padding: 8px 10px;
    border-radius: 8px;
    background: #11141C;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    text-transform: uppercase;
}

.cart-code-input-row button {
    padding: 8px 12px;
    font-size: 0.8rem;
    white-space: nowrap;
}

.cart-coupon-select {
    width: 100%;
    font-size: 0.82rem;
    padding: 8px 10px;
    border-radius: 8px;
    background: #11141C;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #F59E0B;
    font-weight: 700;
}

.cart-discount-feedback {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
    color: #10B981;
    font-weight: 700;
}

.cart-summary-box {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cart-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #94A3B8;
}

.cart-summary-row.total {
    font-size: 1.05rem;
    font-weight: 800;
    color: #FFFFFF;
    padding-top: 4px;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.cart-summary-row.total .val {
    color: #F59E0B;
    font-family: var(--font-mono);
}

.cart-balance-hint {
    font-size: 0.75rem;
    color: #64748B;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.btn-cart-checkout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: #000000;
    font-size: 0.95rem;
    font-weight: 800;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
}

.btn-cart-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.5);
}

.cart-empty-state {
    text-align: center;
    padding: 30px 10px;
    color: #64748B;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.cart-empty-state svg {
    width: 38px;
    height: 38px;
    color: #334155;
}

.user-profile-chip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 18px 6px 8px;
    background: #121620;
    border: 1px solid rgba(255, 184, 0, 0.18);
    border-radius: var(--radius-full);
    cursor: pointer;
    user-select: none;
    transition: var(--transition);
    position: relative;
}

.user-profile-chip:hover {
    background: #181F2C;
    border-color: rgba(255, 184, 0, 0.45);
    box-shadow: 0 0 16px rgba(255, 184, 0, 0.18);
}

.chip-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold-primary);
    box-shadow: 0 0 10px rgba(255, 184, 0, 0.25);
    background: #1a202c;
}

.chip-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.25;
}

.chip-username {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-white);
    max-width: 130px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chip-points {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gold-primary);
    letter-spacing: 0.5px;
}

.profile-dropdown-wrapper {
    position: relative;
}

.profile-dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 300px;
    background: #11141C;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    padding: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 184, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.97);
    transform-origin: top right;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1010;
}

.profile-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.dropdown-user-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dropdown-avatar-wrap {
    position: relative;
    margin-bottom: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dropdown-avatar {
    width: 76px;
    height: 76px;
    border-radius: 50% !important;
    object-fit: cover;
    border: 2.5px solid var(--gold-primary);
    box-shadow: 0 0 22px rgba(255, 184, 0, 0.4);
    background: #1e2433;
    display: block;
}

.dropdown-badge-admin {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    color: #FFFFFF;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2.5px 10px;
    border-radius: 999px !important;
    border: 2px solid #11141C;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    line-height: 1.3;
    z-index: 5;
    letter-spacing: 0.3px;
}

/* Specific Role Pill Badges (Image 1 Style) */
.dropdown-badge-admin.badge-role-owner {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%) !important;
    color: #FFFFFF !important;
    border: 2px solid #11141C !important;
    box-shadow: 0 2px 10px rgba(220, 38, 38, 0.5) !important;
}

.dropdown-badge-admin.badge-role-admin {
    background: linear-gradient(135deg, #DC2626 0%, #991B1B 100%) !important;
    color: #FFFFFF !important;
    border: 2px solid #11141C !important;
}

.dropdown-badge-admin.badge-role-vip {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%) !important;
    color: #111111 !important;
    border: 2px solid #11141C !important;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4) !important;
}

.dropdown-badge-admin.badge-role-member {
    background: rgba(30, 41, 59, 0.95) !important;
    color: #94A3B8 !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5) !important;
}

.dropdown-username {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 2px;
}

.dropdown-email {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 14px;
    max-width: 250px;
    word-break: break-all;
}

.dropdown-points-card {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 16px;
    background: rgba(255, 184, 0, 0.08);
    border: 1px solid rgba(255, 184, 0, 0.28);
    border-radius: 14px;
    color: var(--gold-primary);
    font-family: var(--font-mono);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.dropdown-points-card svg {
    width: 18px;
    height: 18px;
    color: var(--gold-primary);
}

.dropdown-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 14px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.dropdown-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    transition: var(--transition);
}

.dropdown-item-icon svg {
    width: 18px;
    height: 18px;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-white);
}

.dropdown-item:hover .dropdown-item-icon {
    background: var(--gold-bg-subtle);
    color: var(--gold-primary);
}

.dropdown-item.item-admin {
    border: 1px dashed rgba(255, 184, 0, 0.35);
    background: rgba(255, 184, 0, 0.04);
}

.dropdown-item.item-admin .dropdown-item-icon {
    color: var(--gold-primary);
    background: rgba(255, 184, 0, 0.12);
}

.dropdown-item.item-logout {
    margin-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 14px;
}

.dropdown-item.item-logout .dropdown-item-icon {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
}

.dropdown-item.item-logout span {
    color: #EF4444;
    transition: var(--transition);
}

.dropdown-item.item-logout:hover {
    background: rgba(239, 68, 68, 0.08);
}

.dropdown-item.item-logout:hover span {
    color: #F87171;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    cursor: pointer;
    padding: 8px;
}

.mobile-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transition: var(--transition);
}

@media (max-width: 980px) {
    .nav-menu {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background: #0E121B;
        border-bottom: 1px solid var(--border-medium);
        flex-direction: column;
        padding: 18px 24px;
        gap: 10px;
        transform: translateY(-150%);
        opacity: 0;
        transition: var(--transition);
        z-index: 999;
    }
    
    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .user-profile-chip .chip-username {
        display: none;
    }
}
